Skip to content

Commit

Permalink
fix(HTML) Lists default to tight unless specified explicitely
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Dec 10, 2019
1 parent e23607b commit 498da43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/markdown-html/src/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const LIST_RULE = {
return {
'$class': `${NS_PREFIX_CommonMarkModel}List`,
type: 'bullet',
tight: el.getAttribute('tight'),
tight: el.getAttribute('tight') ? el.getAttribute('tight') : true,
nodes: next(el.childNodes)
};
}
Expand All @@ -61,7 +61,7 @@ const LIST_RULE = {
type: 'ordered',
delimiter: el.getAttribute('delimiter'),
start: el.getAttribute('start'),
tight: el.getAttribute('tight'),
tight: el.getAttribute('tight') ? el.getAttribute('tight') : true,
nodes: next(el.childNodes)
};
}
Expand Down

0 comments on commit 498da43

Please sign in to comment.