Support for Markless Documents #2340

Open
opened 2026-01-26 17:34:50 +01:00 by shinmera · 0 comments

Comment

As discussed in forgejo/forgejo#10629: Currently several types of documents on Codeberg are nicely presented with rendered previews in the UI, such as Markdown, Org, ASCIIdoc, and more, but Markless documents are still rendered as monospaced plaintext documents, which makes them appear ugly and hard to read.

You can find several people in the Forgejo issue ticket expressing desire for support of this feature on Codeberg.

I've already done all the legwork for both a native Go implementation and a patch to Forgejo to support Markless rendering in shinmera/forgejo@178a65813b and also as a standalone Go application, which can be configured in a Forgejo instance as shown here: forgejo/forgejo#10629 (comment)

Further I've contributed syntax highlighting support for Chroma, which has been merged in v2.23.0. I'm also looking into implementing a module for Lezer and CM6, which I understand is the editor in use by Forgejo these days, though I've gotten much busier recently so I'm not sure when that'll get done.

### Comment As discussed in forgejo/forgejo#10629: Currently several types of documents on Codeberg are nicely presented with rendered previews in the UI, such as Markdown, Org, ASCIIdoc, and more, but Markless documents are still rendered as monospaced plaintext documents, which makes them appear ugly and hard to read. You can find several people in the Forgejo issue ticket expressing desire for support of this feature on Codeberg. I've already done all the legwork for both a native Go implementation and a patch to Forgejo to support Markless rendering in shinmera/forgejo@178a65813b and also as a [standalone Go application](https://codeberg.org/shirakumo/markless-go), which can be configured in a Forgejo instance as shown here: https://codeberg.org/forgejo/forgejo/issues/10629#issuecomment-9648917 Further I've contributed syntax highlighting support for Chroma, which has been merged in [v2.23.0](https://github.com/alecthomas/chroma/releases/tag/v2.23.0). I'm also looking into implementing a module for Lezer and CM6, which I understand is the editor in use by Forgejo these days, though I've gotten much busier recently so I'm not sure when that'll get done.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#2340
No description provided.