Change ~ to $ for latex
This commit is contained in:
parent
dc8cbc6976
commit
3ed4fc7a0e
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ mistune._pre_tags.append("latex")
|
|||
|
||||
class MathInlineGrammar(mistune.InlineGrammar):
|
||||
block_math = re.compile(r"^\$\$(.*?)\$\$|^\\\[(.*?)\\\]", re.DOTALL)
|
||||
math = re.compile(r"^~(.*?)~|^\\\((.*?)\\\)", re.DOTALL)
|
||||
math = re.compile(r"^~(.*?)~|\$(.*?)\$|^\\\((.*?)\\\)", re.DOTALL)
|
||||
text = re.compile(r"^[\s\S]+?(?=[\\<!\[_*`~$]|\\[\[(]|https?://| {2,}\n|$)")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue