Skip to content

katex not rendered in <div></div> block and <p></p> paragraph #152

Answered by yhatt
ChiMaoShuPhy asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to wrap with HTML tags, you have to put blank lines around Markdown contents, to prevent parsing contents as a part of the HTML block.

<div>

$\int dx$

</div>

Any Markdown syntaxes including math would never be parsed in the HTML block. See CommonMark specification: https://spec.commonmark.org/0.30/#example-188 and https://spec.commonmark.org/0.30/#example-189

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ChiMaoShuPhy
Comment options

Answer selected by yhatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants