-
Notifications
You must be signed in to change notification settings - Fork 57
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
Figure captions don't work for some text length with (ref:...
#463
Comments
Thanks for the report. I was not aware this feature was suppose to work in distill. This is a bookdown feature, but it is indeed possible to use it within distill - I forgot. Anyway, this feature is implement using regex and I think it breaks because of the way the HTML is wrap by default with recent Pandoc version. This is also probably why you don't get the same results on your different environment: check the pandoc version there. (version should be 2.17 or above, vs before 2.17) I have pushed the same fix as we had in bookdown but that was not used by distill |
Oh, thanks! So, for example, if the template has something like this: % \title{$title$} And % \title{This is a very long title that pandoc will
wrap into a new line} and would fail. If you like, I could open an issue in the rticles repo about this. |
Yes please do. I am thinking this should have been fixed at lower level in rmarkdown instead of in each format 🤔 |
I'm having a very confusing issue trying to make the "(ref:caption)" syntax work. The code below is a reprex document that describes the issue.
And here's the output: test.html.zip
I'm using distill 1.4 and all other packages up-to-date with R 4.2.0
Infuriatingly, I cannot reproduce this behaviour on my institute server, which has R 3.6.3. But installing R 3.6.3 on my laptop does not fix it.
The text was updated successfully, but these errors were encountered: