You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inline styles within <pre>/<code> blocks should be ignored #103
Markdown has no provision for inline styles within preformatted content (unless extensions/etc. are used).
However, inline styles are incorrectly applied within <code> and <pre> blocks (note the ** in these examples):
from markdownify import markdownify as md
md('<code><b>text</b></code>') # > '`**text**`'
md('<pre><b>text</b></pre>') # > '\n```\n**text**\n```\n'
and because content is interpreted literally in Markdown preformatted content, the extra styling characters are interpreted as literal content characters instead.
@AlexVonB - you seem to be the most recently active maintainer. If I contribute a pull request for this, can it be considered for inclusion in the next release?
I would also like to contribute fixes other reported issues in this project. Is there a way I can reach you to talk more about it?
Activity
chrispy-snps commentedon Jan 13, 2024
@AlexVonB - you seem to be the most recently active maintainer. If I contribute a pull request for this, can it be considered for inclusion in the next release?
I would also like to contribute fixes other reported issues in this project. Is there a way I can reach you to talk more about it?
AlexVonB commentedon Jan 14, 2024
Hi @chrispy-snps , I just sent you an email to you work address! :)
Avoid inline styles inside `<code>` / `<pre>` conversion
Avoid inline styles inside `<code>` / `<pre>` conversion
Avoid inline styles inside `<code>` / `<pre>` conversion (#117)
Avoid inline styles inside `<code>` / `<pre>` conversion (matthewwith…