GitShow/sindresorhus/remark-custom-header-id
sindresorhus

remark-custom-header-id

Remark plugin for adding a custom ID attribute to Markdown headers

by sindresorhus
markdownnodejsnpmremarkremark-plugin
Star on GitHubForknpm

JavaScript

45 stars6 forks2 contributorsQuiet · 2y agoSince 2024v1.0.0MIT

Meet the team

See all 2 on GitHub →
sindresorhus
sindresorhus4 contributions
ffperera
ffperera1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
mering
Extend to classesClosedIssue

Would be great if one could also specify classes like .

mering · 8mo ago
ffperera
Alternative for mdx filesClosedIssue

Hi! Your plugin is very useful. There is a problem not related with the plugin but with this aproach in Astro mdx files: Some heading title {#anchor-identifier} because the text inside { } in markdown content is interpreted as js code and breaks everything. In one of my Astro projects I'm using this aproach: Some heading title and changing a bit the regex in your plugin (I'm using it as a local module in my project) everything work as expected. I think could be easy to modify the regex to match both patterns. I could make a PR if you are interested. Regards!

ffperera · 2y ago
ffperera
Alternative syntax for MDX filesMergedPR

Fixes #2 Little change in the regex pattern to match both the regular syntax and the alternative syntax . Changed test.js to include examples with the alternative syntax. Changed readme.md to include a brief explanation and examples of use. As a side effect, the regex pattern match some combinations of delimiters: But I think it is not a big deal. I don't see an easy way to change the regex without changing also the code.

ffperera · 2y ago
Structured data for AI agents

Repository: sindresorhus/remark-custom-header-id. Description: Remark plugin for adding a custom ID attribute to Markdown headers Stars: 45, Forks: 6. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: markdown, nodejs, npm, remark, remark-plugin. Latest release: v1.0.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 71%. Top contributors: sindresorhus, ffperera.

·@ofershap

Replace github.com with gitshow.dev