Skip to content

Replace unicode emoji characters, allowing them to be customized by renderer rules#53

Open
carter-thaxton wants to merge 3 commits into
markdown-it:masterfrom
carter-thaxton:unicode-chars
Open

Replace unicode emoji characters, allowing them to be customized by renderer rules#53
carter-thaxton wants to merge 3 commits into
markdown-it:masterfrom
carter-thaxton:unicode-chars

Conversation

@carter-thaxton
Copy link
Copy Markdown

A very straightforward implementation of #43. "It just works!"
I'm sure it's possible to provide an option to control this behavior, but it doesn't seem necessary.

Use enforced code style for spaces.
The code coverage checker was complaining about the 'unnecessary' check that I added in the previous commit, in case the replacement regexp didn't match anything.
Specifically, add a test that emojies using unicode characters are also wrapped by such renderer rules,
covering the new behavior in this pull request.
@carter-thaxton
Copy link
Copy Markdown
Author

I added some tests to cover this new behavior, and fixed the linter errors in my previous commit.
I'm happy to squash into a single commit, if you'd prefer. Just let me know.

@thom4parisot
Copy link
Copy Markdown

Any chance this proposal can go further? It would be interesting for accessibility purposes.

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.

2 participants