Avoid double encoding of function signatures - fixes #2720

This commit is contained in:
Stephan Hoyer 2022-01-29 10:00:34 +01:00
parent b97fd59381
commit d3be03c6a1

View file

@ -138,9 +138,6 @@ class Generator {
path + ((/http/).test(path) ? extension : ".html")
)
// Fix type signatures containing Array<...>
body = body.replace(/(\W)Array<([^/<]+?)>/gim, "$1Array&lt;$2&gt;")
const markedHtml = marked(body)
const title = body.match(/^#([^\n\r]+)/i) || []