mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Split micromark.cjs into separate -parse and -helpers files.
This commit is contained in:
parent
5701d0bf52
commit
33631a5984
47 changed files with 353 additions and 1236 deletions
|
|
@ -3,7 +3,7 @@
|
|||
"use strict";
|
||||
|
||||
const { addErrorDetailIf } = require("../helpers");
|
||||
const { getDescendantsByType, getParentOfType } = require("../helpers/micromark.cjs");
|
||||
const { getDescendantsByType, getParentOfType } = require("../helpers/micromark-helpers.cjs");
|
||||
const { filterByTypesCached } = require("./cache");
|
||||
|
||||
const markerToStyle = {
|
||||
|
|
@ -43,7 +43,7 @@ module.exports = {
|
|||
for (const listUnordered of filterByTypesCached([ "listUnordered" ])) {
|
||||
let nesting = 0;
|
||||
if (style === "sublist") {
|
||||
/** @type {import("../helpers/micromark.cjs").Token | null} */
|
||||
/** @type {import("../helpers/micromark-helpers.cjs").Token | null} */
|
||||
let parent = listUnordered;
|
||||
// @ts-ignore
|
||||
while ((parent = getParentOfType(parent, [ "listOrdered", "listUnordered" ]))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue