Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
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

Closed

Description

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
image

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.

Thanks very much 👍

Activity

  1. marijnh commented on Jan 31, 2020

    @marijnh
    Member

    That mode isn't being actively maintained, but if you submit a pull request I'll review it.

  2. added a commit that references this issue on Feb 22, 2020
    ce1495c
  3. added a commit that references this issue on Oct 31, 2020
    14d7274
  4. added a commit that references this issue on Sep 5, 2024
    5920088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions