Sources/OrgMathJax/OrgMathJax.swift
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}