1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Better parsing of emphasis and strong elements

- Regex is based on original Perl regex.
 - Added more tests.
This commit is contained in:
hkdobrev
2013-07-22 21:29:32 +03:00
parent 99bf0d4bba
commit 7ace421f6d
3 changed files with 16 additions and 13 deletions

View File

@@ -1,5 +1,8 @@
<p>Here's <em>an emphasis</em>.</p>
<p>A short emphasis <em>a</em> <em>b</em> .</p>
<p>Here's <strong>a strong one</strong>. </p>
<p>Here's <em>an emphasis that uses underscores</em>. </p>
<p>Here's <strong>a strong emphasis that uses underscores</strong>.</p>
<p>This is _ not an emphasis _.</p>
<p>This is _ not an emphasis _ neither is * that * .</p>
<p>Empty emphasis ** is not __ an emphasis.</p>
<p>Three asterisks are an emphasized asterisk <em>*</em> .</p>