markdown-it-template-literals
markdown-it-template-literals lets you put ${variables} in your markdown, similar as JS template strings.
For example, take this input:
<script>// define variables here under __md_tl_scope, use var (do not use let or const)var __md_tl_scope = { variables: [1,2,3].map(_ => Math.random()), replaced: 'rrrrreplaced',}</script> # This issome markdown with \${variables} thatcan be \${replaced}.</script>
Results in:
This issome markdown with 0.5828191413301298,0.043310291215606256,0.9787475428111776 thatcan be rrrrreplaced.
Security
This package uses evil eval, be aware of injection attacks!
License
MIT © Arve Seljebu