-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(italicsAndBold): fiz inconsistency in italicsAndBold parsing
The way showdown parsed cases suchs as this: ``` **foo **bar __foo __bar *foo *bar _foo _bar ``` was inconsistent. This established that `__` or `**` preceeding a word would not be parsed as em or strong. Closes #332
- Loading branch information
Showing
7 changed files
with
80 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/issues/#332.inconsistent-behavior-of-emphasis-and-strong.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<p>foo *bar *baz</p> | ||
<p>foo **bar **baz</p> | ||
<p>foo _bar _baz</p> | ||
<p>foo __bar __baz</p> | ||
<p>foo *bar *baz *bazinga</p> | ||
<p>foo **bar **baz **bazinga</p> | ||
<p>foo _bar _baz __bazinga</p> | ||
<p>foo __bar __baz __bazinga</p> | ||
<p><em>f</em></p> | ||
<p><strong>f</strong></p> | ||
<p><em>f</em></p> | ||
<p><strong>f</strong></p> | ||
<p>foo **bar **baz <strong>bazinga bla</strong></p> | ||
<p>foo <strong>bar **baz **bazinga bla</strong></p> | ||
<p>foo <strong>**bar **baz **bazinga bla</strong></p> |
29 changes: 29 additions & 0 deletions
29
test/issues/#332.inconsistent-behavior-of-emphasis-and-strong.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
foo *bar *baz | ||
|
||
foo **bar **baz | ||
|
||
foo _bar _baz | ||
|
||
foo __bar __baz | ||
|
||
foo *bar *baz *bazinga | ||
|
||
foo **bar **baz **bazinga | ||
|
||
foo _bar _baz __bazinga | ||
|
||
foo __bar __baz __bazinga | ||
|
||
*f* | ||
|
||
**f** | ||
|
||
_f_ | ||
|
||
__f__ | ||
|
||
foo **bar **baz **bazinga bla** | ||
|
||
foo __bar **baz **bazinga bla__ | ||
|
||
foo __**bar **baz **bazinga bla__ |