Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Provide a syntax definition file with updated support for R new syntax  #2196

@cderv

Description

@cderv

First issue has been reported in rstudio/bookdown#1157. See discussion there for details. In a nutshell:

  • Pandoc's highlighting uses KDE XML syntax file
  • the KDE XML syntax file for R language does not correctly handles the new R syntax.

Current fix in rmarkdown is for html_document_base() only as a post processing - see 99df4e7 . This fixes the issue rstudio/bookdown#1157

Proper fix should be:

  • Push upstream correct support for Pandoc for later Pandoc's version.
  • Use the XML definition file directly in rmarkdown for previous pandoc version that won't have the updated support, using --syntax-definition flag.

Metadata

Metadata

Assignees

Labels

featurea feature request or enhancementnextto consider for next releasetheme: highlighttheme: pandocconcerns upstream pandoc

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions