Sync shows/disappears

This commit is contained in:
Magnus Åhall 2026-06-09 17:03:01 +02:00
parent 25b763703d
commit 1f24f1f2f2
4 changed files with 67 additions and 44 deletions

View file

@ -115,7 +115,7 @@ export class MarkedPosition {
heading(token) {
const content = this.parser.parseInline(token.tokens)
return `
<div class="heading-container">
<div class="heading-container" data-heading="${token.depth}">
<h${token.depth} ondblclick="setpos(event)" data-offset-start="${token.position.start.offset}" data-offset-end="${token.position.end.offset}">${content}</h${token.depth}>\n
<div class="line"></div>\n
</div>