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

pandoc markdown output drops attributes if href and text are identical #7692

Closed
jjallaire opened this issue Nov 15, 2021 · 0 comments
Closed

Comments

@jjallaire
Copy link

The following input results in the .clz being dropped:

echo "[https://example.com](https://example.com){.clz}" | pandoc --to markdown
<https://example.com>

Whereas if we change the text to diverge from the link then the attribute is preserved:

echo "[https://example.com/foo](https://example.com){.clz}" | pandoc --to markdown
[https://example.com/foo](https://example.com){.clz}

Observed in Pandoc 2.14.2 and 2.16.1 on Mac OX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants