Skip to content
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

enabled_tags configuation option for md_in_html #937

Closed
Gittenburg opened this issue Apr 10, 2020 · 1 comment
Closed

enabled_tags configuation option for md_in_html #937

Gittenburg opened this issue Apr 10, 2020 · 1 comment

Comments

@Gittenburg
Copy link

I am using python-markdown for a project where the Markdown is also converted to PDF with pandoc. Since pandoc does not support the admonition syntax of python-markdown (jgm/pandoc#2610), I use custom HTML tags (<warning>, <important>, <tip>) instead which are easy to write a filter for in Pandoc. I enabled the tags by setting block_level_elements and would like to enable Markdown parsing inside them by default, so that we don't always have to specify the markdown attribute.

Would you accept a pull request adding an enabled_tags configuration option to the md_in_html extension? MarkdownInHtmlExtension(enabled_tags=['warning']) would enable Markdown in <warning> tags by default.

@waylan
Copy link
Member

waylan commented Apr 10, 2020

No. However this sounds like a great candidate for a third party extension.

Sent with GitHawk

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

No branches or pull requests

2 participants