Description Usage Arguments Value References

This function converts the syntax ```{theorem, label, ...} to ::: {.theorem #label ...} (Pandoc's fenced Div) for theorem environments.

1 | ```
fence_theorems(input, text = xfun::read_utf8(input), output = NULL)
``` |

`input` |
Path to an Rmd file that contains theorem environments written in the syntax of code blocks. |

`text` |
A character vector of the Rmd source. When |

`output` |
The output file to write the converted input content. You can
specify |

If `output = NULL`

, the converted text is returned, otherwise
the text is written to the output file.

Learn more about theorems and proofs and custom blocks in the bookdown book.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.