-
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.
feat(literalMidWordAsterisks): add option for mid word asterisks
Implements feature similar to ignoring midword underscores but with asterisks. The main use case is ignoring cursing.
- Loading branch information
Showing
6 changed files
with
114 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
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,24 @@ | ||
<p>this is a sentence*with*mid asterisks</p> | ||
<p>this is a sentence**with**two mid asterisks</p> | ||
<p>this is a sentence***with***three mid asterisks</p> | ||
<p>this is a sentence with just*one asterisk</p> | ||
<p>this is a sentence with just**one asterisk</p> | ||
<p>this is a sentence with just***one asterisk</p> | ||
<p>this is double**asterisk**mid word</p> | ||
<p>this has just**one double asterisk</p> | ||
<p>this has just***one triple asterisk</p> | ||
<p>this <em>should be parsed</em> as emphasis</p> | ||
<p>this <strong>should be parsed</strong> as bold</p> | ||
<p>this <strong><em>should be parsed</em></strong> as bold and emphasis</p> | ||
<p>emphasis at <em>end of sentence</em></p> | ||
<p>bold at <strong>end of sentence</strong></p> | ||
<p>bold and emphasis at <strong><em>end of sentence</em></strong></p> | ||
<p><em>emphasis at</em> line start</p> | ||
<p><strong>bold at</strong> line start</p> | ||
<p><strong><em>bold and emphasis at</em></strong> line start</p> | ||
<p>multi <em>line emphasis | ||
yeah it is</em> yeah</p> | ||
<p>multi <strong>line emphasis | ||
yeah it is</strong> yeah</p> | ||
<p>multi <strong><em>line emphasis | ||
yeah it is</em></strong> yeah</p> |
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,46 @@ | ||
this is a sentence*with*mid asterisks | ||
|
||
this is a sentence**with**two mid asterisks | ||
|
||
this is a sentence***with***three mid asterisks | ||
|
||
this is a sentence with just*one asterisk | ||
|
||
this is a sentence with just**one asterisk | ||
|
||
this is a sentence with just***one asterisk | ||
|
||
this is double**asterisk**mid word | ||
|
||
this has just**one double asterisk | ||
|
||
this has just***one triple asterisk | ||
|
||
this *should be parsed* as emphasis | ||
|
||
this **should be parsed** as bold | ||
|
||
this ***should be parsed*** as bold and emphasis | ||
|
||
emphasis at *end of sentence* | ||
|
||
bold at **end of sentence** | ||
|
||
bold and emphasis at ***end of sentence*** | ||
|
||
*emphasis at* line start | ||
|
||
**bold at** line start | ||
|
||
***bold and emphasis at*** line start | ||
|
||
multi *line emphasis | ||
yeah it is* yeah | ||
|
||
|
||
multi **line emphasis | ||
yeah it is** yeah | ||
|
||
|
||
multi ***line emphasis | ||
yeah it is*** yeah |
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