katex not rendered in <div></div> block and <p></p> paragraph #152
Answered
by
yhatt
ChiMaoShuPhy
asked this question in
Q&A
-
Hello, I'm wondering is there a way to make math equation being rendered inside <div>
$\int dx$
</div> <p>
$\int dx$
</p> Many thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
yhatt
Aug 22, 2021
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yhatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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