Update to table formatting

This commit is contained in:
Magnus Åhall 2026-06-02 07:30:55 +02:00
parent 8680cc5a62
commit 714d316d7d
2 changed files with 5 additions and 1 deletions

View file

@ -86,6 +86,8 @@ export class N2PageNodeUI extends CustomHTMLElement {
const formatted = this.formatAllTables(text)
this.elNodeContent.setRangeText(formatted, from, to, 'select');
}
this.node.setContent(this.elNodeContent.value)
})
this.showMarkdown(true)
@ -245,7 +247,7 @@ export class N2PageNodeUI extends CustomHTMLElement {
}
}
lines[i] = '│ ' + cols.join(' │ ') + ' │'
lines[i] = '| ' + cols.join(' | ') + ' |'
}
return lines