Sources/OrgMathJax/OrgMathJax.swift
14 lines · 1125 bytes
1import Foundation
2
3/// Scripts that run in a web view. Only the apps link it, so extensions don't carry the files.
4public enum OrgMathJax {
5 /// MathJax 3.2.2's `tex-svg-full.js`, for PDF export.
6 public static var script: URL? { Bundle.module.url(forResource: "tex-svg-full", withExtension: "js", subdirectory: "MathJax") }
7 /// Viz.js 3.31.0's `viz-global.js` and mermaid 12.3.0's `mermaid.min.js`, for dot and mermaid blocks.
8 public static var viz: URL? { Bundle.module.url(forResource: "viz-global", withExtension: "js", subdirectory: "Diagrams") }
9 public static var mermaid: URL? { Bundle.module.url(forResource: "mermaid.min", withExtension: "js", subdirectory: "Diagrams") }
10 /// The folder of Pyodide 314.0.8's core files, for python blocks in the App Store builds.
11 public static var pyodide: URL? { Bundle.module.url(forResource: "Pyodide", withExtension: nil) }
12 /// reveal.js 6.0.2's `dist` files: `reveal.js`, its stylesheets and themes, and the notes, search, zoom and math plugins.
13 public static var reveal: URL? { Bundle.module.url(forResource: "Reveal", withExtension: nil) }
14}