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

HTML to Markdown inserts an extra space before links #11

Open
zturtleman opened this issue Mar 27, 2024 · 1 comment
Open

HTML to Markdown inserts an extra space before links #11

zturtleman opened this issue Mar 27, 2024 · 1 comment

Comments

@zturtleman
Copy link

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)

@ashishb
Copy link
Owner

ashishb commented Apr 7, 2024

@zturtleman Seems like an issue with underlying library, I am trying to see what I can do here.

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

2 participants