fix(tl-utils): handle <br>
This commit is contained in:
parent
be343b561e
commit
9b027425dd
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ export function jsComment(s: string): string {
|
|||
'/**' +
|
||||
// awesome hack not to break up {@link} links and <a href
|
||||
s
|
||||
.replace(/<br\/?>/g, '\n\n')
|
||||
.replace(/{@link (.*?)}/g, '{@link$1}')
|
||||
.replace(/<a href/g, '<ahref')
|
||||
.replace(/(?![^\n]{1,60}$)([^\n]{1,60})\s/g, '$1\n')
|
||||
|
|
Loading…
Reference in a new issue