@@ -529,8 +529,6 @@ export const plugin: Plugin<[FlexibleContainerOptions?], Root> = (options) => {
529529 ? analyzeChild ( node , fence ) // mutates the node
530530 : analyzeChildren ( node , fence ) ; // mutates the node
531531
532- // const { flag, type, rawtitle } = analyzeParagraph(node, fence); // mutates the node
533-
534532 const { containerProps, title, titleProps } = extractSpecificIdentifiers (
535533 rawtitle ?. trim ( ) ,
536534 ) ;
@@ -545,7 +543,7 @@ export const plugin: Plugin<[FlexibleContainerOptions?], Root> = (options) => {
545543 const isParagraphWithEmptyText = checkParagraphWithEmptyText ( node ) ;
546544
547545 // is the paragraph node has only one child with empty text, don't add that paragraph node as a child
548- // meaningly, don't produce empty <p / >
546+ // meaningly, don't produce empty <p>
549547 const containerChildren = isParagraphWithEmptyText
550548 ? [ ...( titleNode ? [ titleNode ] : [ ] ) ]
551549 : [ ...( titleNode ? [ titleNode ] : [ ] ) , node ] ;
@@ -600,11 +598,9 @@ export const plugin: Plugin<[FlexibleContainerOptions?], Root> = (options) => {
600598 }
601599
602600 // if there is no content and type do not construct the container
603-
604601 if ( ! containerChildren . length && ! type ) return ;
605602
606603 // if there is no content but type, then continue to construct the container
607-
608604 const titleNode = constructTitle ( type , title , titleProps ) ;
609605
610606 if ( titleNode ) containerChildren . splice ( 0 , 0 , titleNode ) ;
0 commit comments