File: parents.in.html

package info (click to toggle)
golang-github-johanneskaufmann-html-to-markdown 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,084 kB
  • sloc: makefile: 3
file content (110 lines) | stat: -rw-r--r-- 1,431 bytes parent folder | download | duplicates (2)
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
<!-- these parents do work -->

<blockquote>
  The blockquote content:

  <table>
    <tr>
      <td>A1</td>
      <td>A2</td>
    </tr>
  </table>
</blockquote>

<hr />

<ol start="10">
  <li>The list item content</li>
  <li>
    <table>
      <tr>
        <td>A1</td>
        <td>A2</td>
      </tr>
    </table>
  </li>
</ol>

<div>
  <span>
    <table>
      <tr>
        <td>A1</td>
        <td>A2</td>
      </tr>
    </table>
  </span>
</div>

<hr />

<!-- these parents unfortunately do NOT work (unless you reorder the nodes) -->

<a href="/link">
  link content before
  <table>
    <tr>
      <td>A1</td>
      <td>A2</td>
    </tr>
  </table>
  link content after
</a>

<hr />

<a href="/link">
  <div>
    <blockquote>
      <table>
        <tr>
          <td>A1</td>
          <td>A2</td>
        </tr>
      </table>
    </blockquote>
  </div>
</a>

<hr />

<strong>
  bold content before
  <table>
    <tr>
      <td>A1</td>
      <td>A2</td>
    </tr>
  </table>
  bold content after
</strong>

<hr />

<i>
  <span>italic content before</span>
  <blockquote>
    blockquote content before
    <table>
      <tr>
        <td>A1</td>
        <td>A2</td>
      </tr>
    </table>
    blockquote content after
  </blockquote>
  <span>italic content after</span>
</i>

<hr />

<button>
  button content before
  <table>
    <tr>
      <td>A1</td>
      <td>A2</td>
    </tr>
  </table>
  button content after
</button>