File: contents.in.html

package info (click to toggle)
golang-github-johanneskaufmann-html-to-markdown 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,080 kB
  • sloc: makefile: 3
file content (164 lines) | stat: -rw-r--r-- 2,006 bytes parent folder | download
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!-- basic table with inline content -->
<table>
  <tr>
    <td>
      <strong>A1</strong>
    </td>
    <td>
      <i>B1</i>
    </td>
  </tr>
  <tr>
    <td>
      <code>A2</code>
    </td>
    <td>
      <a href="/">B2</a>
    </td>
  </tr>
</table>

<hr />

<table>
  <tr>
    <td>
      with break after
      <br />
    </td>
  </tr>
  <tr>
    <td>
      <br />
      with break before
    </td>
  </tr>
  <tr>
    <td>
      <br /><br /><br />
      with break around
      <br /><br /><br />
    </td>
  </tr>
</table>

<hr />
<!-- yes: we can keep rendering a table (even though it contains a block node) -->

<table>
  <tr>
    <td><p>Some normal content</p></td>
  </tr>
</table>

<table>
  <tr>
    <td><div>Some normal content</div></td>
  </tr>
</table>

<table>
  <tr>
    <td>
      <article>
        <p>Some normal content</p>
      </article>
    </td>
  </tr>
</table>

<hr />
<!-- no: we cannot keep rendering a table -->

<table>
  <tr>
    <td>The content<br />with break</td>
  </tr>
</table>

<table>
  <tr>
    <td><h1>Heading</h1></td>
  </tr>
</table>

<table>
  <tr>
    <td><h1></h1></td>
    <td>not the empty heading</td>
  </tr>
</table>

<table>
  <tr>
    <td><hr /></td>
  </tr>
</table>

<table>
  <tr>
    <td>
      <pre>Code block</pre>
    </td>
  </tr>
</table>

<table>
  <tr>
    <td>
      <blockquote>Blockquote</blockquote>
    </td>
  </tr>
</table>

<table>
  <tr>
    <td>
      <ul>
        <li>Unordered List</li>
      </ul>
    </td>
  </tr>
</table>

<table>
  <tr>
    <td>
      <ol>
        <li>Ordered List</li>
      </ol>
    </td>
  </tr>
</table>

<hr />

<!-- nested table #1 -->
<table>
  <tr>
    <td>
      <table>
        <tr>
          <td>Nested Table</td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<hr />

<!-- nested table #2 -->
<table>
  <tr>
    <td>Other cell</td>
    <td>
      <table>
        <tr>
          <td>Nested Table</td>
        </tr>
      </table>
    </td>
    <td>Another cell</td>
  </tr>
</table>