Markdownify icon indicating copy to clipboard operation
Markdownify copied to clipboard

Code tags converted to single backticks

Open chmac opened this issue 7 years ago • 0 comments

I used markdownify via wordpress-to-jekyll-exporter and according to this issue the bug report belongs here.

I'm seeing the following conversion.

From:

 <code>Foo<br/>
 Bar</code>

To:

`Foo<br/>
Bar`

Problem is, in markdown, single backticks don't handle linebreaks. Also, the <br /> should probably be removed. I'm not really sure on the exact details, and unfortunately I don't know enough about markdownify to submit a working reproduction. :-(

My guess is that <code> and </code> could be converted to triple backticks (```) instead of just one backtick.

I guess that some kind of processing is also necessary inside the <code> tags.

Just let me know if I can do anything to help with debugging. Thanks for making open source software. :-)

chmac avatar Feb 20 '18 15:02 chmac