How to Use Shortcodes in Blogdown

Hongtao Hao / 2020-11-03


I found the way to use shortcodes in Blogdown here .

Take the shortcodes of my custom block as an example. If I want to use them in a post created by Blogdown , I’ll do it this way:

`r blogdown:shortcode("block", class="note")`
Write my note information here.
`r blogdown:shortcode("end")`

The above codes will create this:

Write my note information here.

Thanks, Yihui !

Last modified on 2020-11-29