|
@ -1,4 +1,3 @@ |
|
|
|
|
|
|
|
|
Should parse nested quotes: |
|
|
Should parse nested quotes: |
|
|
|
|
|
|
|
|
. |
|
|
. |
|
@ -13,6 +12,7 @@ Should parse nested quotes: |
|
|
<p>‘foo ‘bar’ baz’</p> |
|
|
<p>‘foo ‘bar’ baz’</p> |
|
|
. |
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Should not overlap quotes: |
|
|
Should not overlap quotes: |
|
|
|
|
|
|
|
|
. |
|
|
. |
|
@ -21,6 +21,7 @@ Should not overlap quotes: |
|
|
<p>‘foo "bar’ baz"</p> |
|
|
<p>‘foo "bar’ baz"</p> |
|
|
. |
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Should match quotes on the same level: |
|
|
Should match quotes on the same level: |
|
|
|
|
|
|
|
|
. |
|
|
. |
|
@ -29,6 +30,7 @@ Should match quotes on the same level: |
|
|
<p>“foo <em>bar</em> baz”</p> |
|
|
<p>“foo <em>bar</em> baz”</p> |
|
|
. |
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Should not match quotes on different levels: |
|
|
Should not match quotes on different levels: |
|
|
|
|
|
|
|
|
. |
|
|
. |
|
@ -46,6 +48,7 @@ Should not match quotes on different levels: |
|
|
<p><em>"foo</em> bar <em>baz"</em></p> |
|
|
<p><em>"foo</em> bar <em>baz"</em></p> |
|
|
. |
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Should try and find matching quote in this case: |
|
|
Should try and find matching quote in this case: |
|
|
|
|
|
|
|
|
. |
|
|
. |
|
@ -54,6 +57,16 @@ Should try and find matching quote in this case: |
|
|
<p>"foo “bar 'baz”</p> |
|
|
<p>"foo “bar 'baz”</p> |
|
|
. |
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Should not touch 'inches' in quotes: |
|
|
|
|
|
|
|
|
|
|
|
. |
|
|
|
|
|
"Monitor 21"" |
|
|
|
|
|
. |
|
|
|
|
|
<p>“Monitor 21"”</p> |
|
|
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Should render an apostrophe as a rsquo: |
|
|
Should render an apostrophe as a rsquo: |
|
|
|
|
|
|
|
|
. |
|
|
. |
|
@ -62,6 +75,7 @@ This isn't and can't be the best approach to implement this... |
|
|
<p>This isn’t and can’t be the best approach to implement this…</p> |
|
|
<p>This isn’t and can’t be the best approach to implement this…</p> |
|
|
. |
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apostrophe could end the word, that's why original smartypants replaces all of them as rsquo: |
|
|
Apostrophe could end the word, that's why original smartypants replaces all of them as rsquo: |
|
|
|
|
|
|
|
|
. |
|
|
. |
|
|