You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've opened this separate issue for the awareness of the folks who maintain remark.
user@HOST mmi % npm ls
mmi@ /Users/user/Documents/mmi
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
user@HOST mmi % cat bug.md
* some text
:::note
a%
user@HOST mmi % ./node_modules/.bin/remark bug.md --use remark-directive
bug.md
error Cannot process file
[cause]:
TypeError: chunks[startIndex].slice is not a function
at sliceChunks (file:///Users/user/Documents/mmi/node_modules/micromark/lib/create-tokenizer.js:512:32)
at Object.sliceStream (file:///Users/user/Documents/mmi/node_modules/micromark/lib/create-tokenizer.js:153:12)
at subcontent (file:///Users/user/Documents/mmi/node_modules/micromark-util-subtokenize/index.js:150:24)
at subtokenize (file:///Users/user/Documents/mmi/node_modules/micromark-util-subtokenize/index.js:71:30)
at postprocess (file:///Users/user/Documents/mmi/node_modules/micromark/lib/postprocess.js:12:11)
at fromMarkdown (file:///Users/user/Documents/mmi/node_modules/mdast-util-from-markdown/lib/index.js:174:5)
at parser (file:///Users/user/Documents/mmi/node_modules/remark-parse/lib/index.js:33:12)
at Function.parse (file:///Users/user/Documents/mmi/node_modules/unified/lib/index.js:668:12)
at parse (file:///Users/user/Documents/mmi/node_modules/unified-engine/lib/file-pipeline/parse.js:59:36)
at wrapped (file:///Users/user/Documents/mmi/node_modules/trough/lib/index.js:160:27)
✖ 1 error
user@HOST mmi %
Expected behavior
Can process file
Actual behavior
Cannot process file (see above)
Runtime
Node v17
Package manager
npm 8
OS
macOS
Build and bundle tools
Other (please specify in steps to reproduce)
The text was updated successfully, but these errors were encountered:
Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related.
Initial checklist
Affected packages and versions
[email protected], [email protected]
Link to runnable example
No response
Steps to reproduce
See underlying
micromark
issue for context: micromark/micromark#173I've opened this separate issue for the awareness of the folks who maintain
remark
.Expected behavior
Can process file
Actual behavior
Cannot process file (see above)
Runtime
Node v17
Package manager
npm 8
OS
macOS
Build and bundle tools
Other (please specify in steps to reproduce)
The text was updated successfully, but these errors were encountered: