Socket
Socket
Sign inDemoInstall

markdown-model

Package Overview
Dependencies
1
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.8.2 to 1.8.3

1

lib/elements.js

@@ -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 = [];

5

lib/parser.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc