fix: clean wikilinks and render latex in popover

This commit is contained in:
Jacky Zhao 2022-05-05 20:30:55 -04:00
parent 364aee36fc
commit b21b27d1d3
4 changed files with 31 additions and 19 deletions

View file

@ -85,7 +85,11 @@
);
{{if $.Site.Data.config.enableLinkPreview}}
initPopover({{strings.TrimRight "/" .Site.BaseURL }}, {{$.Site.Data.config.enableContextualBacklinks}})
initPopover(
{{strings.TrimRight "/" .Site.BaseURL }},
{{$.Site.Data.config.enableContextualBacklinks}},
{{$.Site.Data.config.enableLatex}}
)
{{end}}
{{if $.Site.Data.config.enableLatex}}
renderMathInElement(document.body, {

View file

@ -12,4 +12,4 @@
</div>
</li>
{{- end -}}
</ul>
</ul>