Skip to content

Commit ebe9785

Browse files
committed
Added comment
1 parent 06b84af commit ebe9785

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/api/exporters/html/util/serializeBlocksExternalHTML.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ function serializeBlock<
141141
);
142142

143143
if (ret.dom.classList.contains("bn-block-content")) {
144+
// We wrap the output in an `li` element for list items, and so we want to
145+
// add the attributes to that element instead as it is the "root".
144146
if (!listType) {
145147
for (const attr of blockContentDataAttributes) {
146148
(ret.dom.firstChild! as HTMLElement).setAttribute(

0 commit comments

Comments
 (0)