Should HTML documents produced by Quarto be tidy-HTML5 compliant? #3831
IndrajeetPatil
started this conversation in
Feature Requests
Replies: 2 comments 4 replies
-
It looks to me like there is a head tag in the first example (at the end of the line). Are there other issues that tidy flags? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Related: #7489 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tidy HTML (http://www.html-tidy.org/) tool helps correct and clean up HTML and XML documents by fixing markup errors, and I am wondering if it might be a good idea to make sure that all HTML outputs from Quarto have
0 warnings
and0 errors
fromtidy
check and also the formatting istidy
-compliant.E.g. with v1.3.78, if I open example html format document shipped with RStudio and render it. The HTML produced has
<meta>
tags outside<head>
tags:If I run tidy tool on this document:
tidy -m -i -w 120 -c -utf8 *.html
It changes this to:
But maybe the original HTML produced Quarto should already look tidied?
That is, the users shouldn't even need to use tidy tool since Quarto HTMLs will by default be tidy-compliant, or at least as compliant as they can be without having to sacrifice any Quarto-specific innovation.
Beta Was this translation helpful? Give feedback.
All reactions