There are some existing methods for adding attributes to fenced code-blocks that could be reused: Ability to resize and align mermaid diagrams
There are some existing methods for adding attributes to fenced code-blocks that could be reused: Ability to resize and align mermaid diagrams