Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function renderMemberListDescription(text: string, indent: string) {
let data: string = dmdHelper.inlineLinks(text)
.replace(/<br>/g, "\n")
.replace(/\n/g, "\n" + indent)
.replace(new RegExp("\\*{2}\\\\/", "g"), "**/")
.trim()
if (data.includes("\n")) {
// mkdocs requires newline for multi line list item text (otherwise next item on the same line and rendered as list item)
data += "\n"
}
return data
}
function renderMemberListDescription(text, indent) {
return dmdHelper.inlineLinks(text)
.replace(/<br>/g, "\n")
.replace(/\n/g, "\n" + indent)
.replace(new RegExp("\\*{2}\\\\/", "g"), "**/")
}