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

Angle brackets within code blocks get removed #908

Closed
sesse opened this issue Oct 16, 2023 · 1 comment
Closed

Angle brackets within code blocks get removed #908

sesse opened this issue Oct 16, 2023 · 1 comment

Comments

@sesse
Copy link
Contributor

sesse commented Oct 16, 2023

It seems there is some odd HTML stripping at work within code blocks (triple backticks). The simplest way to reproduce is to send a message to yourself containing

```<a>```

It comes out as

12:40:07 Sesse | ```
12:40:07       | a
12:40:07       | ```

This is rather cumbersome when trying to discuss the subtleties of HTML :-)

<a or a> comes out just fine, so I guess there's some stripping at work; the web client displays the tags verbatim. It also works just fine if I'm using double backticks only.

@trygveaa
Copy link
Member

Ah, this is caused by the rendering changes I did a little while ago (commit 74da303, to fix #893 among others). I did a related fix in commit 6478c14, but apparently I only considered normal text and inline code there, not code blocks. It should be fixed now.

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