Prerendering of inline math

This commit is contained in:
Ludwig Schubert
2017-08-30 16:35:03 -07:00
parent 3a62ccb1ba
commit 37a714f399
18 changed files with 1019 additions and 940 deletions
+5
View File
@@ -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() {