```
```html
<a href='bar'title=title>
```
--------------------------------
### Markdown Collapsed Reference Link with Inline Formatting
Source: https://github.github.com/gfm
The link text in a collapsed reference link is parsed as inlines. This example shows '*foo* bar' as the link text, which is then used to match the reference definition.
```markdown
[*foo* bar][]
[*foo* bar]: /url "title"
```
--------------------------------
### Thematic Break within a List Item Example
Source: https://github.github.com/gfm
Presents a scenario to clarify whether a thematic break within a list item creates two separate lists or is part of a single list item.
```markdown
* a
* * * * *
* b
```
--------------------------------
### Strong emphasis with nested strong emphasis (variant)
Source: https://github.github.com/gfm
Illustrates strong emphasis with nested strong emphasis, using `____` and `__`. This highlights delimiter matching rules.
```markdown
____foo__ bar__
```
--------------------------------
### Markdown Link Label Normalization
Source: https://github.github.com/gfm
Link label matching is performed on normalized strings, not parsed inline content. This example shows that '[foo!]' does not match '[foo]: /url' because the labels are not equivalent after normalization.
```markdown
[bar][foo!]
[foo]: /url
```
--------------------------------
### Invalid Thematic Break Characters
Source: https://github.github.com/gfm
Shows examples of character sequences that do not form thematic breaks and are instead rendered as paragraphs.
```markdown
+++
```
```html
+++
```
```markdown
===
```
```html
===
```
--------------------------------
### Declarations
Source: https://github.github.com/gfm
Demonstrates a valid HTML declaration, which is rendered as raw HTML.
```html
foo
```
```html
foo
```
--------------------------------
### Markdown Block Quote Interrupted by List
Source: https://github.github.com/gfm
Shows how omitting '>' before a list item terminates the block quote and starts a new list.
```markdown
> - foo
- bar
```
--------------------------------
### GFM Task List Item Syntax
Source: https://github.github.com/gfm
Demonstrates the basic syntax for creating unchecked and checked task list items in GFM. Use '- [ ]' for unchecked and '- [x]' for checked items.
```markdown
- [ ] foo
- [x] bar
```
--------------------------------
### Fenced Code Block with Tildes
Source: https://github.github.com/gfm
Demonstrates using at least three tildes to create a fenced code block. This is an alternative to using backticks.
```markdown
~~~
<>
~~~
```
```html
<
>
```
--------------------------------
### Markdown Precedence: Full/Compact vs. Shortcut
Source: https://github.github.com/gfm
Full and compact reference links take precedence over shortcut references. '[foo][bar]' with definitions for both '[foo]' and '[bar]' will resolve to the definition of '[bar]'.
```markdown
[foo][bar]
[foo]: /url1
[bar]: /url2
```
--------------------------------
### Fences with Internal Spaces (Tildes)
Source: https://github.github.com/gfm
Illustrates that spaces within tilde fences are not allowed and result in the content being rendered as paragraphs.
```markdown
~~~~~~
aaa
~~~ ~~
```
```html
aaa
~~~ ~~
```
--------------------------------
### Insufficient Thematic Break Characters
Source: https://github.github.com/gfm
Provides examples where the character sequences are too short to be recognized as thematic breaks, resulting in paragraph rendering.
```markdown
--
**
__
```
```html
--
**
__
```
--------------------------------
### Simple Paragraphs
Source: https://github.github.com/gfm
Demonstrates the basic structure of two separate paragraphs formed by non-blank lines.
```markdown
aaa
bbb
```
```html
aaa
bbb
```
--------------------------------
### Bullet List Item with Simple Content
Source: https://github.github.com/gfm
Illustrates a simple bullet list item. The content 'one' is rendered as a list item, while 'two' on a new line without sufficient indentation becomes a separate paragraph.
```markdown
- one
two
```
```html
two
```
--------------------------------
### Literal asterisks at the end of a line
Source: https://github.github.com/gfm
Shows literal asterisks at the end of a line that do not form emphasis. This example uses `*****` which is treated as literal text.
```markdown
foo *****
```
--------------------------------
### GFM Emphasis: Intraword Underscore Disallowed
Source: https://github.github.com/gfm
Illustrates that intraword emphasis with underscores is disallowed. These examples show cases where underscores do not create emphasis.
```markdown
_foo_bar
```
```html
_foo_bar
```
```markdown
_пристаням_стремятся
```
```html
_пристаням_стремятся
```
```markdown
_foo_bar_baz_
```
```html
foo_bar_baz
```
--------------------------------
### GFM Emphasis: Nested Underscore Usage
Source: https://github.github.com/gfm
Shows emphasis within emphasis using underscores. This example highlights how nested emphasis is handled.
```markdown
_(_foo_)
```
```html
(foo)
```
--------------------------------
### Markdown Precedence: Full/Compact vs. Shortcut (Collapsed)
Source: https://github.github.com/gfm
A full or collapsed reference link takes precedence over a shortcut reference. '[foo][]' will resolve to the definition of '[foo]', not be treated as a shortcut link.
```markdown
[foo][]
[foo]: /url1
```
--------------------------------
### Empty Setext Heading Not Allowed
Source: https://github.github.com/gfm
Shows that an empty setext heading (only an underline) is not recognized and is rendered as a paragraph.
```markdown
====
```
```html
====
```
--------------------------------
### Markdown Tight List with Code Block
Source: https://github.github.com/gfm
Demonstrates a tight list where blank lines within a code block inside a list item do not make the list loose.
```markdown
- a
- ```
b
```
- c
```
--------------------------------
### Literal underscores at the end of a line
Source: https://github.github.com/gfm
Demonstrates literal underscores at the end of a line that do not form emphasis. This example uses `___` which is treated as literal text.
```markdown
foo ___
```
--------------------------------
### Entity References in Markdown Links
Source: https://github.github.com/gfm
Demonstrates entity references within Markdown link syntax, including the URL and title.
```markdown
[foo](/föö "föö")
```
```html
foo
```
--------------------------------
### Strong emphasis with nested emphasis (mixed delimiters)
Source: https://github.github.com/gfm
Demonstrates strong emphasis containing emphasis, using mixed delimiters (`**` and `*`). This shows how different delimiter types interact.
```markdown
**foo *bar* baz**
```
--------------------------------
### Adjacent strong emphasis within emphasis
Source: https://github.github.com/gfm
Shows emphasis with adjacent strong emphasis. This example highlights how consecutive strong emphasis delimiters are handled.
```markdown
*foo**bar***
```
--------------------------------
### Autolink with path
Source: https://github.github.com/gfm
Extended 'www.' autolinks can include paths. Zero or more non-space, non-'<' characters are allowed after the domain.
```markdown
Visit www.commonmark.org/help for more information.
```
--------------------------------
### Markdown Shortcut Reference Link with Nested Brackets
Source: https://github.github.com/gfm
Demonstrates how nested brackets within the link text of a shortcut reference link are handled. '[[*foo* bar]]' results in a link with the text '[foo bar]'.
```markdown
[[*foo* bar]]
[*foo* bar]: /url "title"
```
--------------------------------
### Horizontal Rule with Tabs
Source: https://github.github.com/gfm
Illustrates the creation of a horizontal rule using asterisks and tab characters, showing how tabs are processed in this context.
```CommonMark
*→*→*
```
```HTML
```
--------------------------------
### Ordered List Item with Indentation
Source: https://github.github.com/gfm
Shows how an ordered list marker ('1.') followed by spaces creates an ordered list item. The content is parsed as a list item, preserving its structure.
```markdown
1. A paragraph
with two lines.
indented code
> A block quote.
```
```html
-
A paragraph
with two lines.
indented code
A block quote.
```
--------------------------------
### GFM Table Breaking at Block Element
Source: https://github.github.com/gfm
Illustrates that a GFM table is terminated by the first empty line or the start of another block-level element, such as a block quote.
```markdown
| abc | def |
| --- | --- |
| bar | baz |
> bar
```
--------------------------------
### Mismatched Opening and Closing Fences (Tildes)
Source: https://github.github.com/gfm
Demonstrates that a fenced code block opened with tildes must be closed with tildes, not backticks.
```markdown
~~~
aaa
```
~~~
```
```html
aaa
```
```
--------------------------------
### HTML Block with Incomplete Tag
Source: https://github.github.com/gfm
Shows an HTML block starting with a partial tag that is not fully formed. The parser treats the entire block as literal HTML.
```markdown
Foo
Foo
```
--------------------------------
### GFM Strikethrough Syntax
Source: https://github.github.com/gfm
Shows how to use tildes for strikethrough text in GitHub Flavored Markdown. Note that three or more tildes do not create strikethrough, and new paragraphs break strikethrough parsing.
```markdown
~~Hi~~ Hello, ~there~ world!
```
```markdown
This ~~has a
new paragraph~~.
```
```markdown
This will ~~~not~~~ strike.
```
--------------------------------
### Emphasis with multiple strong emphasis delimiters (extended)
Source: https://github.github.com/gfm
Shows a more complex case of emphasis with multiple strong emphasis delimiters, demonstrating how consecutive delimiters are parsed.
```markdown
foo******bar*********baz
```
--------------------------------
### List Interrupting Paragraph (CommonMark)
Source: https://github.github.com/gfm
In CommonMark, a list can interrupt a paragraph without a preceding blank line. This example shows a paragraph followed by a bulleted list.
```markdown
Foo
- bar
- baz
```
--------------------------------
### HTML Block with Uppercase Tag
Source: https://github.github.com/gfm
An example of an HTML block using an uppercase tag (DIV). Markdown content within the block is converted to HTML paragraphs.
```markdown
*Markdown*
```
```markdown
```
--------------------------------
### Inline Link with Title
Source: https://github.github.com/gfm
A basic inline link with visible text, a destination URI, and an optional title that appears on hover.
```markdown
[link](/uri "title")
```
```html
link
```
--------------------------------
### Markdown List Item Indentation (1-3 spaces)
Source: https://github.github.com/gfm
Demonstrates how indenting list items by 1 to 3 spaces preserves their list item structure. Indentation must be consistent across lines of the list item.
```markdown
1. A paragraph
with two lines.
indented code
> A block quote.
```
```markdown
1. A paragraph
with two lines.
indented code
> A block quote.
```
```markdown
1. A paragraph
with two lines.
indented code
> A block quote.
```
--------------------------------
### Empty Fenced Code Block
Source: https://github.github.com/gfm
An example of an empty fenced code block with a language identifier. This results in an empty 'code' element within a 'pre' tag.
```markdown
````;
````
```
```html
```
--------------------------------
### Plain Text URI
Source: https://github.github.com/gfm
A standard URI not enclosed in angle brackets is rendered as plain text.
```markdown
http://example.com
```
```html
http://example.com
```
--------------------------------
### List Item with Multiple Blank Lines
Source: https://github.github.com/gfm
Demonstrates a list item containing blocks separated by more than one blank line. The blank lines are preserved, and the content is correctly parsed as part of the list item.
```markdown
- foo
bar
```
```html
```
--------------------------------
### Ordered List with Leading Zeros
Source: https://github.github.com/gfm
GFM correctly interprets ordered list items even when the starting number has leading zeros, parsing them into a standard ordered list.
```markdown
0. ok
```
```html
- ok
```
```markdown
003. ok
```
```html
- ok
```
--------------------------------
### HTML Block with Div Tag
Source: https://github.github.com/gfm
Shows an HTML block starting with a