You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would offer better support for R highlighting in rmarkdown now that downlit is supported. After all , the KDE syntax file for R is not the best for parsing the R syntax.
For reference, we currently have a patch in rmarkdown to support those operator in HTML document when Pandoc highlighting is used. We will also provide a r.xml for Pandoc but support is limited in term of Pandoc version.
The text was updated successfully, but these errors were encountered:
While working on rstudio/rmarkdown#2196 and following rstudio/rmarkdown#1881 (comment) I think downlit needs to be adjusted to support the parsing of
|>
and=>
pipe operators.I compared the result with magrittr pipe
Some notes as I was looking into this
Probably just need to support new toke type
PIPE
andPIPEBIND
to add to infix category in downlitThe anonymous function syntax
\(args) expr
seems not specifically parsedI can try a PR if you want.
This would offer better support for R highlighting in rmarkdown now that downlit is supported. After all , the KDE syntax file for R is not the best for parsing the R syntax.
For reference, we currently have a patch in rmarkdown to support those operator in HTML document when Pandoc highlighting is used. We will also provide a
r.xml
for Pandoc but support is limited in term of Pandoc version.The text was updated successfully, but these errors were encountered: