Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Dec 15, 2024
1 parent 6bd5bca commit c4910ae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/cls-loader/src/plugin/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ function reshapeHTML(text) {
if (Array.isArray(text)) {
text = text.join(" ");
}
return text;
text = text.replaceAll(/\[/gi, "[");
text = text.replaceAll(/<[^>]*>/gi, "");
text = text.replaceAll(/\[/gi, "\[");
return text
text = text.replaceAll(/\]/gi, "]");
text = text.replaceAll(/\<br\s*\/?\>/gi, "\n\n");
text = text.replaceAll(/\<\/?p\>/gi, "\n\n");
Expand Down Expand Up @@ -256,9 +257,9 @@ function membersToMarkdown(
}
let doc = `## ${title}\n\n`;
entries.forEach(([key, member]) => {
// let description = member.description.join(" ");
doc += `### ${member.name}\n\n`;
// doc += `${asCode(member.code)}\n\n`;
doc += `${asCode(member.code)}\n\n`;
let description = member.description.join(" ");
// description = reshapeHTML(member.description);
// doc += description;
// doc += "\n\n";
Expand Down

0 comments on commit c4910ae

Please sign in to comment.