Browse Source

Deps bump

pull/979/head
Vitaly Puzrin 1 year ago
parent
commit
6cbb5b2233
  1. 7
      lib/common/utils.mjs
  2. 2
      lib/index.mjs
  3. 6
      package.json
  4. 2
      support/demo_template/index.mjs

7
lib/common/utils.mjs

@ -1,10 +1,9 @@
// Utilities
//
import mdurl from 'mdurl'
import ucmicro from 'uc.micro'
import * as mdurl from 'mdurl'
import * as ucmicro from 'uc.micro'
import { decodeHTML } from 'entities'
import UNICODE_PUNCT_RE from 'uc.micro/categories/P/regex.js'
function _class (obj) { return Object.prototype.toString.call(obj) }
@ -184,7 +183,7 @@ function isWhiteSpace (code) {
// Currently without astral characters support.
function isPunctChar (ch) {
return UNICODE_PUNCT_RE.test(ch)
return ucmicro.P.test(ch)
}

2
lib/index.mjs

@ -7,7 +7,7 @@ import ParserCore from './parser_core.mjs'
import ParserBlock from './parser_block.mjs'
import ParserInline from './parser_inline.mjs'
import LinkifyIt from 'linkify-it'
import mdurl from 'mdurl'
import * as mdurl from 'mdurl'
import punycode from 'punycode.js'
import cfg_default from './presets/default.mjs'

6
package.json

@ -48,10 +48,10 @@
"dependencies": {
"argparse": "^2.0.1",
"entities": "^4.4.0",
"linkify-it": "^4.0.1",
"mdurl": "^1.0.1",
"linkify-it": "^5.0.0",
"mdurl": "^2.0.0",
"punycode.js": "^2.3.1",
"uc.micro": "^1.0.5"
"uc.micro": "^2.0.0"
},
"devDependencies": {
"@rollup/plugin-babel": "^6.0.4",

2
support/demo_template/index.mjs

@ -1,7 +1,7 @@
/* eslint-env browser */
/* global $, _ */
import mdurl from 'mdurl'
import * as mdurl from 'mdurl'
import hljs from 'highlight.js'
// plugins

Loading…
Cancel
Save