angeloashmore / gatsby-remark-find-replace

Gatsby remark plugin to find and replace text
5 stars 2 forks source link

How to make this work inside code blocks? #1

Closed gaurav-nelson closed 4 years ago

gaurav-nelson commented 5 years ago

Thank you @angeloashmore for creating this plugin. It works as intended and very easy to configure and use. However, I am unable to make it work inside Markdown code blocks. For example, if I include the %VERSION inside a code block. It renders as:

npm install module@%VERSION

How to make this work to replace text inside code blocks?