-
Notifications
You must be signed in to change notification settings - Fork 171
Closed
Description
With the version 1.1.0
, the following code
from markdownify import markdownify as md
print(
md(
'<code>We have to `manage` this.</code>',
)
)
should print
``We have to `manage` this.``
instead of
`We have to `manage` this.`
In one of my project, I have fixed this using the following lines of code.
def convert_code(self, el, text, parent_tags = None):
if el.parent.name == "pre":
return text
code = el.get_text()
if "`" in code:
code = f"`{code}`"
return f"`{code}`"
Metadata
Metadata
Assignees
Labels
No labels