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

Fix the syntax highlighting of |> in LaTeX/PDF output #2228

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

yihui
Copy link
Member

@yihui yihui commented Oct 4, 2021

See rstudio/bookdown#1157 (comment)

Again, this is just a temporary fix, and may be removed in the future after #2196 is fixed.

@yihui yihui requested a review from cderv October 4, 2021 18:51
Copy link
Collaborator

@cderv cderv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes you're right - We could do the same kind of patch.

Maybe it is also better than using our own XML definition file, which I was thinking about. However, this would allow the issue to be fixed as new syntax definition supported in all pandoc related format using syntax highlighting.

Anyway, this will be for later so this is fine for now I guess and it is safe.

@yihui yihui merged commit 5a3e941 into main Oct 4, 2021
@yihui yihui deleted the pipe-syntax-highlight branch October 4, 2021 19:57
jonathan-g added a commit to jonathan-g/rmarkdown that referenced this pull request Oct 30, 2021
Merge remote-tracking branch 'rstudio_origin/main' into jg-tree-fix

# By Christophe Dervieux (2) and Yihui Xie (1)
# Via Christophe Dervieux
* rstudio_origin/main:
  Add class to book cover to size using CSS
  fix the syntax highlighting of |> in LaTeX/PDF output: rstudio/bookdown#1157 (rstudio#2228)
  Add an option to opt-out the header-attrs HTML dependency in `html_document_base()` (rstudio#2227)

# Conflicts:
#	NEWS.md
jonathan-g added a commit to jonathan-g/rmarkdown that referenced this pull request Nov 29, 2021
Merge branch 'jg-tree-fix' into jg-devel

* jg-tree-fix:
  Use latest Pandoc  in GHA and update workflow (rstudio#2244)
  Add class to book cover to size using CSS
  fix the syntax highlighting of |> in LaTeX/PDF output: rstudio/bookdown#1157 (rstudio#2228)
  Add an option to opt-out the header-attrs HTML dependency in `html_document_base()` (rstudio#2227)
  Clean up NEWS.md.

# Conflicts:
#	DESCRIPTION
#	NEWS.md
jonathan-g added a commit to jonathan-g/rmarkdown that referenced this pull request Nov 29, 2021
* jg-devel: (35 commits)
  Use latest Pandoc  in GHA and update workflow (rstudio#2244)
  Add class to book cover to size using CSS
  fix the syntax highlighting of |> in LaTeX/PDF output: rstudio/bookdown#1157 (rstudio#2228)
  Add an option to opt-out the header-attrs HTML dependency in `html_document_base()` (rstudio#2227)
  Clean up NEWS.md.
  Updated autogenerated documentation.
  Fixed conflicts with rstudio main version.
  Update documentation for html_document.
  Add self (JG) as a contributor in DESCRIPTION.
  Resolve conflicts with new updates to RStudio main branch.
  Clean up a few things from the merge.
  Fix problem building with GitHub Actions because of `mathjax: local` in the testthat tests.
  Revert unnecessary formatting change to code in render.R.
  Revert an unnecessary formatting change to comments in render.R.
  Update NEWS.md.
  revert inadevertent change from accidental merge with jg-tree-fix.
  Removed unnecessary references to `allow_uptree_lib_dir` in `ioslides_presentation` and `slidy_presentation`.
  Prepare for PR to RStudio.
  Updated documentation for new parameter in output_format().
  Removed packages.bib from tests/testthat.
  ...
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants