landakram / remark-wiki-link

Parse and render wiki links.
MIT License
90 stars 15 forks source link

Upgrade mdast-util-wiki-link and bump version #16

Closed landakram closed 3 years ago

landakram commented 3 years ago

Fixes the following error when stringifying:

TypeError: Cannot read property 'length' of undefined
      at Object.safe [as default] (node_modules/mdast-util-wiki-link/node_modules/mdast-util-to-markdown/lib/util/safe.js:18:43)
      at Object.handler (node_modules/mdast-util-wiki-link/dist/index.cjs.js:120:45)
      at Object.one [as handle] (node_modules/zwitch/index.js:20:25)
      at phrasing (node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js:47:15)
      at Object.paragraph (node_modules/mdast-util-to-markdown/lib/handle/paragraph.js:8:15)
      at Object.one [as handle] (node_modules/zwitch/index.js:20:25)
      at flow (node_modules/mdast-util-to-markdown/lib/util/container-flow.js:15:15)
      at Object.root (node_modules/mdast-util-to-markdown/lib/handle/root.js:6:10)
      at Object.one [as handle] (node_modules/zwitch/index.js:20:25)
      at toMarkdown (node_modules/mdast-util-to-markdown/lib/index.js:38:20)
      at compile (node_modules/remark-stringify/index.js:13:12)
      at Function.stringify (node_modules/unified/index.js:354:12)
      at pipelineStringify (node_modules/unified/index.js:41:18)
      at wrapped (node_modules/trough/wrap.js:25:19)
      at next (node_modules/trough/index.js:57:24)
      at done (node_modules/trough/wrap.js:55:16)
      at done (node_modules/unified/index.js:35:7)
      at done (node_modules/unified/index.js:314:11)
      at next (node_modules/trough/index.js:59:14)
      at Object.run (node_modules/trough/index.js:31:10)
      at executor (node_modules/unified/index.js:305:20)
      at Function.run (node_modules/unified/index.js:302:5)
      at pipelineRun (node_modules/unified/index.js:27:5)
      at wrapped (node_modules/trough/wrap.js:25:19)
      at next (node_modules/trough/index.js:57:24)
      at done (node_modules/trough/wrap.js:55:16)
      at then (node_modules/trough/wrap.js:62:5)
      at wrapped (node_modules/trough/wrap.js:45:9)
      at next (node_modules/trough/index.js:57:24)
      at Object.run (node_modules/trough/index.js:31:10)
      at executor (node_modules/unified/index.js:375:16)
      at process (node_modules/unified/index.js:370:5)
      at Function.processSync (node_modules/unified/index.js:399:5)
      at Context.processSync (test/index_test.js:112:35)
      at processImmediate (node:internal/timers:464:21)