add monospace support; remove #acl
This commit is contained in:
parent
411c5a695c
commit
2fd0d630b3
1 changed files with 2 additions and 1 deletions
|
@ -120,7 +120,7 @@ def convert_markup(content, filename):
|
||||||
('\[\[BR\]\]', '\n'), # newline
|
('\[\[BR\]\]', '\n'), # newline
|
||||||
('#pragma section-numbers off', ''), # remove
|
('#pragma section-numbers off', ''), # remove
|
||||||
('^##.*?\\n', ''), # comments: remove
|
('^##.*?\\n', ''), # comments: remove
|
||||||
('^#(pragma|format|redirect|refresh|language)(.*)', ''), # remove all
|
('^#(pragma|format|redirect|refresh|language|acl)(.*?)\n', ''), # remove all
|
||||||
('^#deprecated(.*)\n', '<note warning>This page is deprecated<note>\n'), # deprecated
|
('^#deprecated(.*)\n', '<note warning>This page is deprecated<note>\n'), # deprecated
|
||||||
|
|
||||||
# Other elements
|
# Other elements
|
||||||
|
@ -168,6 +168,7 @@ def convert_markup(content, filename):
|
||||||
('\'{5}(.*)\'{5}', '**//\\1//**'), # bold and italic
|
('\'{5}(.*)\'{5}', '**//\\1//**'), # bold and italic
|
||||||
('\'{3}(.*)\'{3}', '**\\1**'), # bold
|
('\'{3}(.*)\'{3}', '**\\1**'), # bold
|
||||||
('\'{2}(.*)\'{2}', '//\\1//'), # italic
|
('\'{2}(.*)\'{2}', '//\\1//'), # italic
|
||||||
|
('`(.+?)`', "''\\1''"), # monospaced
|
||||||
('(?<!\[)(\b[A-Z]+[a-z]+[A-Z][A-Za-z]*\b)','[[\\1]]'), # CamelCase, dont change if CamelCase is in InternalLink
|
('(?<!\[)(\b[A-Z]+[a-z]+[A-Z][A-Za-z]*\b)','[[\\1]]'), # CamelCase, dont change if CamelCase is in InternalLink
|
||||||
('\[\[Date\(([\d]{4}-[\d]{2}-[\d]{2}T[\d]{2}:[\d]{2}:[\d]{2}Z)\)\]\]', '\\1'), # Date value
|
('\[\[Date\(([\d]{4}-[\d]{2}-[\d]{2}T[\d]{2}:[\d]{2}:[\d]{2}Z)\)\]\]', '\\1'), # Date value
|
||||||
('attachment:(.*)','{{'+namespace+'\\1|}}')
|
('attachment:(.*)','{{'+namespace+'\\1|}}')
|
||||||
|
|
Loading…
Reference in a new issue