diff --git a/scripts/assemble_stage2.py b/scripts/assemble_stage2.py index 444696f..2279538 100644 --- a/scripts/assemble_stage2.py +++ b/scripts/assemble_stage2.py @@ -717,7 +717,7 @@ def _assemble_type_b(run: Path, ctx: dict): if popup_match: popup_titles.append(popup_match.group(1)) continue - if re.search(r'\[이미지:', stripped): + if re.search(r'\[이미지:', stripped) or re.match(r'^!\[', stripped): continue content_lines.append(stripped) diff --git a/src/block_assembler.py b/src/block_assembler.py index 3269f6e..544cf12 100644 --- a/src/block_assembler.py +++ b/src/block_assembler.py @@ -586,7 +586,7 @@ def _assemble_slide_html_type_b(ctx: "PipelineContext", title_text: str = "") -> if popup_match: popup_titles.append(popup_match.group(1)) continue - if re.search(r'\[이미지:', stripped): + if re.search(r'\[이미지:', stripped) or re.match(r'^!\[', stripped): continue content_lines.append(stripped)