forked from jgm/pandoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes jgm#3051
- Loading branch information
Showing
6 changed files
with
157 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
tests adapted from <https://github.github.com/gfm/#task-list-items-extension-> | ||
|
||
``` | ||
% pandoc | ||
- [ ] foo | ||
- [x] bar | ||
^D | ||
<ul> | ||
<li><input type="checkbox" disabled="" /> | ||
foo</li> | ||
<li><input type="checkbox" disabled="" checked="" /> | ||
bar</li> | ||
</ul> | ||
``` | ||
|
||
|
||
``` | ||
% pandoc | ||
- [x] foo | ||
- [ ] bar | ||
- [x] baz | ||
- [ ] bim | ||
^D | ||
<ul> | ||
<li><input type="checkbox" disabled="" checked="" /> | ||
foo<ul> | ||
<li><input type="checkbox" disabled="" /> | ||
bar</li> | ||
<li><input type="checkbox" disabled="" checked="" /> | ||
baz</li> | ||
</ul></li> | ||
<li><input type="checkbox" disabled="" /> | ||
bim</li> | ||
</ul> | ||
``` | ||
|
||
|
||
custom html task list test: | ||
|
||
``` | ||
% pandoc | ||
- [ ] unchecked | ||
- plain item | ||
- [x] checked | ||
paragraph | ||
1. [ ] ordered unchecked | ||
2. [] plain item | ||
3. [x] ordered checked | ||
paragraph | ||
- [ ] list item with a | ||
second paragraph | ||
- [x] checked | ||
^D | ||
<ul> | ||
<li><input type="checkbox" disabled="" /> | ||
unchecked</li> | ||
<li>plain item</li> | ||
<li><input type="checkbox" disabled="" checked="" /> | ||
checked</li> | ||
</ul> | ||
<p>paragraph</p> | ||
<ol type="1"> | ||
<li><input type="checkbox" disabled="" /> | ||
ordered unchecked</li> | ||
<li>[] plain item</li> | ||
<li><input type="checkbox" disabled="" checked="" /> | ||
ordered checked</li> | ||
</ol> | ||
<p>paragraph</p> | ||
<ul> | ||
<li><p><input type="checkbox" disabled="" /> | ||
list item with a</p><p>second paragraph</p></li> | ||
<li><p><input type="checkbox" disabled="" checked="" /> | ||
checked</p></li> | ||
</ul> | ||
``` | ||
|
||
latex task list test: | ||
|
||
``` | ||
% pandoc -t latex | ||
- [ ] foo bar | ||
baz | ||
- [x] ok | ||
^D | ||
\begin{itemize} | ||
\item[$\square$] | ||
foo bar | ||
baz | ||
\item[$\boxtimes$] | ||
ok | ||
\end{itemize} | ||
``` |