Add prepend arg to toc extra (#397)#568
Merged
nicholasserra merged 2 commits intotrentm:masterfrom Feb 28, 2024
Merged
Conversation
Collaborator
|
Don't we do this somewhere else also? Maybe for some table extra. This is giving me deja vu |
Merged
Contributor
Author
|
Can't think of anywhere else we do this. The only recent changes to TOC I can think of is with mixed header-ids where we sort the TOC by order of appearance. Only other place that toc is outputted seems to be in the CLI python-markdown2/lib/markdown2.py Lines 3313 to 3315 in 749ee72 |
Collaborator
|
Yup, I'm remembering adding support to the CLI output here |
Collaborator
|
Needs a rebase or merge in |
63c1af7 to
e37b516
Compare
e37b516 to
f90c2e1
Compare
Contributor
Author
|
Rebased onto master |
Collaborator
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 closes #397 by adding a flag that enables the TOC to be prepended to the output text.
This option is off by default to maintain backward compatibility