diff --git a/README.org b/README.org index ddfed79..eac45db 100644 --- a/README.org +++ b/README.org @@ -10,15 +10,7 @@ Take a look at [[https://niklasfasching.github.io/go-org/][github pages]] for so - see [[https://github.com/kaushalmodi/ox-hugo/blob/8472cf2d8667754c9da3728255634e8001a1da6d/ox-hugo.el#L1785-L1850][ox-hugo]] for auto generation - improve list parsing - handle list items with empty first line - - handle checkboxes & statistic cookies - handle ordered list overrides [@10] -** TODO list checkboxes & statistics [0/2] -https://orgmode.org/manual/Checkboxes.html -1. [ ] parse checkbox of list item - - convert to html radio button unchecked, indeterminate (visual only), checked -2. [ ] parse statistic cookies of headlines & first line of list items - -convert to =[sub 11⁄2] || [90%]= - * differences to goorgeous To get a feeling take a look at goorgeous vs go-org html rendering of the examples [[https://niklasfasching.github.io/go-org/go-org-vs-goorgeous][comparison]]. Please note that a visual comparison is not fair to goorgeous as the stylesheet is not adapted to it. diff --git a/org/html.go b/org/html.go index be5a965..176b968 100644 --- a/org/html.go +++ b/org/html.go @@ -34,6 +34,12 @@ var listTags = map[string][]string{ "descriptive": []string{"
[1/2]
-[X] checked +checked
-[ ] unchecked +unchecked
unordered list item 1
@@ -9,22 +9,22 @@ unordered list item 1 unordered list item 2 - withinline
markup
ordered sublist item 1
ordered sublist item 1
ordered sublist item 2
ordered sublist item 3
@@ -38,7 +38,7 @@ ordered sublist item 2unordered list item 3 - and a link and some lines of text @@ -95,20 +95,20 @@ that spans multiple lines descriptive lists
details continued details
details without a term
details on a new line diff --git a/org/testdata/lists.org b/org/testdata/lists.org index 43d0627..13948d7 100644 --- a/org/testdata/lists.org +++ b/org/testdata/lists.org @@ -1,11 +1,11 @@ -- unordered list item 1 +- [ ] unordered list item 1 - unordered list item 2 - with ~inline~ /markup/ - 1. ordered sublist item 1 - a) ordered sublist item 1 - b) ordered sublist item 2 - c) ordered sublist item 3 + 1. [-] ordered sublist item 1 + a) [X] ordered sublist item 1 + b) [ ] ordered sublist item 2 + c) [X] ordered sublist item 3 2. ordered sublist item 2 -- unordered list item 3 - and a [[https://example.com][link]] +- [X] unordered list item 3 - and a [[https://example.com][link]] and some lines of text 1. and another subitem #+BEGIN_SRC sh @@ -24,10 +24,10 @@ descriptive lists -- term :: details +- [ ] term :: details continued details -- details without a term -- term :: +- [ ] details without a term +- [X] term :: details on a new line - term ::