You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
Feature Request: Option to disable setext headers in markdown mode #6129
I know that setext headers are part of the commonmark spec, but our users find them unexpected and confusing (particularly when only a single character is used), in part because we style cm-header-2 to match the font size it will be rendered at
Would it be possible to add an option to disable setext headers to the markdown modeConfig in the same way other markdown features can be enabled/disabled like strikethrough
Alternatively, the spec says
If a line containing a single - can be interpreted as an empty list items, it should be interpreted this way and not as a setext heading underline.
which if implemented would largely solve our issue as well.
Activity
marijnh commentedon Jan 31, 2020
That mode isn't being actively maintained, but if you submit a pull request I'll review it.
DIsallow single dash for a setext header, fixes codemirror#6129
Update/5.58.2 (#1)
[markdown mode] DIsallow single dash for a setext header