mirror of
https://github.com/kovetskiy/mark.git
synced 2026-04-18 12:11:12 +00:00
Add Confluence task list renderer for GFM task lists
Convert GFM task list items (- [x] / - [ ]) to Confluence ac:task-list XML format instead of HTML checkboxes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
5
testdata/tasklists-mixed.html
vendored
Normal file
5
testdata/tasklists-mixed.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<ul>
|
||||
<li>[x] task item</li>
|
||||
<li>regular item</li>
|
||||
<li>[ ] another task item</li>
|
||||
</ul>
|
||||
3
testdata/tasklists-mixed.md
vendored
Normal file
3
testdata/tasklists-mixed.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
- [x] task item
|
||||
- regular item
|
||||
- [ ] another task item
|
||||
17
testdata/tasklists.html
vendored
Normal file
17
testdata/tasklists.html
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<ac:task-list>
|
||||
<ac:task>
|
||||
<ac:task-id>1</ac:task-id>
|
||||
<ac:task-status>complete</ac:task-status>
|
||||
<ac:task-body>#739</ac:task-body>
|
||||
</ac:task>
|
||||
<ac:task>
|
||||
<ac:task-id>2</ac:task-id>
|
||||
<ac:task-status>incomplete</ac:task-status>
|
||||
<ac:task-body><a href="https://github.com/octo-org/octo-repo/issues/740">https://github.com/octo-org/octo-repo/issues/740</a></ac:task-body>
|
||||
</ac:task>
|
||||
<ac:task>
|
||||
<ac:task-id>3</ac:task-id>
|
||||
<ac:task-status>incomplete</ac:task-status>
|
||||
<ac:task-body>Add delight to the experience when all tasks are complete :tada:</ac:task-body>
|
||||
</ac:task>
|
||||
</ac:task-list>
|
||||
3
testdata/tasklists.md
vendored
Normal file
3
testdata/tasklists.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
- [x] #739
|
||||
- [ ] https://github.com/octo-org/octo-repo/issues/740
|
||||
- [ ] Add delight to the experience when all tasks are complete :tada:
|
||||
Reference in New Issue
Block a user