- A Remark Plugin for Easier Code Snippets I couldn’t find a way to include code snippets from separate code files in markdown documents in the way that I wanted (specified in the frontmatter and with the ability to choose which lines to import), so I created my own Remark plugin (with some help from Claude 🤖). Now I can use the shortcode
:code[1-4]:
to get exactly the code I want!