19 ## Original code Copyright 2018-2020 [Olivier Ruelle] |
19 ## Original code Copyright 2018-2020 [Olivier Ruelle] |
20 ## License: GNU GPLv3 |
20 ## License: GNU GPLv3 |
21 ###################################################################### |
21 ###################################################################### |
22 |
22 |
23 MermaidRegex = re.compile(r"^(?P<mermaid_sign>[\~\`]){3}[ \t]*[Mm]ermaid[ \t]*$") |
23 MermaidRegex = re.compile(r"^(?P<mermaid_sign>[\~\`]){3}[ \t]*[Mm]ermaid[ \t]*$") |
24 MermaidRegexFullText = re.compile(r"([\~\`]){3}[ \t]*[Mm]ermaid") # noqa:U200 |
24 MermaidRegexFullText = re.compile(r"([\~\`]){3}[ \t]*[Mm]ermaid") # noqa:U-200 |
25 |
25 |
26 |
26 |
27 class MermaidPreprocessor(Preprocessor): |
27 class MermaidPreprocessor(Preprocessor): |
28 """ |
28 """ |
29 Class implementing a markdown pre-processor for Mermaid. |
29 Class implementing a markdown pre-processor for Mermaid. |