-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
math should escape and ignore any other formatting #53
Comments
Do you have a example I can use for testing? Also did you remember to enable math notations using |
it breaks for exemple with I'm enabling the math as follows : $Parser->setSetting('math', [
'inline' => [
'delimiters' => [
//['left' => '\\(', 'right' => '\\)'],
['left' => '$', 'right' => '$'],
],
],
'block' => [
'delimiters' => [
['left' => '$$', 'right' => '$$'],
['left' => '\\begin{equation}', 'right' => '\\end{equation}'],
['left' => '\\begin{align}', 'right' => '\\end{align}'],
['left' => '\\begin{alignat}', 'right' => '\\end{alignat}'],
['left' => '\\begin{gather}', 'right' => '\\end{gather}'],
['left' => '\\begin{CD}', 'right' => '\\end{CD}'],
['left' => '\\[', 'right' => '\\]'],
],
],
]); |
Seems the automatic enable dosn't work as it should, for now you can add the |
only adding it to the root gives me $Parser->setSetting('math', [
'inline' => [
'delimiters' => [
//['left' => '\\(', 'right' => '\\)'],
['left' => '$', 'right' => '$'],
],
"enabled" => true
],
'block' => [
'delimiters' => [
['left' => '$$', 'right' => '$$'],
['left' => '\\begin{equation}', 'right' => '\\end{equation}'],
['left' => '\\begin{align}', 'right' => '\\end{align}'],
['left' => '\\begin{alignat}', 'right' => '\\end{alignat}'],
['left' => '\\begin{gather}', 'right' => '\\end{gather}'],
['left' => '\\begin{CD}', 'right' => '\\end{CD}'],
['left' => '\\[', 'right' => '\\]'],
],
"enabled" => true
],
"enabled" => true
]); |
…gnore-any-other-formatting Fixed a issue where setSetting and isEnabled didn't handle arrays correct #53
Describe the bug
When using inline formatting caracters (*,_,^) in math, the text is put formatted, thus breaking the math formula
Expected Behavior
The math should be left untouched just like a code block
Relevant log output
No response
Environment
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: