down-parse
Advanced tools
Comparing version 2.1.6 to 2.1.7
{ | ||
"name": "down-parse", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "markdown parser", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -75,5 +75,5 @@ import { ctx } from "./plugin"; | ||
const nexts = lines.slice(i + 1); | ||
const end = nexts.findIndex(e => e.startsWith('```')); | ||
const end = nexts.findIndex(e => e === '```'); | ||
i = i + nexts.length + 1; | ||
i = i + end + 1; | ||
@@ -87,2 +87,4 @@ ret = { type: '</>', params: langTexts, code: nexts.slice(0, end).join('\n') }; | ||
console.log(ret); | ||
tokens.push(ctx.applyParses(ret, lineOne)); | ||
@@ -105,15 +107,1 @@ } | ||
} | ||
// const r = parse([ | ||
// `# he he he`, | ||
// "``` js", | ||
// "a", | ||
// "b", | ||
// "c", | ||
// "```", | ||
// "``` asd", | ||
// "12", | ||
// "outter" | ||
// ].join('\n')); | ||
// console.log(r); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28397
27
657