markdown-model
Advanced tools
Comparing version 1.8.2 to 1.8.3
@@ -108,3 +108,2 @@ // Licensed under the MIT License | ||
// eslint-disable-next-line require-await | ||
async function markdownPartsElementsAsync(parts, options, usedHeaderIds) { | ||
@@ -111,0 +110,0 @@ const elements = []; |
@@ -81,3 +81,3 @@ // Licensed under the MIT License | ||
* | ||
* @param {string|string[]} markdown - Markdown text or text lines | ||
* @param {string|string[]} markdown - Markdown text or text lines. Null text lines are ignored. | ||
* @param {number} [startLineNumber = 1] - The starting line number of the markdown text | ||
@@ -178,2 +178,5 @@ * @returns {Object} The [Markdown model]{@link https://craigahobbs.github.io/markdown-model/model/#var.vName='Markdown'} | ||
for (const markdownString of markdownStrings) { | ||
if (markdownString === null) { | ||
continue; | ||
} | ||
for (const lineRaw of markdownString.split(rLineSplit)) { | ||
@@ -180,0 +183,0 @@ const line = lineRaw.replaceAll('\t', ' '); |
{ | ||
"type": "module", | ||
"name": "markdown-model", | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"description": "Markdown object model, parser, and renderer", | ||
@@ -30,7 +30,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"c8": "~7.13", | ||
"c8": "~8.0", | ||
"element-model": "~1.1", | ||
"eslint": "~8.40", | ||
"eslint": "~8.50", | ||
"jsdoc": "~4.0" | ||
} | ||
} |
54052
1243