With the version `1.1.0`, the following code ~~~python 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. ~~~python 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}`" ~~~
Activity
[-]Code using `[/-][+]BUG - Inline code using `[/+]support backticks in <code> spans (matthewwithanm#226)
[-]BUG - Inline code using `[/-][+]Support backticks inside inline code spans[/+]support backticks in <code> spans (matthewwithanm#226)
support backticks in <code> spans (#226) (#230)