Skip to content

Commit 9b16f65

Browse files
committed
without tag name check
1 parent af38c45 commit 9b16f65

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

src/language-markdown/print/children.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { htmlBlockNames, htmlRawNames } from "micromark-util-html-tag-name";
21
import { hardline } from "../../document/index.js";
32
import {
43
INLINE_NODE_TYPES,
@@ -122,13 +121,7 @@ function shouldPrePrintDoubleHardline(path, options) {
122121
node.type === "html" &&
123122
previous.type === "paragraph"
124123
) {
125-
const tagName = node.value
126-
.match(/^\s*<\/?([a-z0-9-]+)/iu)?.[1]
127-
.toLowerCase();
128-
const isInlineTag =
129-
tagName && ![...htmlBlockNames, ...htmlRawNames].includes(tagName);
130124
isInlineHtmlInterruptingParagraph =
131-
isInlineTag &&
132125
previous.position.end.line + 1 === node.position.start.line;
133126
}
134127

tests/format/markdown/commonmark-test-suite/__snapshots__/format.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,7 +2663,6 @@ _world_.
26632663
**Hello**,
26642664
26652665
_world_. </pre>
2666-
26672666
</td></tr></table>
26682667
26692668
================================================================================
@@ -3435,7 +3434,6 @@ bar
34353434
34363435
=====================================output=====================================
34373436
Foo
3438-
34393437
<div>
34403438
bar
34413439
</div>

0 commit comments

Comments
 (0)