Skip to content

Commit 4e3fd08

Browse files
committed
Simplify check for inline rendering
1 parent df55b7e commit 4e3fd08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/nuemark/src/render-tag.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ export function renderTag(tag, opts = {}) {
158158
if (!fn) {
159159
// native html tags
160160
if (HTML_TAGS.includes(tag.name)) {
161-
// inline / block without blocks, but with '_' data
162-
if (tag.is_inline || (!tag.blocks?.length && tag.data?._)) return elem(tag.name, tag.attr, renderInline(tag.data?._, opts))
161+
// inline / block without blocks
162+
if (tag.is_inline || !tag.blocks?.length) return elem(tag.name, tag.attr, renderInline(tag.data?._, opts))
163163

164164
// block
165165
tag.is_block = true
@@ -330,4 +330,4 @@ export function parseTable(lines) {
330330
})
331331

332332
return { rows, ...specs }
333-
}
333+
}

0 commit comments

Comments
 (0)