mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-12-03 02:03:31 +01:00
## Summary The website builder, EPUB builder, and Pele mermaid validator only matched a fence that was exactly `\`\`\`mermaid` followed by a newline. CommonMark allows a trailing space on the info string, and authors often write `\`\`\`mermaid title=Overview`. Those diagrams were skipped, so they were not rendered and were not syntax-checked. The fence regex now allows optional whitespace after the backticks and any remainder of the info-string line. ## Tests - `test_extracts_fences_with_info_string_or_trailing_space` in `test_check_mermaid.py` - `test_replaces_fence_with_info_string_or_trailing_space` in `test_build_website.py` - `test_extract_mermaid_blocks_with_info_string` in `test_build_epub.py` --------- Co-authored-by: Luong NGUYEN <luongnv89@gmail.com>