mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01: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
|
|
@ -1380,12 +1380,7 @@ function micromarkParse(markdown) {
|
||||||
startLine = start["line"];
|
startLine = start["line"];
|
||||||
var endColumn = end["column"],
|
var endColumn = end["column"],
|
||||||
endLine = end["line"];
|
endLine = end["line"];
|
||||||
var text = null;
|
var text = context.sliceSerialize(token);
|
||||||
try {
|
|
||||||
text = context.sliceSerialize(token);
|
|
||||||
} catch (_unused) {
|
|
||||||
// https://github.com/micromark/micromark/issues/131
|
|
||||||
}
|
|
||||||
if (kind === "enter") {
|
if (kind === "enter") {
|
||||||
var previous = current;
|
var previous = current;
|
||||||
history.push(previous);
|
history.push(previous);
|
||||||
|
|
|
||||||
|
|
@ -73,12 +73,7 @@ function micromarkParse(markdown, options = {}, refsDefined = true) {
|
||||||
const { type, start, end } = token;
|
const { type, start, end } = token;
|
||||||
const { "column": startColumn, "line": startLine } = start;
|
const { "column": startColumn, "line": startLine } = start;
|
||||||
const { "column": endColumn, "line": endLine } = end;
|
const { "column": endColumn, "line": endLine } = end;
|
||||||
let text = null;
|
const text = context.sliceSerialize(token);
|
||||||
try {
|
|
||||||
text = context.sliceSerialize(token);
|
|
||||||
} catch {
|
|
||||||
// https://github.com/micromark/micromark/issues/131
|
|
||||||
}
|
|
||||||
if (kind === "enter") {
|
if (kind === "enter") {
|
||||||
const previous = current;
|
const previous = current;
|
||||||
history.push(previous);
|
history.push(previous);
|
||||||
|
|
|
||||||
|
|
@ -1628,7 +1628,7 @@ Generated by [AVA](https://avajs.dev).
|
||||||
endLine: 21,
|
endLine: 21,
|
||||||
startColumn: 3,
|
startColumn: 3,
|
||||||
startLine: 21,
|
startLine: 21,
|
||||||
text: null,
|
text: '',
|
||||||
type: 'blockQuote',
|
type: 'blockQuote',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
@ -1636,7 +1636,7 @@ Generated by [AVA](https://avajs.dev).
|
||||||
endLine: 21,
|
endLine: 21,
|
||||||
startColumn: 1,
|
startColumn: 1,
|
||||||
startLine: 20,
|
startLine: 20,
|
||||||
text: null,
|
text: '',
|
||||||
type: 'blockQuote',
|
type: 'blockQuote',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -1974,7 +1974,7 @@ Generated by [AVA](https://avajs.dev).
|
||||||
endLine: 28,
|
endLine: 28,
|
||||||
startColumn: 3,
|
startColumn: 3,
|
||||||
startLine: 25,
|
startLine: 25,
|
||||||
text: null,
|
text: '',
|
||||||
type: 'listUnordered',
|
type: 'listUnordered',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
@ -1982,7 +1982,7 @@ Generated by [AVA](https://avajs.dev).
|
||||||
endLine: 28,
|
endLine: 28,
|
||||||
startColumn: 1,
|
startColumn: 1,
|
||||||
startLine: 23,
|
startLine: 23,
|
||||||
text: null,
|
text: '',
|
||||||
type: 'listUnordered',
|
type: 'listUnordered',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -2347,7 +2347,7 @@ Generated by [AVA](https://avajs.dev).
|
||||||
endLine: 35,
|
endLine: 35,
|
||||||
startColumn: 4,
|
startColumn: 4,
|
||||||
startLine: 32,
|
startLine: 32,
|
||||||
text: null,
|
text: '',
|
||||||
type: 'listOrdered',
|
type: 'listOrdered',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
@ -2355,7 +2355,7 @@ Generated by [AVA](https://avajs.dev).
|
||||||
endLine: 35,
|
endLine: 35,
|
||||||
startColumn: 1,
|
startColumn: 1,
|
||||||
startLine: 30,
|
startLine: 30,
|
||||||
text: null,
|
text: '',
|
||||||
type: 'listOrdered',
|
type: 'listOrdered',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue