fix: table header in exported markdown (#769)

This commit is contained in:
fuscodev
2025-03-07 13:16:49 +01:00
committed by GitHub
parent 6776e073b6
commit dd52eb15ca

View File

@ -76,8 +76,9 @@ export class ExportService {
</html>`;
}
if (format === ExportFormat.Markdown) {
return turndown(pageHtml);
if (format === ExportFormat.Markdown) {
const newPageHtml = pageHtml.replace(/<colgroup[^>]*>[\s\S]*?<\/colgroup>/gmi, '');
return turndown(newPageHtml);
}
return;