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

Link text cut off when link text contains backticks (code) #91

Open
h3xx opened this issue Feb 16, 2023 · 0 comments
Open

Link text cut off when link text contains backticks (code) #91

h3xx opened this issue Feb 16, 2023 · 0 comments

Comments

@h3xx
Copy link

h3xx commented Feb 16, 2023

When a markdown link text contains backticks, it gets rendered incorrectly, omitting some or all of the link text.

It appears to omit everything after and including the first backtick, e.g. "foo `bar` baz" becomes "foo ".

MCVE

Given the following input:

Code in link: [`foo`](https://example.com)
No code in link: [foo](https://example.com)
Some code in link: [some other `code` in here](https://example.com)

The following output will be generated:

.nh

.PP
Code in link:
\[la]https://example.com\[ra]
No code in link: foo
\[la]https://example.com\[ra]
Some code in link: some other
\[la]https://example.com\[ra]

Expected output:

.nh

.PP
Code in link: \fB\fCfoo\fR
\[la]https://example.com\[ra]
No code in link: foo
\[la]https://example.com\[ra]
Some code in link: some other \fB\fCcode\fR in here
\[la]https://example.com\[ra]

go-md2man version: 7a5c8b3
golang version: 1.14.15
Linux x86_64

@h3xx h3xx changed the title Link text cut off when link text contains backticks (\code\) Link text cut off when link text contains backticks (code) Feb 16, 2023
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