Sources/OrgMathJax/OrgMathJax.swift

58f3b73e8ff337e5a15111fbb32c0d57cf2346da
orgstar/Sources/OrgMathJax/OrgMathJax.swift history · blame · raw

10 lines · 701 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}