[GH-ISSUE #653] MD026 Breaks GitHub emoji #2337

Closed
opened 2026-03-07 20:06:49 +03:00 by kerem · 4 comments
Owner

Originally created by @dserodio on GitHub (Nov 23, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/653

I have a few headers that end in GitHub Emoji, eg.:

# Known Issues :bug:

Which GitHub renders as:

Known Issues 🐛

However, MD026 is "fixing" this as:

# Known Issues :bug, which is not an actual fix, since it renders as:

Known Issues :bug

Originally created by @dserodio on GitHub (Nov 23, 2022). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/653 I have a few headers that end in GitHub Emoji, eg.: `# Known Issues :bug:` Which GitHub renders as: # Known Issues :bug: However, MD026 is "fixing" this as: `# Known Issues :bug`, which is not an actual fix, since it renders as: # Known Issues :bug
kerem 2026-03-07 20:06:49 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Nov 23, 2022):

GitHub emoji are not part of the CommonMark specification. If you used a markdown-it plugin that recognized them, I think this issue would not get flagged.

<!-- gh-comment-id:1324545703 --> @DavidAnson commented on GitHub (Nov 23, 2022): GitHub emoji are not part of the CommonMark specification. If you used a markdown-it plugin that recognized them, I think this issue would not get flagged.
Author
Owner

@DavidAnson commented on GitHub (Nov 23, 2022):

This might work based on the description: https://www.npmjs.com/package/markdown-it-emoji

<!-- gh-comment-id:1324546489 --> @DavidAnson commented on GitHub (Nov 23, 2022): This might work based on the description: https://www.npmjs.com/package/markdown-it-emoji
Author
Owner

@DavidAnson commented on GitHub (Nov 23, 2022):

Duplicate of linked issue.

<!-- gh-comment-id:1324547304 --> @DavidAnson commented on GitHub (Nov 23, 2022): Duplicate of linked issue.
Author
Owner

@dserodio commented on GitHub (Nov 23, 2022):

Thanks, and sorry for the dupe. I had searched for MD026 and didn't find anything

<!-- gh-comment-id:1325586274 --> @dserodio commented on GitHub (Nov 23, 2022): Thanks, and sorry for the dupe. I had searched for `MD026` and didn't find anything
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2337
No description provided.