Skip to content

Code tags converted to single backticks #34

@chmac

Description

@chmac

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions