@@ -4,79 +4,79 @@ Adds support for mathematics spans:
44
55## Math Inline
66
7- Allows to define a mathematic block embraced by ` $...$ `
7+ Allows to define a mathematic inline block embraced by ` $...$ `
88
99```````````````````````````````` example
10- This is a $math block $
10+ This is a $math inline $
1111.
12- <p>This is a <span class="math">\(math block \)</span></p>
12+ <p>This is a <span class="math">\(math inline \)</span></p>
1313````````````````````````````````
1414
1515Or by ` $$...$$ ` embracing it by:
1616
1717```````````````````````````````` example
18- This is a $$math block $$
18+ This is a $$math inline $$
1919.
20- <p>This is a <span class="math">\(math block \)</span></p>
20+ <p>This is a <span class="math">\(math inline \)</span></p>
2121````````````````````````````````
2222
2323Newlines inside an inline math are not allowed:
2424
2525```````````````````````````````` example
2626This is not a $$math
27- block $$ and? this is a $$math block $$
27+ inline $$ and? this is a $$math inline $$
2828.
2929<p>This is not a $$math
30- block $$ and? this is a <span class="math">\(math block \)</span></p>
30+ inline $$ and? this is a <span class="math">\(math inline \)</span></p>
3131````````````````````````````````
3232
3333```````````````````````````````` example
3434This is not a $math
35- block $ and? this is a $math block $
35+ inline $ and? this is a $math inline $
3636.
3737<p>This is not a $math
38- block $ and? this is a <span class="math">\(math block \)</span></p>
38+ inline $ and? this is a <span class="math">\(math inline \)</span></p>
3939````````````````````````````````
4040An opening ` $ ` can be followed by a space if the closing is also preceded by a space ` $ ` :
4141
4242```````````````````````````````` example
43- This is a $ math block $
43+ This is a $ math inline $
4444.
45- <p>This is a <span class="math">\(math block \)</span></p>
45+ <p>This is a <span class="math">\(math inline \)</span></p>
4646````````````````````````````````
4747
4848```````````````````````````````` example
49- This is a $ math block $ after
49+ This is a $ math inline $ after
5050.
51- <p>This is a <span class="math">\(math block \)</span> after</p>
51+ <p>This is a <span class="math">\(math inline \)</span> after</p>
5252````````````````````````````````
5353
5454```````````````````````````````` example
55- This is a $$ math block $$ after
55+ This is a $$ math inline $$ after
5656.
57- <p>This is a <span class="math">\(math block \)</span> after</p>
57+ <p>This is a <span class="math">\(math inline \)</span> after</p>
5858````````````````````````````````
5959
6060```````````````````````````````` example
61- This is a not $ math block $ because there is not a whitespace before the closing
61+ This is a not $ math inline $ because there is not a whitespace before the closing
6262.
63- <p>This is a not $ math block $ because there is not a whitespace before the closing</p>
63+ <p>This is a not $ math inline $ because there is not a whitespace before the closing</p>
6464````````````````````````````````
6565
6666For the opening ` $ ` it requires a space or a punctuation before (but cannot be used within a word):
6767
6868```````````````````````````````` example
69- This is not a m$ath block $
69+ This is not a m$ath inline $
7070.
71- <p>This is not a m$ath block $</p>
71+ <p>This is not a m$ath inline $</p>
7272````````````````````````````````
7373
7474For the closing ` $ ` it requires a space after or a punctuation (but cannot be preceded by a space and cannot be used within a word):
7575
7676```````````````````````````````` example
77- This is not a $math bloc$k
77+ This is not a $math inlin$e
7878.
79- <p>This is not a $math bloc$k </p>
79+ <p>This is not a $math inlin$e </p>
8080````````````````````````````````
8181
8282For the closing ` $ ` it requires a space after or a punctuation (but cannot be preceded by a space and cannot be used within a word):
@@ -90,34 +90,34 @@ This is should not match a 16$ or a $15
9090A ` $ ` can be escaped between a math inline block by using the escape ` \\ `
9191
9292```````````````````````````````` example
93- This is a $math \$ block $
93+ This is a $math \$ inline $
9494.
95- <p>This is a <span class="math">\(math \$ block \)</span></p>
95+ <p>This is a <span class="math">\(math \$ inline \)</span></p>
9696````````````````````````````````
9797
9898At most, two ` $ ` will be matched for the opening and closing:
9999
100100```````````````````````````````` example
101- This is a $$$math block $$$
101+ This is a $$$math inline $$$
102102.
103- <p>This is a <span class="math">\($math block $\)</span></p>
103+ <p>This is a <span class="math">\($math inline $\)</span></p>
104104````````````````````````````````
105105
106106Regular text can come both before and after the math inline
107107
108108```````````````````````````````` example
109- This is a $math block $ with text on both sides.
109+ This is a $math inline $ with text on both sides.
110110.
111- <p>This is a <span class="math">\(math block \)</span> with text on both sides.</p>
111+ <p>This is a <span class="math">\(math inline \)</span> with text on both sides.</p>
112112````````````````````````````````
113- A mathematic block takes precedence over standard emphasis ` * ` ` _ ` :
113+ A mathematic inline block takes precedence over standard emphasis ` * ` ` _ ` :
114114
115115```````````````````````````````` example
116- This is *a $math* block $
116+ This is *a $math* inline $
117117.
118- <p>This is *a <span class="math">\(math* block \)</span></p>
118+ <p>This is *a <span class="math">\(math* inline \)</span></p>
119119````````````````````````````````
120- An opening $$ at the beginning of a line should not be interpreted as a Math block :
120+ An opening $$ at the beginning of a line should not be interpreted as a Math inline :
121121
122122```````````````````````````````` example
123123$$ math $$ starting at a line
0 commit comments