Closed ProFatXuanAll closed 3 years ago
Regarding the first issue: This seems to be a configuration issue because if I run kramdown -x math-katex --math-engine katex
it works given your input.
As for the second issue: You need to use two dollar signs also for span level math.
This sounds like Jekyll's configuration problem.
(the math_engine
option in _config.yaml
only add a KaTeX script tag to html output.)
At the end I downgrade to 3.9.0
(which is the github supported version) and add MathJax v3 script by myself it suddenly work.
Also the two dollar signs for inline tex make my example run in display mode, so I assume this is also problems related to Jekyll.
Thanks for the feedback! I will close the issue since there is nothing for kramdown to do.
For what kramdown supports in terms of math syntax see https://kramdown.gettalong.org/syntax.html#math-blocks.
I'm aware of issue #47 and #323 . But seems like this happens again. And I think this is an issue related to kramdown which treat subscript
_
as markdown emphasis syntax.Software versions:
Input:
Actual Output:
Expected Output:
Not sure related, here is my Gemfile:
here is my
_config.yml
I also found that star
*
in math block get converted to<em>
, but I'm not sure if this is related to CJK.Input:
Actual Output:
Expected Output: