Skip to content

Commit

Permalink
Merge pull request markdown-it#1009 from notriddle/spec-0.31.2
Browse files Browse the repository at this point in the history
Update to spec 0.31.2
  • Loading branch information
puzrin authored Mar 2, 2024
2 parents eaef476 + 0bfc57d commit d7ce5ec
Show file tree
Hide file tree
Showing 7 changed files with 767 additions and 762 deletions.
2 changes: 1 addition & 1 deletion lib/common/html_blocks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default [
'option',
'p',
'param',
'search',
'section',
'source',
'summary',
'table',
'tbody',
Expand Down
4 changes: 2 additions & 2 deletions lib/common/html_re.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const attribute = '(?:\\s+' + attr_name + '(?:\\s*=\\s*' + attr_value + ')?)'
const open_tag = '<[A-Za-z][A-Za-z0-9\\-]*' + attribute + '*\\s*\\/?>'

const close_tag = '<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>'
const comment = '<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->'
const comment = '<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->'
const processing = '<[?][\\s\\S]*?[?]>'
const declaration = '<![A-Z]+\\s+[^>]*>'
const declaration = '<![A-Za-z][^>]*>'
const cdata = '<!\\[CDATA\\[[\\s\\S]*?\\]\\]>'

const HTML_TAG_RE = new RegExp('^(?:' + open_tag + '|' + close_tag + '|' + comment +
Expand Down
2 changes: 1 addition & 1 deletion lib/common/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function isWhiteSpace (code) {

// Currently without astral characters support.
function isPunctChar (ch) {
return ucmicro.P.test(ch)
return ucmicro.P.test(ch) || ucmicro.S.test(ch)
}

// Markdown ASCII punctuation characters.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"linkify-it": "^5.0.0",
"mdurl": "^2.0.0",
"punycode.js": "^2.3.1",
"uc.micro": "^2.0.0"
"uc.micro": "^2.1.0"
},
"devDependencies": {
"@rollup/plugin-babel": "^6.0.4",
Expand Down
Loading

0 comments on commit d7ce5ec

Please sign in to comment.