Skip to content

Commit 566af8b

Browse files
committed
[FEATURE] Support math directive
resolves: #928 releases: main, 1.0
1 parent 3ddcbbd commit 566af8b

File tree

4 files changed

+117
-9
lines changed

4 files changed

+117
-9
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="hlist columns-{{ node.option('columns') }}">
2+
{{ renderNode(node.value) }}
3+
</div>
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!-- content start -->
2+
<div class="section" id="document-title">
3+
<h1>Document Title</h1>
4+
5+
<div class="hlist columns-">
6+
7+
8+
<ul>
9+
<li>A list of</li>
10+
11+
<li>short items</li>
12+
13+
<li>that should be</li>
14+
15+
<li>displayed</li>
16+
17+
<li>horizontally</li>
18+
19+
</ul>
20+
21+
</div>
22+
<div class="hlist columns-3">
23+
24+
25+
<ul>
26+
<li>A list of</li>
27+
28+
<li>short items</li>
29+
30+
<li>that should be</li>
31+
32+
<li>displayed</li>
33+
34+
<li>horizontally</li>
35+
36+
</ul>
37+
38+
</div>
39+
<div class="hlist columns-4">
40+
41+
42+
<ul>
43+
<li>A list of</li>
44+
45+
<li>short items</li>
46+
47+
<li>that should be</li>
48+
49+
<li>displayed</li>
50+
51+
<li>horizontally</li>
52+
53+
</ul>
54+
55+
</div>
56+
<div class="hlist columns-auto">
57+
58+
59+
<ul>
60+
<li>A list of</li>
61+
62+
<li>short items</li>
63+
64+
<li>that should be</li>
65+
66+
<li>displayed</li>
67+
68+
<li>horizontally</li>
69+
70+
</ul>
71+
72+
</div>
73+
</div>
74+
75+
<!-- content end -->
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
==============
2+
Document Title
3+
==============
4+
5+
.. hlist::
6+
7+
* A list of
8+
* short items
9+
* that should be
10+
* displayed
11+
* horizontally
12+
13+
.. hlist::
14+
:columns: 3
15+
16+
* A list of
17+
* short items
18+
* that should be
19+
* displayed
20+
* horizontally
21+
22+
.. hlist::
23+
:columns: 4
24+
25+
* A list of
26+
* short items
27+
* that should be
28+
* displayed
29+
* horizontally
30+
31+
32+
.. hlist::
33+
:columns: auto
34+
35+
* A list of
36+
* short items
37+
* that should be
38+
* displayed
39+
* horizontally

tests/Integration/tests/tables/list-table-directive/expected/index.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<title>table</title>
5-
6-
</head>
7-
<body>
81
<!-- content start -->
92
<div class="section" id="table">
103
<h1>table</h1>
@@ -71,5 +64,3 @@ <h1>table</h1>
7164
</div>
7265

7366
<!-- content end -->
74-
</body>
75-
</html>

0 commit comments

Comments
 (0)