Skip to content

Gremlins 0.7.0

Choose a tag to compare

@xRyul xRyul released this 03 Aug 18:44
· 36 commits to main since this release

Duplicate list markers and list marker spacing

Gremlins 0.7.0 adds two opt-in rules for cleaning up malformed Markdown list markers.

Gremlins highlighting duplicate list markers and extra marker spacing

Duplicate list markers

Highlights consecutive unordered markers such as:

- - Detect double bullets

Clicking the Gremlin gutter icon removes the redundant first marker:

- Detect double bullets

List marker spacing

Highlights unordered and ordered markers followed by extra spaces or a tab:

-  Detect space
1.  Detect space

The gutter fix normalizes each marker delimiter to one ordinary ASCII space:

- Detect space
1. Detect space

Safeguards

  • Both rules are disabled by default because compact nested-list syntax and multiple delimiter spaces can be intentional Markdown.
  • Unordered, ordered, nested, and blockquoted list markers are supported.
  • Compact nested marker chains are checked without producing overlapping fixes.
  • Ordered markers follow Markdown's one-to-nine-digit limit.
  • Thematic breaks, potential Setext underlines, marker-only lines, fenced code, comments, frontmatter, math, and other literal Markdown regions are ignored.
  • Gremlins never changes a note automatically.

Configuration

Enable Settings → Gremlins → Duplicate list markers and/or List marker spacing. To repair highlighted lines from the gutter, also enable Gutter icons and Click gutter icons to fix.