We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ed6e0f commit 2069750Copy full SHA for 2069750
lib/index.js
@@ -116,7 +116,7 @@ export default function retextQuotes(options) {
116
expected = preferred === 'smart' ? '’' : "'"
117
} else {
118
const markers = preferred === 'smart' ? smart : straight
119
- expected = markers[(stack.length + 1) % markers.length]
+ expected = markers[(stack.length - 1) % markers.length]
120
121
if (expected.length > 1) {
122
expected = expected.charAt(style.type === 'open' ? 0 : 1)
0 commit comments