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