fix: markdown headings, dash lists and table separators - #76
Open
lvolland wants to merge 1 commit into
Open
Conversation
lvolland
force-pushed
the
fix/markdown-headings-lists
branch
from
August 1, 2026 13:33
d4c7138 to
a637d8d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hey! found this highlighting a readme with
md.the
cmntrule(=|-)\1+isn't anchored, so it fires on any--or==in a line. your own readme hits it: every|------|in the language table is painted as a setext underline.-/+bullets,1)lists and atx headings had no rule.today only the
----cells and the--are colored, ascmnt. expected: table row plain,#assection, the three bullets askwd.fix: anchor
cmntto a whole line (^[ \t]*(=|-)\1+[ \t]*$), widen the list rule to[*+-]/\d+[.)], add asectionrule. the list rule ends with([ \t]|$)so a marker alone on its line stays lit while you type — same spirit as the optional closing delimiters elsewhere. +81 bytes, ~+69 minified (estimated).test.mdupdated; it's the only fixture that moves.notes
--/==not alone on its line loses itscmnt:i--,a == b,--verbose, tables with or without outer pipes.# headingand a bare#stay uncolored, to keep 4-space code blocks dark.sectionisn't styled ingithub-dim.cssortermcolor.js— pre-existing, but md makes it visible.sectionlower if you prefer the ini/toml ordering 🙂