Skip to content
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

Broken citation formats in html #115

Closed
TomBener opened this issue Jun 15, 2022 · 4 comments
Closed

Broken citation formats in html #115

TomBener opened this issue Jun 15, 2022 · 4 comments
Labels
bug an unexpected problem or unintended behavior next to consider for next release

Comments

@TomBener
Copy link

TomBener commented Jun 15, 2022

On 2022-06-15, I cloned the repo and knit skeleton.Rmd to html. However, It looks weird. In the following screenshot, texts following the citation [@R-base] were rendered as italic, and the reference in the sidenote was not correct. In the example page, It is “R Core Team. 2021. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.r-project.org/.”

CleanShot 2022-06-15 at 16 05 35@2x

Some information on my test:

  • OS: macOS 12.4
  • Pandoc version: 2.18
  • R: 4.2.0
  • rmarkdown: 2.14

Furthermore, I create a new .Rmd file. And it encountered similar issues. Some references did not appear on the right side, and a few bibliographies were split arbitrarily. In addition, some texts were hyperlinked incorrectly.

CleanShot 2022-06-15 at 16 28 46@2x

I’m not sure if the package has any bug. Could you please help with this?

By the way, pandoc-citeproc seems to be deprecated, but the manual page mentioned that pandoc-citeproc should be at least 0.7.2. Please update it. Thanks.

@cderv
Copy link
Collaborator

cderv commented Jun 15, 2022

Thanks for the report. I believe this is linked to rstudio/rmarkdown#2369 and I think I need to fix it in rmarkdown

To confirm this is the issue, you can do this

output:
  tufte::tufte_html: 
    pandoc_args: '--wrap=none'

This should make everything right.

By the way, pandoc-citeproc seems to be deprecated, but the manual page mentioned that pandoc-citeproc should be at least 0.7.2. Please update it. Thanks.

I added mention of Pandoc 2.11 and above. i'll update the doc once I fixed in rmarkdown

@TomBener
Copy link
Author

output:
  tufte::tufte_html: 
    pandoc_args: '--wrap=none'

Thanks, it works well!

@cderv
Copy link
Collaborator

cderv commented Jun 16, 2022

Good. That means it is the issue. I need to add this internally so that a user doesn't have to set it.

For the context, this is due to a Pandoc change that modify the default for this behavior so we need to adjust. Getting back to an older Pandoc is also a workaround.

@cderv cderv moved this to Backlog in R Markdown Team Projects Jun 16, 2022
@cderv cderv moved this from Backlog to Todo in R Markdown Team Projects Jun 16, 2022
@cderv cderv added next to consider for next release bug an unexpected problem or unintended behavior labels Jun 16, 2022
@cderv cderv closed this as completed in 668ff40 Sep 22, 2022
Repository owner moved this from Next to Done in R Markdown Team Projects Sep 22, 2022
@github-actions
Copy link

github-actions bot commented Apr 4, 2023

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior next to consider for next release
Projects
Archived in project
Development

No branches or pull requests

2 participants