Skip to content

Commit

Permalink
Simplify check for inline rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd authored Feb 3, 2025
1 parent a6986a2 commit c3d3140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuemark/src/render-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function renderTag(tag, opts = {}) {
// native html tags
if (HTML_TAGS.includes(tag.name)) {
// inline / block without blocks, but with '_' data
if (tag.is_inline || (!tag.blocks?.length && tag.data?._)) return elem(tag.name, tag.attr, renderInline(tag.data?._, opts))
if (tag.is_inline || !tag.blocks?.length) return elem(tag.name, tag.attr, renderInline(tag.data?._, opts))

// block
tag.is_block = true
Expand Down

0 comments on commit c3d3140

Please sign in to comment.