Explorar el Código

Remove newline stripping in forums poster

ghorsington hace 5 años
padre
commit
3dd14f9a2a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bot/src/commands/forums_news_checker.ts

+ 1 - 1
bot/src/commands/forums_news_checker.ts

@@ -53,7 +53,7 @@ const FEEDS = [
 ];
 
 function bbCodeToMarkdown(bbCode: string) {
-    return turndown.turndown(bbobHTML(bbCode, presetHTML5())).replace(/( {2}\n|\n\n){2,}/gm, "\n");
+    return turndown.turndown(bbobHTML(bbCode, presetHTML5()));
 }
 
 async function checkFeeds() {