2019-03-04 19:24:57 -08:00
|
|
|
# Heading
|
|
|
|
|
2015-04-15 17:50:01 -07:00
|
|
|
Line with *Normal emphasis*
|
|
|
|
|
|
|
|
Line with **Normal strong**
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
Line with ***Normal strong and emphasis***
|
|
|
|
|
2015-04-15 17:50:01 -07:00
|
|
|
Line with _Normal emphasis_
|
|
|
|
|
|
|
|
Line with __Normal strong__
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
Line with ___Normal strong and emphasis___
|
|
|
|
|
2015-04-15 17:50:01 -07:00
|
|
|
Broken * emphasis * with spaces in {MD037}
|
|
|
|
|
|
|
|
Broken ** strong ** with spaces in {MD037}
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
Broken *** strong and emphasis *** with spaces in {MD037}
|
|
|
|
|
2015-04-15 17:50:01 -07:00
|
|
|
Broken _ emphasis _ with spaces in {MD037}
|
|
|
|
|
|
|
|
Broken __ strong __ with spaces in {MD037}
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
Broken ___ strong and emphasis ___ with spaces in {MD037}
|
|
|
|
|
2015-04-15 17:50:01 -07:00
|
|
|
Mixed *ok emphasis* and * broken emphasis * {MD037}
|
|
|
|
|
|
|
|
Mixed **ok strong** and ** broken strong ** {MD037}
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
Mixed ***ok strong and emphasis*** and *** broken strong and emphasis *** {MD037}
|
|
|
|
|
2015-04-15 17:50:01 -07:00
|
|
|
Mixed _ok emphasis_ and _ broken emphasis _ {MD037}
|
|
|
|
|
|
|
|
Mixed __ok strong__ and __ broken strong __ {MD037}
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
Mixed ___ok strong and emphasis___ and ___ broken strong and emphasis ___ {MD037}
|
|
|
|
|
2015-04-15 17:50:01 -07:00
|
|
|
Mixed *ok emphasis* **ok strong** * broken emphasis * {MD037}
|
|
|
|
|
|
|
|
Multiple * broken emphasis * _ broken emphasis _ {MD037}
|
|
|
|
|
|
|
|
One-sided *broken emphasis * {MD037}
|
|
|
|
|
|
|
|
One-sided * broken emphasis* {MD037}
|
|
|
|
|
2020-03-28 14:16:28 -07:00
|
|
|
Will _flag on _words with underscores before them. {MD037}
|
2015-04-15 17:50:01 -07:00
|
|
|
|
2020-03-28 14:16:28 -07:00
|
|
|
The same goes for words* with asterisks* after them. {MD037}
|
|
|
|
|
|
|
|
But not with escaped\* asterisks\* \_and \_underscores.
|
2019-03-04 19:24:57 -08:00
|
|
|
|
|
|
|
* Emphasis* with left space is recognized as a list
|
|
|
|
|
|
|
|
** Strong** with left space {MD037}
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
*** Strong and emphasis*** with left space {MD037}
|
|
|
|
|
2019-03-04 19:24:57 -08:00
|
|
|
_ Emphasis_ with left space {MD037}
|
|
|
|
|
|
|
|
__ Strong__ with left space {MD037}
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
___ Strong and emphasis___ with left space {MD037}
|
|
|
|
|
2019-03-04 19:24:57 -08:00
|
|
|
*Emphasis * with right space {MD037}
|
|
|
|
|
|
|
|
**Strong ** with right space {MD037}
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
***Strong and emphasis *** with right space {MD037}
|
|
|
|
|
2019-03-04 19:24:57 -08:00
|
|
|
_Emphasis _ with right space {MD037}
|
|
|
|
|
|
|
|
__Strong __ with right space {MD037}
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
___Strong and emphasis ___ with right space {MD037}
|
|
|
|
|
2019-03-04 19:24:57 -08:00
|
|
|
{MD037} Left space * emphasis*
|
|
|
|
|
|
|
|
{MD037} Left space ** strong**
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
{MD037} Left space *** strong and emphasis***
|
|
|
|
|
2019-03-04 19:24:57 -08:00
|
|
|
{MD037} Left space _ emphasis_
|
|
|
|
|
|
|
|
{MD037} Left space __ strong__
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
{MD037} Left space ___ strong and emphasis___
|
|
|
|
|
2019-03-04 19:24:57 -08:00
|
|
|
{MD037} Right space *emphasis *
|
|
|
|
|
|
|
|
{MD037} Right space **strong **
|
|
|
|
|
2019-10-02 19:56:52 -07:00
|
|
|
{MD037} Right space ***strong and emphasis ***
|
|
|
|
|
2019-03-04 19:24:57 -08:00
|
|
|
{MD037} Right space _emphasis _
|
|
|
|
|
|
|
|
{MD037} Right space __strong __
|
2019-10-02 19:56:52 -07:00
|
|
|
|
|
|
|
{MD037} Right space ___strong and emphasis ___
|
2020-03-28 14:16:28 -07:00
|
|
|
|
|
|
|
**Multiple ** spaces **in ** emphasis **at ** once. {MD037}
|
|
|
|
|
|
|
|
**Multiple ** spaces ** in** emphasis ** at ** once. {MD037}
|
|
|
|
|
|
|
|
This is * an ambiguous * scenario {MD037}
|
|
|
|
|
|
|
|
* List item *with emphasis* on the
|
|
|
|
first and *second lines*.
|
|
|
|
* List * item* {MD037}
|
|
|
|
* List *item * {MD037}
|
|
|
|
* List * item * {MD037}
|
|
|
|
* List item with
|
|
|
|
*hanging* emphasis
|
|
|
|
and * some* lines {MD037}
|
|
|
|
with *space * problems {MD037}
|
|
|
|
throughout * the * content {MD037}
|
|
|
|
|
2020-04-11 12:33:28 -07:00
|
|
|
Uncommon scenarios from the CommonMark specification (and some variations):
|
2020-03-28 14:16:28 -07:00
|
|
|
***strong emph***
|
|
|
|
***strong** in emph*
|
|
|
|
***emph* in strong**
|
|
|
|
**in strong *emph***
|
|
|
|
*in emph **strong***
|
|
|
|
|
2020-04-11 12:33:28 -07:00
|
|
|
*** strong emph*** {MD037}
|
|
|
|
*** strong** in emph* {MD037}
|
|
|
|
*** emph* in strong** {MD037}
|
|
|
|
** in strong *emph*** {MD037}
|
|
|
|
|
|
|
|
***strong emph *** {MD037}
|
|
|
|
***strong** in emph * {MD037}
|
|
|
|
***emph* in strong ** {MD037}
|
|
|
|
**in strong *emph *** {MD037}
|
|
|
|
*in emph **strong *** {MD037}
|
|
|
|
|
|
|
|
** *strong emph*** {MD037}
|
|
|
|
** *strong** in emph* {MD037}
|
|
|
|
** *emph* in strong** {MD037}
|
|
|
|
**in strong * emph*** (internal spaces are not detected)
|
|
|
|
*in emph ** strong*** (internal spaces are not detected)
|
|
|
|
|
|
|
|
***strong emph* ** {MD037}
|
|
|
|
***strong ** in emph* (internal spaces are not detected)
|
|
|
|
***emph * in strong** (internal spaces are not detected)
|
|
|
|
**in strong *emph* ** {MD037}
|
|
|
|
*in emph **strong* ** {MD037}
|
|
|
|
|
|
|
|
Text *emph***strong** text
|
|
|
|
Text * emph***strong** text {MD037}
|
|
|
|
Text *emph ***strong** text (internal spaces are not detected)
|
|
|
|
Text *emph*** strong** text (internal spaces are not detected)
|
|
|
|
Text *emph***strong ** text {MD037}
|
|
|
|
|
2020-03-28 14:16:28 -07:00
|
|
|
```markdown
|
|
|
|
Violations * are * allowed in code blocks where emphasis does not apply.
|
|
|
|
```
|
2020-04-25 15:10:07 -07:00
|
|
|
|
|
|
|
Emphasis `inside * code * blocks` is okay.
|
|
|
|
|
|
|
|
Emphasis `* inside` code `blocks *` is okay.
|
|
|
|
|
|
|
|
Emphasis `inside *` code `* blocks` is okay.
|
|
|
|
|
|
|
|
Emphasis `inside _ code _ blocks` is okay.
|
|
|
|
|
|
|
|
Emphasis `_ inside` code `blocks _` is okay.
|
|
|
|
|
|
|
|
Emphasis `inside _` code `_ blocks` is okay.
|
|
|
|
|
|
|
|
Mixed `code_span` scenarios are _also_ okay.
|
|
|
|
|
|
|
|
Mixed `code*span` scenarios are *also* okay.
|
|
|
|
|
|
|
|
Mixed `code*span` scenarios are _also_ okay.
|
|
|
|
|
|
|
|
Mixed `code_span` scenarios are *also* okay.
|
2020-05-08 16:01:42 -07:00
|
|
|
|
|
|
|
[Link](under_score) followed by _underscore_
|
|
|
|
|
|
|
|
[Link](un_der_score) followed by _underscore_
|
|
|
|
|
|
|
|
[Link](un_der_sco_re) followed by _underscore_
|
|
|
|
|
|
|
|
[Link](star*star) followed by *star*
|
|
|
|
|
|
|
|
* [Link](star*star) followed by *star*
|
|
|
|
|
|
|
|
Text [Link](under_score) text _underscore_ text [Link](st*ar) text *star* text
|
|
|
|
|
|
|
|
[Link [link] link](under_score) followed by _underscore_
|