Option to enable HeaderIds in marked
See original GitHub issueIs your feature request related to a problem? It would be helpful if you could jump directly to a give location the project page/README.md. Today tools like oclif create README.md files that contain e.g. a TOC that relies on HTML anchors. Websites like github or gitlab also support these anchors.
Describe the solution you’d like
The marked package used by verdaccio can generate these anchors( as id=…) by setting marked.use({renderer,headerIds: true})
If there are usecases where headerIds are not welcome, i’d like to have a config option where i can enable them manually for my verdaccio installation.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
setOptions - Marked Documentation
If true, use approved GitHub Flavored Markdown (GFM) specification. headerIds, boolean, true, v0.4.0, If true, include an id attribute when emitting headings ( ......
Read more >headerIds is not valid. · Issue #1208 · markedjs/marked - GitHub
I don't believe the headerIds option was added to a release yet ... we have not actually released the ability to disable header...
Read more >HTML Specific Settings - Marked 2
Disable Automatic Header IDs¶. Marked includes an option to disable automatic header ID generation. You can find this option in the Marked 2...
Read more >hexo-renderer-marked: Documentation | Openbase
First solution is to enable option dompurify: true , which will sanitize the rendered HTML. The side effect of this solution is that...
Read more >options.marked - Assemble.io
Enable GitHub flavored markdown. highlight. Type: Function. A function to highlight code blocks. The function takes three arguments: code , lang ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
just tried with
docker run -p 4873:4873 verdaccio/verdaccio:5.x-next
.curl http://localhost:4873/-/verdaccio/package/readme/minipackage shows the header id
but the webapp http://localhost:4873/-/web/detail/minipackage still has
it seems that the webapp does some sanitize() too.
Is there some way to customize the webapp rendering?
@mknj master uses still
yarn v1
. The master only allows deps updates or urgent bug fixes. New development happens only on5.x
otherwise is crazy keep both on sync.The
5.x-next
on Docker hub yeah, it is old, I should remove that tag. I’m deploying here https://github.com/verdaccio/verdaccio/packages/13531 in every merge to5.x