-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove id attributes from heading elements #13
Comments
+1 |
Oh..looks like there already is a plugin that uses a bit different flavor of markdown. |
@sinkingshriek Thanks, metalsmith-markdownit does it for me. Much appreciated. |
// ...
marked = require('marked');
const renderer = new marked.Renderer();
renderer.heading = (text, level) => `<h${level}>${text}</h${level}>`;
// ...
.use(markdown({
renderer,
}))
// ... Thanks to markedjs/marked#326 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to remove id attributes from heading elements?
## Awesome Title Here
produces:
<h2 id="awesome-title-here">Awesome Title Here</h2>
I'd much rather prefer clean markup such as:
<h2>Awesome Title Here</h2>
The text was updated successfully, but these errors were encountered: