Update to table formatting
This commit is contained in:
parent
8680cc5a62
commit
714d316d7d
2 changed files with 5 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
.el-node-markdown {
|
.el-node-markdown {
|
||||||
|
padding-top: 16px;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
border-bottom: 1px solid #ccc;
|
border-bottom: 1px solid #ccc;
|
||||||
margin-top: 32px;
|
margin-top: 32px;
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,8 @@ export class N2PageNodeUI extends CustomHTMLElement {
|
||||||
const formatted = this.formatAllTables(text)
|
const formatted = this.formatAllTables(text)
|
||||||
this.elNodeContent.setRangeText(formatted, from, to, 'select');
|
this.elNodeContent.setRangeText(formatted, from, to, 'select');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.node.setContent(this.elNodeContent.value)
|
||||||
})
|
})
|
||||||
|
|
||||||
this.showMarkdown(true)
|
this.showMarkdown(true)
|
||||||
|
|
@ -245,7 +247,7 @@ export class N2PageNodeUI extends CustomHTMLElement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lines[i] = '│ ' + cols.join(' │ ') + ' │'
|
lines[i] = '| ' + cols.join(' | ') + ' |'
|
||||||
}
|
}
|
||||||
|
|
||||||
return lines
|
return lines
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue