Skip to content

fix Markdown list highlighting - #2401

Merged
archseer merged 1 commit into
helix-editor:masterfrom
ChrHorn:markdown-list
May 7, 2022
Merged

fix Markdown list highlighting#2401
archseer merged 1 commit into
helix-editor:masterfrom
ChrHorn:markdown-list

Conversation

@ChrHorn

@ChrHorn ChrHorn commented May 4, 2022

Copy link
Copy Markdown
Contributor

This should fix #1597

I did it according to the current docs. Question is, should we

  1. keep the 2 different styles for ordered/unordered
  2. add markup for list text itself

@the-mikedavis

Copy link
Copy Markdown
Member

What would you think about markup.list.ordered/markup.list.unordered similar to the HTML phrases for these? I don't mind numbered and unnumbered though.

@the-mikedavis

Copy link
Copy Markdown
Member

for the questions:

  1. I like the distinction between ordered and unordered. A theme can define just markup.list as a fallback so it doesn't have to theme them differently if it doesn't want.
  2. I don't mind not theming the item text. I don't really see a scenario where it would be useful. But I probably wouldn't argue against it.

@ChrHorn

ChrHorn commented May 4, 2022

Copy link
Copy Markdown
Contributor Author

What would you think about markup.list.ordered/markup.list.unordered similar to the HTML phrases for these? I don't mind numbered and unnumbered though.

Yes, that would be a good idea. The spec uses ordered list and bullet list but I would prefer unordered.

@ChrHorn

ChrHorn commented May 6, 2022

Copy link
Copy Markdown
Contributor Author

Reanaming should not cause any issues. There was only one existing theme that used these fields. Didn't see it on external repos either.

@archseer

archseer commented May 6, 2022

Copy link
Copy Markdown
Member

Why the rename though? I tried keeping the same scopes as textmate / sublime themes https://www.sublimetext.com/docs/scope_naming.html#markup

@ChrHorn

ChrHorn commented May 6, 2022

Copy link
Copy Markdown
Contributor Author

Makes sense, consistency with that spec is more important. Have reverted the renaming. Should be ready to merge.

@archseer
archseer merged commit b38c268 into helix-editor:master May 7, 2022
@ChrHorn
ChrHorn deleted the markdown-list branch May 7, 2022 05:31
fourlexboehm pushed a commit to fourlexboehm/helix that referenced this pull request May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown highlighting issues

3 participants