src/eric7/UI/Previewers/MarkdownExtensions.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
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.

eric ide

mercurial