Skip to content

Commit

Permalink
wrap table with div
Browse files Browse the repository at this point in the history
  • Loading branch information
denco committed Nov 10, 2023
1 parent 59288f1 commit eff15a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/markupParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function parseMarkup(sourceUri: vscode.Uri, sourceText: string) {
}
tag = '<tr>' + tag + '</tr>';
if (tableFlag == false) {
tag = '<table><tbody>' + tag;
tag = '<div><table><tbody>' + tag;
}
tableFlag = true;
}
Expand Down Expand Up @@ -409,7 +409,7 @@ export function parseMarkup(sourceUri: vscode.Uri, sourceText: string) {

//close table
if (!tag.match(/<\/tr>$/) && tableFlag) {
tag = '</tbody></table>' + tag;
tag = '</tbody></table></div>' + tag;
tableFlag = false;
}

Expand Down

0 comments on commit eff15a4

Please sign in to comment.