|
@ -114,8 +114,14 @@ function process_inlines(tokens, state) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (canOpen && canClose) { |
|
|
if (canOpen && canClose) { |
|
|
// treat this as the middle of the word
|
|
|
// Replace quotes in the middle of punctuation sequence, but not
|
|
|
canOpen = false; |
|
|
// in the middle of the words, i.e.:
|
|
|
|
|
|
//
|
|
|
|
|
|
// 1. foo " bar " baz - not replaced
|
|
|
|
|
|
// 2. foo-"-bar-"-baz - replaced
|
|
|
|
|
|
// 3. foo"bar"baz - not replaced
|
|
|
|
|
|
//
|
|
|
|
|
|
canOpen = isLastPunctChar; |
|
|
canClose = isNextPunctChar; |
|
|
canClose = isNextPunctChar; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|