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

Bug: Linkify should not be creating hyperlinks for regex matches in monospace text #11

Open
bourgeoisor opened this issue Sep 19, 2023 · 0 comments

Comments

@bourgeoisor
Copy link

bourgeoisor commented Sep 19, 2023

When Linkify notices a regex match, it "creates" a hyperlink out of it. This works in most cases, but it should not be the case inside of monospace text (i.e. single-backtick and triple-backticks).

Example Markdown

### Single back-ticks
`https://google.com`
`g/this-should-not-be-a-link`

### Triple back-ticks
```
https://google.com
g/this-should-not-be-a-link
```

This uses the following Linkify config: g\/([a-zA-Z0-9#_.-]+) -> http://g/$1

image

Notice the regular looking links (like https://google.com) do not show up as hyperlink (this is intentional), but the links that Linkify looks for do show up as hyperlink (they should not).

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