mirror of
https://github.com/ParticulateFlow/lammps-doc-utils.git
synced 2025-12-08 06:47:45 +00:00
Escape pipe characters
This commit is contained in:
@ -65,6 +65,7 @@ class RSTMarkup(Markup):
|
||||
def escape_rst_chars(self, text):
|
||||
text = text.replace('*', '\\*')
|
||||
text = text.replace('^', '\\^')
|
||||
text = text.replace('|', '\\|')
|
||||
text = re.sub(r'([^"])_', r'\1\\_', text)
|
||||
return text
|
||||
|
||||
@ -72,6 +73,7 @@ class RSTMarkup(Markup):
|
||||
text = text.replace('\\*', '*')
|
||||
text = text.replace('\\^', '^')
|
||||
text = text.replace('\\_', '_')
|
||||
text = text.replace('\\|', '|')
|
||||
return text
|
||||
|
||||
def inline_math(self, text):
|
||||
|
||||
Reference in New Issue
Block a user