Code blocks from Lemmy get mangled here on Kbin
Code blocks from Lemmy get mangled here on Kbin
For example see this comment:
https://kbin.social/m/haskell/t/511582/Defeating-Return-Type-Polymorphism#entry-comment-2765579
There are so many <span>
tags inserted into the code block that it has become completely unreadable.
Is this a known problem?
You're viewing a single thread.
Permanently Deleted
2 0 ReplyI think Lemmy is correct here and the Mozilla docs only refer to the text content, not elements. It also mentions that < and > still have to be escaped to be displayed.
The HTML spec https://html.spec.whatwg.org/multipage/grouping-content.html#the-pre-element defines that the element contains „phrasing content“ which \ is part of.
It even explicitly mentions nesting \ inside .
3 0 ReplyYou're right, I only read the beginning of article, the Mozilla docs also mention the phrasing content later on the same page.
Guess it's really on kbin then to fix this.
1 0 Reply