-
-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Long titles are split into h1 and p tags #345
Comments
I believe this is related to your other issue #346 and this is due to Pandoc change related to how lines are wrapped. Related to rstudio/bookdown#1304 also. @ellessenne as a workaround for now you could just add this to your YAML output:
xaringan::moon_reader:
pandoc_args: --wrap=none @yihui I believe we should set So we could just add that argument in xaringan but maybe we should do it in rmarkdown so that past behavior before pandoc 2.17.1 is the same. is adding that to rmarkdown directly too much ? |
@cderv You can try it in a PR and see if it breaks anything. It might break tests, but I don't think it would affect the rendered output ( Of course, we could add |
@ellessenne Should be fixed now. You can test the development version via remotes::install_github('yihui/xaringan') Thanks for the report! |
Hi,
I am having some weird issues with the title of the presentation being split into a
h1
andp
tag if the title is long.For instance, the following YAML header (without any content)
is rendered to this:
My guess is that the
id
ofh1
would be too long, but is there any way around this?Thanks!
Alessandro
P.s.: this is my
xfun::session_info('rmarkdown')
info:By filing an issue to this repo, I promise that
xfun::session_info('xaringan')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/xaringan')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: