Skip to content

HTML to Markdown inserts an extra space before links #11

@zturtleman

Description

@zturtleman

wp2hugo inserts an extra space before links (second and third links) if not at the beginning of the line (first link) or proceeded by a space (forth link).

WordPress XML export:

<!-- wp:paragraph -->
<p><a href="https://example.com">Hello world</a>. "<a href="https://example.com">Example 1</a>". (<a href="https://example.com">Example 2</a>, <a href="https://en.wikipedia.org">Wikipedia</a>)</p>
<!-- /wp:paragraph -->

Hello world. "Example 1". (Example 2, Wikipedia)

Generated by wp2hugo:

[Hello world](https://example.com). " [Example 1](https://example.com)". ( [Example 2](https://example.com), [Wikipedia](https://en.wikipedia.org))

Hello world. " Example 1". ( Example 2, Wikipedia)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions