Sources/OrgMathJax/OrgMathJax.swift

73b5c3d29343d6a3801f3a9a591fa434c01c9f06
orgstar/Sources/OrgMathJax/OrgMathJax.swift

14 lines · 1125 bytes

1 symbol in this file
 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}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form