aboutsummaryrefslogtreecommitdiff
path: root/tests/php/extra/Inline HTML with Markdown content.text
blob: 1eb54502db5611c47a8b729444dc959430a9654b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Markdown inside code blocks

<div markdown="1">
foo
</div>

<div markdown='1'>
foo
</div>

<div markdown=1>
foo
</div>

<table>
<tr><td markdown="1">test _emphasis_ (span)</td></tr>
</table>

<table>
<tr><td markdown="span">test _emphasis_ (span)</td></tr>
</table>

<table>
<tr><td markdown="block">test _emphasis_ (block)</td></tr>
</table>

## More complicated

<table>
<tr><td markdown="1">
* this is _not_ a list item</td></tr>
<tr><td markdown="span">
* this is _not_ a list item</td></tr>
<tr><td markdown="block">
* this _is_ a list item
</td></tr>
</table>

## With indent

<div>
    <div markdown="1">
    This text is no code block: if it was, the 
    closing `<div>` would be too and the HTML block 
    would be invalid.

    Markdown content in HTML blocks is assumed to be 
    indented the same as the block opening tag.

    **This should be the third paragraph after the header.**
    </div>
</div>

## Code block with rogue `</div>`s in Markdown code span and block

<div>
    <div markdown="1">

    This is a code block however:

        </div>

    Funny isn't it? Here is a code span: `</div>`.

    </div>
</div>

<div>
  <div markdown="1">
    * List item, not a code block

Some text

      This is a code block.
  </div>
</div>

## No code block in markdown span mode

<p markdown="1">
    This is not a code block since Markdown parse paragraph 
    content as span. Code spans like `</p>` are allowed though.
</p>

<p markdown="1">_Hello_ _world_</p>

## Preserving attributes and tags on more than one line:

<p class="test" markdown="1" 
id="12">
Some _span_ content.
</p>


## Header confusion bug

<table class="canvas">
<tr>
<td id="main" markdown="1">Hello World!
============

Hello World!</td>
</tr>
</table>