Open
Description
Currently, we mainly support Theorem and Proof: https://bookdown.org/yihui/bookdown/markdown-extensions-by-bookdown.html#theorems
It would be interesting to support more generic Note block with pre defined style as we can see in several places.
- block example https://bookdown.org/yihui/bookdown/custom-blocks.html where the required CSS is only in the book
- Jupyter book content block: https://jupyterbook.org/content/content-blocks.html
- http://desiree.rbind.io/post/2019/making-tip-boxes-with-bookdown-and-rmarkdown/
- Mkdocs: https://squidfunk.github.io/mkdocs-material/reference/admonitions/
See also #940 (comment) for ideas.
Creating issue here for reference, but maybe this should not be in bookdown, or not all.
But support for some special block to support HTML and PDF output would be interesting.
For example in LaTeX:
- https://tex.stackexchange.com/questions/53245/pretty-formattings-for-warning-and-info-blocks
- https://ctan.org/tex-archive/graphics/bclogo/
- https://tex.stackexchange.com/questions/8689/how-to-create-a-warning-box-like-this-see-the-figure-to-get-the-idea
- https://ctan.org/pkg/awesomebox and https://ctan.org/pkg/tcolorbox used in this nice book template https://github.com/Wandmalfarbe/pandoc-latex-template with blocks: