You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
librdf error - HTML parser error: Tag nav invalid
librdf error - HTML parser error: Tag main invalid
librdf error - HTML parser error: Tag aside invalid
librdf error - HTML parser error: Tag footer invalid
librdf error - HTML parser error: Unexpected end tag : p
librdf error - HTML parser error: Unexpected end tag : p
Now for pkgdown itself there's no problem but I noticed that because we use markdown_text_block() for building elements of the footer, before that line we have
If we fix that we'll also need to add some additional margin/padding to the default CSS since without that empty paragraph the footer text is very close to the border.
Are you sure that the problem isn't actually that the footer template includes <p> wrapping the content? I think that's the paragraph tag we want to remove so that it is possible for folks to create multiple paragraph footers if they really want to.
The footer markdown is processed with `markdown_text_block()` so it always produces a block tag, rendering the wrapping `<p>` in the footer unnecessary. The empty paragraph tag ends up at the top of the footer, due to xml2 round trip.
Fixes#2381
The footer markdown is processed with `markdown_text_block()` so it always produces a block tag, rendering the wrapping `<p>` in the footer unnecessary. The empty paragraph tag ends up at the top of the footer, due to xml2 round trip.
Fixes#2381
SebKrantz
pushed a commit
to SebKrantz/pkgdown
that referenced
this issue
Jun 1, 2024
The footer markdown is processed with `markdown_text_block()` so it always produces a block tag, rendering the wrapping `<p>` in the footer unnecessary. The empty paragraph tag ends up at the top of the footer, due to xml2 round trip.
Fixesr-lib#2381
I'm exploring a problem we're seeing in an rOpenSci package, where this line
pkgdown/R/render.R
Line 66 in 13d8d62
leads to errors such as
Now for pkgdown itself there's no problem but I noticed that because we use
markdown_text_block()
for building elements of the footer, before that line we havewhich is read by xml2, and then published, as
It doesn't seem to lead to any bug to have the empty paragraph, but to not produce nested paragraphs in the first place maybe
pkgdown/R/build-footer.R
Line 8 in 13d8d62
should use
markdown_text_inline()
?The text was updated successfully, but these errors were encountered: