feat(comark): add punctuation plugin#123
Merged
Merged
Conversation
|
@arashsheyda is attempting to deploy a commit to the NuxtLabs Team on Vercel. A member of the Team first needs to authorize it. |
comark
@comark/ansi
@comark/html
@comark/nuxt
@comark/react
@comark/svelte
@comark/vue
commit: |
arashsheyda
commented
Apr 15, 2026
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Collaborator
Author
|
updated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


closes #108
this PR adds a new
punctuationplugin that transforms common plain-text punctuation patterns into their typographically correct Unicode characters in a single O(n) pass with no regex"text"=> \u201Ctext\u201D (smart double quotes)'text'=> \u2018text\u2019 (smart single quotes)don't=> don\u2019t (apostrophe)--=> \u2013 (en-dash)---=> \u2014 (em-dash)...=> \u2026 (ellipsis)+-=> \u00B1(c)(r)(tm)=> \u00A9 \u00AE \u2122this would be the first irritation, we can improve and add more features:
1/2becomes½Frenchhas different rules I believe"Bonjour"becomes« Bonjour »@atinux is that right?Persian: we could convert the numbers, or the Zero-Width Non-Joiner orكtoک