# Strict CommonMark for comments (avoid § 6.8 exception)

**URL:** <https://forum.codefloe.com/t/strict-commonmark-for-comments-avoid-6-8-exception/262>\
**Category:** Site Feedback\
**Created:** [November 18, 2026, 7:02am UTC](https://forum.codefloe.com/t/strict-commonmark-for-comments-avoid-6-8-exception/262 "2026-11-18T07:02:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcepl](https://forum.codefloe.com/user_avatar/forum.codefloe.com/mcepl/32/253_2.png) [@mcepl](https://forum.codefloe.com/u/mcepl)\
**Post date:** [November 18, 2026, 7:02am UTC](https://forum.codefloe.com/t/strict-commonmark-for-comments-avoid-6-8-exception/262/1 "2026-11-18T07:02:02Z")

</div>

With the current site configuration, this Markdown (notice EOL after `requires`; don’t mind the text doesn’t make any sense):

```markdown
native SomeWM chooser. It's dead code at the moment: nothing requires
works, so nothing is broken today.

```

is translated to HTML as

```html
<p>native SomeWM chooser. It's dead code at the moment: nothing requires<br/>
works, so nothing is broken today.</p>

```

instead of

```html
<p>native SomeWM chooser. It's dead code at the moment: nothing requires works, so nothing is broken today.</p>

```

I have learned (with kind help of Gemini) that it is actually not a bug in renderer, because [the specification](https://spec.commonmark.org/current/#soft-line-breaks) has this (in my opinion wrong, but it is a specification) exception:

> A renderer may also provide an option to render soft line breaks as hard line breaks.

Could we please **NOT** have this option on and require strict Markdown? It creates exceptionally ugly results like [https://codefloe.com/mcepl/somewm-config/issues/1](https://codefloe.com/mcepl/somewm-config/issues/1) and it is against expectations hold from other sites using Markdown (not only GitHub, which is obvious, but also Reddit and anywhere else I encounter Markdown these days, which is like everywhere).

---

<div class="post-metadata">

**Author:** ![codefloe](https://forum.codefloe.com/user_avatar/forum.codefloe.com/codefloe/32/347_2.png) [@codefloe](https://forum.codefloe.com/u/codefloe)\
**Post date:** [November 18, 2026, 8:32am UTC](https://forum.codefloe.com/t/strict-commonmark-for-comments-avoid-6-8-exception/262/2 "2026-11-18T08:32:12Z")

</div>

Thanks for the proposal!

What you refer to is Forgejo’s `ENABLE_HARD_LINE_BREAK_IN_COMMENTS` setting, and we run with its default.  
It matches how GitHub renders issue and PR comments, where a single newline also becomes a line break; repository Markdown files (READMEs, docs) are rendered strictly, as you’d expect.

Since rendering happens at view time, switching it off would retroactively reflow every existing comment on the instance, which would break formatting that many users rely on, so we’d prefer to keep the default.  
For text that is hard-wrapped (e.g. copied from a commit message), the easiest fix is to unwrap the paragraph before posting.

We could add a per-user option in Arbinel for this though, maybe you want to contribute this in a PR?
