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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;