-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add documentation for Slugger #1484
Comments
the slug function is exposed Line 1685 in 5d727cb
|
You can get the slug function from
|
Haha, what the heck. I somehow overlooked it in the code. 🙈 Then the questions remains if it should be part of the token already 🤔 |
I don't think computed properties should be part of the AST |
When you say it like this, I guess you're right. |
PRs are welcome |
@UziTech The documentation already talks about the slugger. Do we need to add more info or clarify it somehow? Otherwise we can probably close this issue. |
The documentation should say something about |
Currently the heading token looks like this
I think it should also contain the heading id as it is not easy to generate from the text (https://github.com/markedjs/marked/blob/master/lib/marked.js#L1312).
An alternative would be to expose the
slug
function via the marked module.The text was updated successfully, but these errors were encountered: