File tree Expand file tree Collapse file tree 6 files changed +124
-34
lines changed Expand file tree Collapse file tree 6 files changed +124
-34
lines changed Original file line number Diff line number Diff line change @@ -528,11 +528,13 @@ def render_table_row(self, token):
528
528
with self .current_node_context (row , append = True ):
529
529
for child in token .children :
530
530
entry = nodes .entry ()
531
+ para = nodes .paragraph ("" )
531
532
style = child .attrGet ("style" ) # i.e. the alignment when using e.g. :--
532
533
if style :
533
534
entry ["classes" ].append (style )
534
535
with self .current_node_context (entry , append = True ):
535
- self .render_children (child )
536
+ with self .current_node_context (para , append = True ):
537
+ self .render_children (child )
536
538
537
539
def render_math_inline (self , token ):
538
540
content = token .content
Original file line number Diff line number Diff line change @@ -285,15 +285,19 @@ table (`sphinx.directives.patches.RSTTable`):
285
285
<thead>
286
286
<row>
287
287
<entry>
288
- a
288
+ <paragraph>
289
+ a
289
290
<entry>
290
- b
291
+ <paragraph>
292
+ b
291
293
<tbody>
292
294
<row>
293
295
<entry>
294
- 1
296
+ <paragraph>
297
+ 1
295
298
<entry>
296
- 2
299
+ <paragraph>
300
+ 2
297
301
.
298
302
299
303
--------------------------------
Original file line number Diff line number Diff line change 13
13
<thead>
14
14
<row>
15
15
<entry>
16
- a
16
+ <paragraph>
17
+ a
17
18
<entry>
18
- b
19
+ <paragraph>
20
+ b
19
21
<tbody>
20
22
<row>
21
23
<entry>
22
- 1
24
+ <paragraph>
25
+ 1
23
26
<entry>
24
- 2
27
+ <paragraph>
28
+ 2
25
29
.
26
30
27
31
--------------------------
@@ -40,19 +44,25 @@ a | b | c
40
44
<thead>
41
45
<row>
42
46
<entry classes="text-align:left">
43
- a
47
+ <paragraph>
48
+ a
44
49
<entry classes="text-align:center">
45
- b
50
+ <paragraph>
51
+ b
46
52
<entry classes="text-align:right">
47
- c
53
+ <paragraph>
54
+ c
48
55
<tbody>
49
56
<row>
50
57
<entry classes="text-align:left">
51
- 1
58
+ <paragraph>
59
+ 1
52
60
<entry classes="text-align:center">
53
- 2
61
+ <paragraph>
62
+ 2
54
63
<entry classes="text-align:right">
55
- 3
64
+ <paragraph>
65
+ 3
56
66
.
57
67
58
68
--------------------------
@@ -70,18 +80,54 @@ Nested syntax:
70
80
<thead>
71
81
<row>
72
82
<entry>
73
- <emphasis>
83
+ <paragraph>
84
+ <emphasis>
85
+ a
86
+ <entry>
87
+ <paragraph>
88
+ <strong>
89
+ <emphasis>
90
+ b
91
+ <tbody>
92
+ <row>
93
+ <entry>
94
+ <paragraph>
95
+ <math>
96
+ 1
97
+ <entry>
98
+ <paragraph>
99
+ <subscript>
100
+ x
101
+ .
102
+
103
+ --------------------------
104
+ External links:
105
+ .
106
+ a|b
107
+ | -| -|
108
+ [ link-a] ( https://www.google.com/ ) |[ link-b] ( https://www.python.org/ )
109
+ .
110
+ <document source =" notset " >
111
+ <table classes="colwidths-auto">
112
+ <tgroup cols="2">
113
+ <colspec colwidth="50.0">
114
+ <colspec colwidth="50.0">
115
+ <thead>
116
+ <row>
117
+ <entry>
118
+ <paragraph>
74
119
a
75
120
<entry>
76
- <strong>
77
- <emphasis>
78
- b
121
+ <paragraph>
122
+ b
79
123
<tbody>
80
124
<row>
81
125
<entry>
82
- <math>
83
- 1
126
+ <paragraph>
127
+ <reference refuri="https://www.google.com/">
128
+ link-a
84
129
<entry>
85
- <subscript>
86
- x
130
+ <paragraph>
131
+ <reference refuri="https://www.python.org/">
132
+ link-b
87
133
.
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ $$c=2$$ (eq:label)
43
43
| a | b |
44
44
| -----| --:|
45
45
| * a* | 2 |
46
+ | [ link-a] ( https://google.com ) | [ link-b] ( https://python.org ) |
46
47
47
48
this
48
49
is
Original file line number Diff line number Diff line change @@ -104,22 +104,46 @@ <h1>
104
104
< thead >
105
105
< tr class ="row-odd ">
106
106
< th class ="head ">
107
- a
107
+ < p >
108
+ a
109
+ </ p >
108
110
</ th >
109
111
< th class ="text-align:right head ">
110
- b
112
+ < p >
113
+ b
114
+ </ p >
111
115
</ th >
112
116
</ tr >
113
117
</ thead >
114
118
< tbody >
115
119
< tr class ="row-even ">
116
120
< td >
117
- < em >
118
- a
119
- </ em >
121
+ < p >
122
+ < em >
123
+ a
124
+ </ em >
125
+ </ p >
126
+ </ td >
127
+ < td class ="text-align:right ">
128
+ < p >
129
+ 2
130
+ </ p >
131
+ </ td >
132
+ </ tr >
133
+ < tr class ="row-odd ">
134
+ < td >
135
+ < p >
136
+ < a class ="reference external " href ="https://google.com ">
137
+ link-a
138
+ </ a >
139
+ </ p >
120
140
</ td >
121
141
< td class ="text-align:right ">
122
- 2
142
+ < p >
143
+ < a class ="reference external " href ="https://python.org ">
144
+ link-b
145
+ </ a >
146
+ </ p >
123
147
</ td >
124
148
</ tr >
125
149
</ tbody >
Original file line number Diff line number Diff line change 56
56
<thead >
57
57
<row >
58
58
<entry >
59
- a
59
+ <paragraph >
60
+ a
60
61
<entry classes =" text-align:right" >
61
- b
62
+ <paragraph >
63
+ b
62
64
<tbody >
63
65
<row >
64
66
<entry >
65
- <emphasis >
66
- a
67
+ <paragraph >
68
+ <emphasis >
69
+ a
70
+ <entry classes =" text-align:right" >
71
+ <paragraph >
72
+ 2
73
+ <row >
74
+ <entry >
75
+ <paragraph >
76
+ <reference refuri =" https://google.com" >
77
+ link-a
67
78
<entry classes =" text-align:right" >
68
- 2
79
+ <paragraph >
80
+ <reference refuri =" https://python.org" >
81
+ link-b
69
82
<paragraph >
70
83
this
71
84
You can’t perform that action at this time.
0 commit comments