honkit / honkit

:book: HonKit is building beautiful books using Markdown - Fork of GitBook

Home Page:https://honkit.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

theme-default: prevent to replace html/head/body in transition

azu opened this issue · comments

commented

html = html.replace(/<(\/?)(html|head|body)([^>]*)>/gi, function (a, b, c, d) {
return "<" + b + "div" + (b ? "" : ' data-element="' + c + '"') + d + ">";
});

It will replace comment like <!-- <html lang="en"> -->.
As a result, It will cause a bug.