Skip to content

Refactor as last post-processor#3

Open
fancsali wants to merge 3 commits intoSaschaCowley:masterfrom
fancsali:master
Open

Refactor as last post-processor#3
fancsali wants to merge 3 commits intoSaschaCowley:masterfrom
fancsali:master

Conversation

@fancsali
Copy link

Fixes issue #2.

Other processors/extensions may generate headings, that might need to be
downgraded. A prime example is the built-in raw HTML processing, that
removes inline HTML processes the actual markdown, and then -- in a
preprocessor -- puts the removed raw HTML back.

To avoid this, the header downgrade logic has been moved to a
postprocessor with a low priority (5) to make sure it's the last thing
running.
Enable the user to add 'headdown="0"' to the tag, and make the
extension skip this heading.
@SaschaCowley
Copy link
Owner

This will break on headings that have other attributes set.

@fancsali
Copy link
Author

You are completely right; it's a good shout. Apparently I missed the last commit. ;)

@Kristinita
Copy link

@SaschaCowley, please merge this pull request or specify the reasons for rejecting it when you have time.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants