Skip to content

Commit f242a2f

Browse files
committed
Minor fixes
1 parent 87e57e3 commit f242a2f

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

packages/core/src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ function getDecorations(
117117
// move in by 1 to account for the block container
118118
Decoration.node(pos + 1, pos + node.nodeSize - 1, {
119119
"data-index": index.toString(),
120-
// TODO figure out start? is this needed?
121-
// "data-start": hasStart ? index.toString() : undefined,
122120
}),
123121
);
124122
}

packages/core/src/blocks/PageBreak/block.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export const createPageBreakBlockSpec = createBlockSpec(
2525
render() {
2626
const pageBreak = document.createElement("div");
2727

28-
pageBreak.className = "bn-page-break";
2928
pageBreak.setAttribute("data-page-break", "");
3029

3130
return {

tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/pageBreak/basic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="bn-block-outer" data-node-type="blockOuter" data-id="1">
33
<div class="bn-block" data-node-type="blockContainer" data-id="1">
44
<div class="bn-block-content" data-content-type="pageBreak">
5-
<div class="bn-page-break" data-page-break=""></div>
5+
<div data-page-break=""></div>
66
</div>
77
</div>
88
</div>

0 commit comments

Comments
 (0)