fix latex misrendering

This commit is contained in:
Jacky Zhao 2022-04-02 20:34:55 -07:00
parent 146e975932
commit e6e04c03c4
4 changed files with 2 additions and 5 deletions

View File

@ -4,4 +4,4 @@ help: ## Show all Makefile targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
serve: ## serve serve: ## serve
hugo-obsidian -input=content -output=assets/indices -index -root=. && hugo server hugo-obsidian -input=content -output=assets/indices -index -root=. && hugo server --enableGitInfo

View File

@ -11,7 +11,6 @@ function initPopover(baseURL) {
fetchData.then(({ content }) => { fetchData.then(({ content }) => {
const links = [...document.getElementsByClassName("internal-link")] const links = [...document.getElementsByClassName("internal-link")]
links.forEach(li => { links.forEach(li => {
console.log(li.dataset)
const linkDest = content[li.dataset.src.replace(basePath, "")] const linkDest = content[li.dataset.src.replace(basePath, "")]
if (linkDest) { if (linkDest) {
const popoverElement = `<div class="popover"> const popoverElement = `<div class="popover">

View File

@ -14,7 +14,7 @@ title: "CJK + Latex Support (测试)"
Block math works with two dollar signs `$$...$$` Block math works with two dollar signs `$$...$$`
$$f(x) = \int_{-\infty}^\infty $$f(x) = \int_{-\infty}^\infty
f\hat(\xi\),e^{2 \pi i \xi x} f\hat(\xi),e^{2 \pi i \xi x}
\,d\xi$$ \,d\xi$$
Inline math also works with single dollar signs `$...$`. For example, Euler's identity but inline: $e^{i\pi} = 0$ Inline math also works with single dollar signs `$...$`. For example, Euler's identity but inline: $e^{i\pi} = 0$

View File

@ -8,8 +8,6 @@
delimiters: [ delimiters: [
{left: '$$', right: '$$', display: true}, {left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}, {left: '$', right: '$', display: false},
{left: '\\(', right: '\\)', display: false},
{left: '\\[', right: '\\]', display: true}
], ],
throwOnError : false throwOnError : false
}); });