Skip to content

Commit 48f53bd

Browse files
committed
Minor tweak
1 parent 65cc0fb commit 48f53bd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/language-markdown/printer-markdown.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,9 @@ function isLooseListItem(node, options) {
676676
function shouldPrePrintDoubleHardline({ node, previous, parent }, options) {
677677
if (
678678
isLooseListItem(previous, options) ||
679-
(parent.type === "listItem" && previous.type === "code")
679+
(node.type === "list" &&
680+
parent.type === "listItem" &&
681+
previous.type === "code")
680682
) {
681683
return true;
682684
}

0 commit comments

Comments
 (0)