Skip to content

Commit

Permalink
Avoid double encoding of function signatures - fixes #2720
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanHoyer committed May 16, 2022
1 parent e238db4 commit 7d2fddd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/generate-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) || []

Expand Down

0 comments on commit 7d2fddd

Please sign in to comment.