this post was submitted on 05 Oct 2023
7 points (100.0% liked)

/kbin meta

3 readers
3 users here now

Magazine dedicated to discussions about the kbin itself. Provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics. ---- * Roadmap 2023 * m/kbinDevlog * m/kbinDesign

founded 1 year ago
 

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?

all 5 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

So, slight correction to my previous post (which I now deleted) thanks to @troplin.

It seems that phrasing content like \ elements are allowed inside \ elements according to the spec, so Lemmy is actually doing the right thing there. It's on kbin to fix this, not Lemmy.

I commented on one of the closed issues about this on the kbin code repository, asking for the issue to be reopened. Hopefully it will so this gets fixed, I'm not sure though how visibility works if the issue is already closed. I'll make a new one if it's neither reopened nor replied to until next week, if no one else does first.

[–] [email protected] 0 points 1 year ago

The issue here is that Lemmy is federating out it's content with the pre blocks containing rendered code fit for some sort of code display plugin/CSS - which KBin doesn't have.

It would ideally send out the blocks html encoded and would let downstream implementations like KBin or others figure out how to display it themselves. I don't know how we would fix this.