-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add support for configurable opening, closing quotes #8
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 384 411 +27
=========================================
+ Hits 384 411 +27
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea.
This also needs some docs!
Co-authored-by: Titus <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I like your double
and single
, as this is about which quote was in the original code: "
or '
, and replacing those.
if (node.value === '`') { | ||
node.value = '‘' | ||
} else if (node.value === "'") { | ||
node.value = '’' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this also be affected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, good point, yes should probably be affected as well i think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the other hand, that isn’t about "
(and '
).
That would perhaps need “primary, secondary” options instead?
Easier to leave it as is for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, ok should i revert 59d7be4 then?
Co-authored-by: Titus <[email protected]>
This comment has been minimized.
This comment has been minimized.
I’ll try and get a release done this weekend. Hoping to rework the docs and modernize things as well. |
Released in 5.2.0! |
Initial checklist
Description of changes
languages other than english might have other conventions for which characters to display for opening and closing quotes. this pr adds two options to make opening and closing quotes configurable.