mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update micromark code and tests for prior commit updating markdownlint-micromark (including micromark to 3.2.0).
This commit is contained in:
parent
de02503154
commit
22dc6cae84
4 changed files with 8 additions and 18 deletions
|
@ -73,12 +73,7 @@ function micromarkParse(markdown, options = {}, refsDefined = true) {
|
|||
const { type, start, end } = token;
|
||||
const { "column": startColumn, "line": startLine } = start;
|
||||
const { "column": endColumn, "line": endLine } = end;
|
||||
let text = null;
|
||||
try {
|
||||
text = context.sliceSerialize(token);
|
||||
} catch {
|
||||
// https://github.com/micromark/micromark/issues/131
|
||||
}
|
||||
const text = context.sliceSerialize(token);
|
||||
if (kind === "enter") {
|
||||
const previous = current;
|
||||
history.push(previous);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue