Skip to content

Commit 498da43

Browse files
committed
fix(HTML) Lists default to tight unless specified explicitely
Signed-off-by: Jerome Simeon <[email protected]>
1 parent e23607b commit 498da43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/markdown-html/src/rules.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const LIST_RULE = {
5151
return {
5252
'$class': `${NS_PREFIX_CommonMarkModel}List`,
5353
type: 'bullet',
54-
tight: el.getAttribute('tight'),
54+
tight: el.getAttribute('tight') ? el.getAttribute('tight') : true,
5555
nodes: next(el.childNodes)
5656
};
5757
}
@@ -61,7 +61,7 @@ const LIST_RULE = {
6161
type: 'ordered',
6262
delimiter: el.getAttribute('delimiter'),
6363
start: el.getAttribute('start'),
64-
tight: el.getAttribute('tight'),
64+
tight: el.getAttribute('tight') ? el.getAttribute('tight') : true,
6565
nodes: next(el.childNodes)
6666
};
6767
}

0 commit comments

Comments
 (0)