mermaid.is_fence

mermaid

is_fence(info) -> yes

Report whether a fence's info string names a diagram

True when the first word of the info string is mermaid. The rest of the string is ignored: mermaid {.wide} is a diagram. The word is matched as written: Mermaid is not one.