downlit
downlit copied to clipboard
Syntax Highlighting and Automatic Linking
I was playing with `downlit_md_path()` for possible use in reprex (https://github.com/tidyverse/reprex/issues/367) and noticed that I could not successfully use `out_path`. It *does* seem to work if one is doing everything...
Work around https://github.com/rstudio/rmarkdown/issues/1889.
The copy-code button is removed when running `downlit` on html pages created by Quarto. This happens because `downlit` seems to replace any class of the DIV, instead of appending to...
The following document renders differently after version 0.4.0. ````r --- output: hugodown::hugo_document --- ```{r} 1 + 1 ``` ```` It used to render to ````html --- output: hugodown::hugo_document rmd_hash: afe01a4d6eaaf4f6...
**knitr** supports `class.source` and `attr.source` to add class and attributes on fenced code blocks Take this example ````markdown --- output: rmarkdown::html_document: highlight: pygments --- ```{r select1, class.source = "my-class"} print("Hello...
Pandoc allows to add number lined in code chunk by adding the class `.number-lines` to code chunk. This can be done in R Markdown using `class.source` knitr option, but is...
According to the [pandoc documentation](https://pandoc.org/MANUAL.html#extension-yaml_metadata_block), yaml metadata is only written to markdown output if `--standalone` is used: > When pandoc is used with -t markdown to create a Markdown document,...
The following works ```r `::$new()` ``` The following do not ```r `` `$new()` ``` I've played around a bit with `downlit::highlight()` and found that ```r downlit::highlight("$new()") ``` does not include...
Instead of relying on fansi — that way we could generate classes that are controlled by the theme. (Only need to support named colours + italic/bold/underline, so can probably just...