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] Hashtags inside markdown pre-blocks are rendered as HTML links #783

Closed
illfygli opened this issue Aug 30, 2022 · 0 comments · Fixed by #787
Closed

[bug] Hashtags inside markdown pre-blocks are rendered as HTML links #783

illfygli opened this issue Aug 30, 2022 · 0 comments · Fixed by #787
Labels
bug Something isn't working

Comments

@illfygli
Copy link
Contributor

Describe the bug with a clear and concise description of what the bug is.

Posting this:

```
hej hej #hej #hej
```

Results in this:

hej hej <a href="https://doma.in/tags/hej" class="mention hashtag" rel="tag">#<span>hej</span></a> <a href="https://doma.in/tags/hej" class="mention hashtag" rel="tag">#<span>hej</span></a>

What's your GoToSocial Version?

0.4.0-rc2

GoToSocial Arch

amd64 binary

What happened?

The comment character in the code block turned into links, but not actual links, just HTML within the code block.

What you expected to happen?

No links should be there.

How to reproduce it?

Post

```
Anything #thisWillBecomeALink
```

Anything else we need to know?

You are nice and good.

@illfygli illfygli added the bug Something isn't working label Aug 30, 2022
@illfygli illfygli changed the title [bug] Hashtags inside markdown pre-blocks [bug] Hashtags inside markdown pre-blocks are rendered as HTML links Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant