quick fixes (#2404)

This commit is contained in:
Anthony Stirling
2024-12-05 19:55:34 +00:00
committed by GitHub
parent b6eca59f23
commit 5a5a8bb7ba
3 changed files with 6 additions and 5 deletions

View File

@@ -276,7 +276,8 @@ function formatText(text) {
const container = document.createElement('div');
// Split the text into lines
const lines = text.split('\n');
const textWithoutComments = text.replace(/<!--[\s\S]*?-->/g, '');
const lines = textWithoutComments.split('\n');
let currentList = null;
lines.forEach(line => {