New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display math $$ delimiter showing up in rendered HTML output #1181
Comments
|
Hi - in quarto, you need the |
|
@cscheid I think it would be best if don't introduce special markdown syntax constraints that apply only when using Quarto. So we should ultimately liberalize our parsing rules to handle |
|
I'm ok with fixing that, but do note that even in pandoc this doesn't totally work across formats: |
|
If that's the case then we definitely shouldn't support it (i.e. if it only works in HTML then we shouldn't encourage it) |
Unfortunately this is not documented here: https://quarto.org/docs/authoring/markdown-basics.html#equations But apart from that, originally my markdown file was created by converting with pandoc from latex to markdown. So the default markdown writer of pandoc is using |
Huh, this is interesting. So you have a file which pdflatex builds correctly, but if you convert from latex to markdown with pandoc, then pandoc fails to convert from markdown to pdf? I don't know what are the guarantees that pandoc provides with respect to formats and roundtrips, but I wonder if this is an issue with pandoc. |
That seemed odd to me and I investigated the issue a bit more. It turns out my example given in the bug description above is not an example that would be created by pandoc when converting from latex. I created what I thought is a minimal example, but in fact it is not quite correct. When converting from latex this will be converted by pandoc to So my example in the bug description is misleading and cannot be converted by pandoc to pdf, as you have shown. However when starting from a latex file like this will be converted by because apparently pandoc is treating the |
|
Quarto does Not seem to need the $$ to be on a separate line. See https://community.rstudio.com/t/inconsistent-rendering-of-display-math-between-rstudio-and-quarto-render/140669. |

Bug description
Here is a (pandoc) markdown test file
test.qmdWhen rendering as html with pandoc
pandoc -t html5 --mathjax -s -o test-pandoc.html test.qmdit renders correctly.

However when rendering the file to html with quarto
quarto render test.qmd$$are showing up in the text of the html fileThis happens with quarto 0.9.592 and pandoc 2.18 on Mac OS X 10.15.7 .
Checklist
quarto checkin a terminal in your issue?The text was updated successfully, but these errors were encountered: