chore: minify html
This commit is contained in:
parent
554ce4dd01
commit
0114acdffb
2 changed files with 9 additions and 2 deletions
|
@ -17,4 +17,10 @@ md.use(markdownItAnchor, {
|
|||
safariReaderFix: true,
|
||||
}),
|
||||
});
|
||||
md.use(markdownItFootnote);
|
||||
md.use(markdownItFootnote);
|
||||
|
||||
export const minifyHTML = (html) =>
|
||||
html
|
||||
.replace(/\n\s+/g, "")
|
||||
.replace(/>\s+</g, "><")
|
||||
.replace(/<!--.*?-->/g, "");
|
||||
|
|
Reference in a new issue