Formatting slides and syntax limitations
masterThe xaringan package builds upon remark.js. While it simplifies several aspects (like removing the need for boilerplate HTML and providing easy autoplay via moon_reader() options), there are important syntax considerations:
- Markdown Compatibility:
remark.jsdoes not support Pandoc's Markdown. Avoid using advanced Pandoc-specific features. - Math: LaTeX math is supported out of the box.
- HTML: You can use raw HTML for elements not supported by the basic Markdown syntax (e.g., using
knitr::kable(head(iris), 'html')for tables). - Styling: You can use CSS to customize the appearance of your slides. The package provides a default CSS theme, but users can extend it using custom CSS.