Adds an HTML ID to code blocks and other elements.
# Headline <?: #my-headline ?>
```html #my-code
<p>Example</p>
```
Lorem ipsum dolor sit amet. <?: #my-paragraph ?>
Results in:
<h1 id="my-headline">Headline</h1>
<div id="my-code">
...
</div>
<p id="my-paragraph">Lorem ipsum dolor sit amet.</p>
npm i pimd @pimd/id-plugin
const idPlugin = require("@pimd/id-plugin")
const config = new Config()
config.use(idPlugin)
const markdown = `
`
const doc = new Document(markdown, config)
console.log(doc.render())
Copyright 2018++ Nico Hagenburger. See MIT-LICENSE for details. Get in touch with @hagenburger on Twitter or open an issue.