mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Remove broken HTML escaping.
This commit is contained in:
@@ -159,9 +159,7 @@ function build() {
|
|||||||
// Load markdown.
|
// Load markdown.
|
||||||
.readFileSync(readmePath, 'utf8')
|
.readFileSync(readmePath, 'utf8')
|
||||||
// Uncomment docdown HTML hints.
|
// Uncomment docdown HTML hints.
|
||||||
.replace(/(<)!--\s*|\s*--(>)/g, '$1$2')
|
.replace(/(<)!--\s*|\s*--(>)/g, '$1$2');
|
||||||
// Escape HTML markup in usage examples.
|
|
||||||
.replace(/```js[\s\S]+?```/g, m => m.replace(/</g, '<').replace(/>/g, '>'));
|
|
||||||
|
|
||||||
const $ = marky(markdown, { 'sanitize': false });
|
const $ = marky(markdown, { 'sanitize': false });
|
||||||
const $header = $('h1').first().remove();
|
const $header = $('h1').first().remove();
|
||||||
|
|||||||
Reference in New Issue
Block a user