diff --git a/static/css/markdown.css b/static/css/markdown.css index cf80c34..631f578 100644 --- a/static/css/markdown.css +++ b/static/css/markdown.css @@ -1,4 +1,6 @@ .el-node-markdown { + padding-top: 16px; + h1 { border-bottom: 1px solid #ccc; margin-top: 32px; diff --git a/static/js/page_node.mjs b/static/js/page_node.mjs index 6291c8f..d151f77 100644 --- a/static/js/page_node.mjs +++ b/static/js/page_node.mjs @@ -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