@atjson/renderer-commonmark
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -35,6 +35,11 @@ "use strict"; | ||
let endOfQuote = lines.length; | ||
while (lines[endOfQuote - 1] === '') { | ||
let startOfQuote = 0; | ||
while (lines[startOfQuote].match(/^(\s)*$/)) | ||
startOfQuote++; | ||
while (lines[endOfQuote - 1].match(/^(\s)*$/)) | ||
endOfQuote--; | ||
} | ||
return lines.slice(0, endOfQuote).map(line => `> ${line}`).concat(lines.slice(endOfQuote)).join('\n'); | ||
return [ | ||
...lines.slice(startOfQuote, endOfQuote).map(line => `> ${line}`), | ||
'\n' | ||
].join('\n'); | ||
} | ||
@@ -60,4 +65,4 @@ *'heading'(props) { | ||
*'link'(props) { | ||
let text = yield; | ||
return `[${text.join('')}](${props.href})`; | ||
let [before, text, after] = yield* split(); | ||
return `${before}[${text}](${props.href})${after}`; | ||
} | ||
@@ -135,2 +140,2 @@ *'list-item'(_, state) { | ||
exports.default = CommonmarkRenderer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSx1REFBdUQ7QUFFdkQsUUFBZSxDQUFDO0lBQ2QsSUFBSSxPQUFPLEdBQUcsS0FBSyxDQUFDO0lBQ3BCLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDNUIsSUFBSSxLQUFLLEdBQUcsQ0FBQyxDQUFDO0lBQ2QsSUFBSSxHQUFHLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQztJQUV0QixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsS0FBSyxHQUFHLElBQUksS0FBSyxHQUFHLEdBQUcsRUFBRSxDQUFDO1FBQUMsS0FBSyxFQUFFLENBQUM7S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QUFDLElBQUksQ0FBQyxDQUFDO1lBQ04sSUFBSSxJQUFJLEdBQUcsS0FBSyxDQUFDO1lBQ2pCLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO1FBQ3ZCLENBQUM7SUFDSCxDQUFDO0NBQ0Y7QUE1TEQscUNBNExDIn0= |
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
import Renderer from '@atjson/renderer-hir'; | ||
@@ -33,6 +32,11 @@ export function* split() { | ||
let endOfQuote = lines.length; | ||
while (lines[endOfQuote - 1] === '') { | ||
let startOfQuote = 0; | ||
while (lines[startOfQuote].match(/^(\s)*$/)) | ||
startOfQuote++; | ||
while (lines[endOfQuote - 1].match(/^(\s)*$/)) | ||
endOfQuote--; | ||
} | ||
return lines.slice(0, endOfQuote).map(line => `> ${line}`).concat(lines.slice(endOfQuote)).join('\n'); | ||
return [ | ||
...lines.slice(startOfQuote, endOfQuote).map(line => `> ${line}`), | ||
'\n' | ||
].join('\n'); | ||
} | ||
@@ -58,4 +62,4 @@ *'heading'(props) { | ||
*'link'(props) { | ||
let text = yield; | ||
return `[${text.join('')}](${props.href})`; | ||
let [before, text, after] = yield* split(); | ||
return `${before}[${text}](${props.href})${after}`; | ||
} | ||
@@ -132,2 +136,2 @@ *'list-item'(_, state) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sUUFBbUIsTUFBTSxzQkFBc0IsQ0FBQztBQUV2RCxNQUFNLFNBQVMsQ0FBQztJQUNkLElBQUksT0FBTyxHQUFHLEtBQUssQ0FBQztJQUNwQixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQ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FDakMsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztZQUNULE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFDLFVBQVUsQ0FBQyxVQUFVLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFDcEUsQ0FBQztRQUFDLElBQUksQ0FBQyxDQUFDO1lBQ04sSUFBSSxJQUFJLEdBQUcsS0FBSyxDQUFDO1lBQ2pCLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO1FBQ3ZCLENBQUM7SUFDSCxDQUFDO0NBQ0YifQ== |
{ | ||
"name": "@atjson/renderer-commonmark", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "A brand new TypeScript library.", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js", |
@@ -30,3 +30,3 @@ import { HIRNode } from '@atjson/hir'; | ||
return document.join('').trimRight(); | ||
}, | ||
} | ||
@@ -39,3 +39,3 @@ /** | ||
return `${before}**${text}**${after}`; | ||
}, | ||
} | ||
@@ -61,3 +61,3 @@ /** | ||
].join('\n'); | ||
}, | ||
} | ||
@@ -73,3 +73,3 @@ /** | ||
return `${level} ${heading.join('')}\n\n`; | ||
}, | ||
} | ||
@@ -83,3 +83,3 @@ /** | ||
return '---\n\n'; | ||
}, | ||
} | ||
@@ -92,3 +92,3 @@ /** | ||
return `![${props.alt}](${props.url})`; | ||
}, | ||
} | ||
@@ -101,3 +101,3 @@ /** | ||
return `${before}*${text}*${after}`; | ||
}, | ||
} | ||
@@ -110,3 +110,3 @@ /** | ||
return ' \n'; | ||
}, | ||
} | ||
@@ -119,3 +119,3 @@ /** | ||
return `${before}[${text}](${props.href})${after}`; | ||
}, | ||
} | ||
@@ -139,3 +139,3 @@ /** | ||
return item; | ||
}, | ||
} | ||
@@ -166,3 +166,3 @@ /** | ||
return markdown; | ||
}, | ||
} | ||
@@ -193,3 +193,3 @@ /** | ||
return markdown; | ||
}, | ||
} | ||
@@ -196,0 +196,0 @@ /** |
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
29950
8
505