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

Code tags converted to single backticks #34

Open
chmac opened this issue Feb 20, 2018 · 0 comments
Open

Code tags converted to single backticks #34

chmac opened this issue Feb 20, 2018 · 0 comments

Comments

@chmac
Copy link

chmac commented Feb 20, 2018

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. :-)

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

1 participant