-
Notifications
You must be signed in to change notification settings - Fork 284
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
raw HTML with tables incurs quarto processing #8582
Comments
Side note
FYI, Markdown linter rules to ensure markdown parser get it right: https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md Rules for your example: All this being said, Pandoc is able to render this properly, so something in Quarto HTML envelope: quarto pandoc index.qmd --from markdown --to html -o index.html <h3 id="a">A</h3>
<div>
<table></table>
<h3></h3>
<table>
<tbody>
<tr></tr>
</tbody>
</table>
</div>
<p>1</p> |
I think this is happening because of Quarto's HTML table parsing. Try adding |
So this isn't a bug, it's intended (although perhaps obscure) behavior. I'm not quite sure how we can make it clearer what's going on. I'm going to leave this open as an enhancement ticket, but I don't have anything actionable at the moment. |
This works beautifully. Many thanks for your kind & quick help. |
Many thanks for your kind & quick help. |
Passing you my thanks as well! After updating to the latest Quarto version all my {gt} tables started aligning right. This addition to the YAML fixed the issue. |
This is actually a bug. Specifically, the problem is that Then, this section is getting converted into a Pandoc section which is bringing in the closing |
The bad .html we generate here is this:
Note the mess we made out of the matching tags. |
Looking at our trace output, the bug is actually that we are parsing the interstitial header element between the two tables:
Notice how Pandoc interprets the heading as a section marker, and then the closing |
Bug description
I ran across a situation, where text indentation seems to be broken by the content of raw HTML.
Trying to make the example as small as possible, I reached the following qmd example.
Steps to reproduce
Expected behavior
Usually, the "A" and the "1" would have the same indentation.
Actual behavior
On rendering, the resulting HTML looks as follows:
You see, the "1" text is no longer indented.
Your environment
Ubuntu 22.04.
Quarto 1.4.549.
Edited with Emacs and ran
quarto preview
of the qmd file from the linux shell.Quarto check output
The text was updated successfully, but these errors were encountered: