Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Markdown] Add GitHub list checkboxes #2249

Merged
merged 1 commit into from Jul 15, 2020

Conversation

michaelblyons
Copy link
Collaborator

Fixes #2248

Unsure on the scope to use, but I like the .github tag at the end. In a sense, constant.language is "right," considering that these represent Booleans, but I didn't think that would go over well.

captures:
1: markup.list.unnumbered.markdown
2: markup.list.unnumbered.bullet.markdown punctuation.definition.list_item.markdown
3: markup.list.unnumbered.markdown
4: keyword.other.checkbox.markdown-gfm
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random thought while browsing this: What about a storage scope?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be fine with that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preference for storage.type or storage.modifier?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifier, imo. Actually, now that you mention it it might as well be a language constant. I think I prefer that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifier, imo. Actually, now that you mention it it might as well be a language constant. I think I prefer that.

Done.

Copy link
Collaborator

@FichteFoll FichteFoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment at the top of the fail that mentions this extension as being supported by the syntax? LGTM otherwise.

@michaelblyons
Copy link
Collaborator Author

Could you add a comment at the top of the fail that mentions this extension as being supported by the syntax? LGTM otherwise.

"Top of the... file?" It already mentions GFM, and to look at the suffix.

@FichteFoll
Copy link
Collaborator

True that. I though we had an actual feature list for extensions over commonmark in there, but mentioning GFM is certainly enough to cover checkboxes. 👍 Maybe such a list could be added by @keith-hall later, since he did most of it.

@wbond wbond merged commit 86ff51d into sublimehq:master Jul 15, 2020
@wbond
Copy link
Member

wbond commented Jul 15, 2020

Looks good, thanks for the implementation and reviews!

deathaxe pushed a commit to deathaxe/sublime-packages that referenced this pull request Jul 25, 2021
mitranim pushed a commit to mitranim/Packages that referenced this pull request Mar 25, 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] Add GFM checkbox notation
4 participants