chore(deps): update dependency markdown-it-table-of-contents to v1 (main) #859
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.9.0
->1.1.0
Release Notes
cmaas/markdown-it-table-of-contents (markdown-it-table-of-contents)
v1.1.0
Compare Source
getTokensText(tokens)
now trims whitespace from headlines. It did so before most of the time, but when used together with custom attributes via the markdown-it-attrs plugin and there was more than one space between headline text and custom attribute (e. g.## Headline {#custom-id}
), this lead to trailing whitespaces (fixes #67 part 2)slugify(s)
had an undocumented second parameter, which contained the raw Markdown text. This is now a documented parameter, which receives the raw token. If you used this undocumented parameter before, you can achieve the old behavior like this:slugify: (s, token) => do_your_thing_with(token.content)
getTokensText(tokens, rawToken)
has now a second parameter and receives the raw token. You can use this to modify how text is extracted from a headline. See README for examples. Fixes #67 part 1.v1.0.0
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.