@peaceroad/markdown-it-strong-ja 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -349,7 +349,7 @@ const isAllAsterisks = (content) => {
349
349
  function isPlainTextContent(content) {
350
350
  for (let idx = 0; idx < content.length; idx++) {
351
351
  const code = content.charCodeAt(idx)
352
- if (code === CHAR_BACKSLASH || code === CHAR_NEWLINE || code === CHAR_TAB || code === 0x0D) {
352
+ if (code === CHAR_BACKSLASH || code === CHAR_NEWLINE || code === CHAR_TAB) {
353
353
  return false
354
354
  }
355
355
  if (code < 128 && isAsciiPunctuationCode(code)) return false
@@ -909,7 +909,7 @@ const hasPunctuationOrNonJapanese = (state, inlines, n, i, opt, refRanges, hasRe
909
909
  }
910
910
  const closeNextChar = src[inlines[i].e + 1] || ''
911
911
  const isLastInline = i === inlines.length - 1
912
- const checkCloseNextChar = isLastInline || isPunctuation(closeNextChar)
912
+ const checkCloseNextChar = isLastInline || isPunctuation(closeNextChar) || closeNextChar === '\n'
913
913
 
914
914
  if (opt.disallowMixed === false) {
915
915
  if (isEnglish(openPrevChar) || isEnglish(closeNextChar)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peaceroad/markdown-it-strong-ja",
3
3
  "description": "This is a plugin for markdown-it. It is an alternative to the standard `**` (strong) and `*` (em) processing. It also processes strings that cannot be converted by the standard.",
4
- "version": "0.5.4",
4
+ "version": "0.5.5",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "files": [