Open ralmond opened 1 year ago
This is how Pandoc parses those equations; that's not a bug. I believe you might be expecting that coming from authoring .tex
documents directly. But Markdown is actually different syntax, and requires no whitespace there. (With that said, I agree that we could document this more clearly).
Bug description
Parsing of the markdown seems to be dependent on whitespace on ways that are not documented.
1) When using
$
delimiters for LaTeX equations, if there is whitespace between the delimiter and the equation, quarto quotes the delimiters instead of rendering the equation.2) When using bulleted lists, if there is not a blank line between the end of the paragraph and the start of the list, then the bullet characters are quoted and the list is run into the paragraph.
This happens both when rendering in Quarto and when switching back and forth between the R Studio source and visual modes.
These restrictions on syntax do not appear to be documented (certainly not in the quick help from RStudio).
Steps to reproduce
This renders as follows:
syntaxIssues.pdf
Expected behavior
I expect both examples in both cases to be the same:
1) I expect the equation to be rendered twice.
2) I expect both lists to look the same.
Actual behavior
With extra whitespace, the equation does not render. Switching from source->visual->source in R studio changes the equation to
\$ H \rightarrow \$
.Without the blank line, the list is run into the same paragraph. Switching from source->visual->source produces
Your environment
Quarto check output