You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Artix Linux, DWM, with Clojure's Cryogen framework to write a blog.
I tried to put MathJax into the posts s. The website function as a markdown rendered to html (Jekyll, Hugo etc style). So, I use pandoc to convert Org-mode notes to Markdown.
This is the scripts in the head of every post:
<scriptsrc="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><scriptid="MathJax-script"asyncsrc="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script><script>
MathJax = {tex: {// packages: ['base,asm'], // extensions to useinlineMath: [// start/end delimiter pairs for in-line math['\\(','\\)']],displayMath: [// start/end delimiter pairs for display math['$$','$$'],['\\[','\\]'],['\begin{equation}','\end{equation}']],processEscapes: true,// use \$ to produce a literal dollar signprocessEnvironments: true,// process \begin{xxx}...\end{xxx} outside math modeprocessRefs: true,// process \ref{...} outside of math modedigits: /^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,// pattern for recognizing numbers}};
</script>
It worked. Although, it will be very annoying to do that by hand every time. Well... Anyhow, thank you!
Some markdown parsers have support for ignoring TeX fragments built in or via plugins (e.g., kramdown, markdown-it). This usually makes things easier for authors.
Issue Summary
I'm using Artix Linux, DWM, with Clojure's Cryogen framework to write a blog.
I tried to put MathJax into the posts s. The website function as a markdown rendered to html (Jekyll, Hugo etc style). So, I use pandoc to convert Org-mode notes to Markdown.
This is the scripts in the head of every post:
Steps to Reproduce:
This is what gets rendered:
The text was updated successfully, but these errors were encountered: