Only warn about mermaid diagram if it's changed

This commit is contained in:
Yurii Motov
2026-01-06 11:04:36 +01:00
parent ce8a5ab91c
commit 6fcc6054ff

View File

@@ -586,7 +586,8 @@ def replace_multiline_code_block(
block_language = block_a["lang"].lower()
if block_language in {"mermaid"}:
print("Skipping mermaid code block replacement. This should be checked manually.")
if block_a != block_b:
print("Skipping mermaid code block replacement. This should be checked manually.")
return block_a["content"].copy() # We don't handle mermaid code blocks for now
code_block: list[str] = []