prettier / prettier/prettier

Markdown: munges github emoji strings when along-side italics

Open
#11,362 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

lang:markdown
Dominant language
JavaScript
Stars
52.3k
Forks
5k
Avg merge
19h 2m
Merged PRs (30d)
117

Description

Prettier 2.3.2
Playground link

--parser markdown

Input:

:stop_sign: ***(new)***
:stop_sign: **_(new)_**

Output:

:stop*sign: ***(new)***
:stop_sign: \*\**(new)\_\*\*

Expected behavior:

:stop_sign: **_(new)_**
:stop_sign: **_(new)_**

Prettier assumes that the _ in the emoji string is an italic marker, so then it does some weird stuff with it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the linked Playground example with the Markdown parser, comparing the shown input, output, and expected behavior for emoji strings beside italics. Done means formatting both examples without changing the 🛑 text or the intended emphasis.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, markdown
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.