Skip to content

Commit

Permalink
fix: include missing h5 and other html tags
Browse files Browse the repository at this point in the history
  • Loading branch information
EresDev committed Jul 15, 2024
1 parent 77ce558 commit a22defd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/data-purge-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export class DataPurgeModule implements Module {
.replace(/^>.*$/gm, "")
// Remove commands such as /start
.replace(/^\/.+/g, "")
// makes the content single lined
.replace(/[\r\n]+/g, " ")
// Keep only one new line needed by markdown-it package to convert to html
.replace(/\n\s*\n/g, "\n")
.trim();
if (newContent.length) {
result[comment.user.login].comments = [
Expand Down

0 comments on commit a22defd

Please sign in to comment.