Closed ChristianMurphy closed 3 years ago
const micromark = require("micromark"); const directive = require("micromark-extension-directive"); const source = ` :::i `; micromark(source, "utf-8", { extensions: [directive()], });
throws
micromark/dist/util/slice-chunks.js:11 view = [chunks[startIndex].slice(startBufferIndex, endBufferIndex)] ^ TypeError: Cannot read property 'slice' of null
├── micromark-extension-directive@1.1.0 └── micromark@2.11.2
v15.2.1
7.0.8
run:
No error, or a more specific markdown syntax related error
or when running micromark/lib
micromark/lib
AssertionError [ERR_ASSERTION]: expected non-empty token (`chunkDocument`)
Subject of the issue
throws
Your environment
v15.2.1
, npm7.0.8
Steps to reproduce
run:
Expected behavior
No error, or a more specific markdown syntax related error
Actual behavior
or when running
micromark/lib