Files
kevinandLuong NGUYEN 701357730d fix: recognize mermaid fences with info strings or trailing space (#240)
## 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>
2026-11-12 11:44:28 +01:00
..