mirror of
https://github.com/wassname/template.git
synced 2026-09-09 11:38:29 +08:00
Prerendering of inline math
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { FrontMatter } from './front-matter';
|
||||
import { DMath } from './components/d-math';
|
||||
import { collectCitations } from './components/d-cite';
|
||||
import { parseFrontmatter } from './components/d-front-matter';
|
||||
|
||||
@@ -116,6 +117,10 @@ export const Controller = {
|
||||
if (byline && !byline.getAttribute('prerendered')) {
|
||||
byline.frontMatter = frontMatter;
|
||||
}
|
||||
|
||||
if (data.katex) {
|
||||
DMath.katexOptions = data.katex;
|
||||
}
|
||||
},
|
||||
|
||||
DOMContentLoaded() {
|
||||
|
||||
Reference in New Issue
Block a user