List Marker & Check Box Inconsistency

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

List Marker & Check Box Inconsistency

weezair
I'm not sure, but I may have stumbled upon a list maker / bullet issue.

Specifically, list markers (aka bullets) do not rendering consistently when mixed with list items that have check boxes.  The list markers do not show in some instances.

I'm seeing this in both the atom editor asciidoctor preview (latest version) and Asciidoctor 2.0.10, AsciiDocFX 1.7.1, as well as when using Asciidoctor PDF 1.5.3 to output.  See below examples with the results I see in parenthesis.  The numbers are there just for tracking the example.  The list is unordered.

* List Item 1 (No marker? - what happened?)
* [ ] Checklist Item 2 - (Good checkbox)
** List Item 2.1 - (Good marker)
** List Item 2.2 - (Good marker)
* [ ] Checklist Item 3 - (Good checkbox)
* List Item 4 - (No marker error?)
** List Item 4.1 - (Good marker)
** List Item 4.2 - (Good marker)

New list:

* List Item 5 (Good marker)
** List Item 5.1
** List Item 5.2

New List 2:

* [ ] Checklist Item 6 (Good checkbox)
* [ ] Checklist Item 7 (Good checkbox)
** [ ] Checklist Item 7.1 (Good checkbox)
** [ ] Checklist Item 7.2 (Good checkbox)
** List Item 7.3 (No marker error?)
** List Item 7.4 (No marker error?)
* List Item 8 (No marker error?)



Any help is appreciated.  Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: List Marker & Check Box Inconsistency

Esben
When I run

* List Item 1 (No marker? - what happened?)
* [ ] Checklist Item 2 - (Good checkbox)
** List Item 2.1 - (Good marker)
** List Item 2.2 - (Good marker)
* [ ] Checklist Item 3 - (Good checkbox)
* List Item 4 - (No marker error?)
** List Item 4.1 - (Good marker)
** List Item 4.2 - (Good marker)

Through Asciidoctor, I get this HTML

"<div class="ulist checklist">
<ul class="checklist">
<li>
<p>List Item 1 (No marker? - what happened?)</p>
</li>
<li>
<p>❏ Checklist Item 2 - (Good checkbox)</p>
<div class="ulist">
<ul>
<li>
<p>List Item 2.1 - (Good marker)</p>
</li>
<li>
<p>List Item 2.2 - (Good marker)</p>
</li>
</ul>
</div>
</li>
<li>
<p>❏ Checklist Item 3 - (Good checkbox)</p>
</li>
<li>
<p>List Item 4 - (No marker error?)</p>
<div class="ulist">
<ul>
<li>
<p>List Item 4.1 - (Good marker)</p>
</li>
<li>
<p>List Item 4.2 - (Good marker)</p>
</li>
</ul>
</div>
</li>
</ul>
</div>"

The "bad markers" are clearly list-items (enclosed in <li> tags), so the whole list is still recognized as a list - but the the list get's an extra CSS-class called 'checklist'

<div class="ulist checklist">.
<ul class="checklist">

So I think that you need to look in the CSS for class 'checklist' - and change the numbering style there.
Reply | Threaded
Open this post in threaded view
|

Re: List Marker & Check Box Inconsistency

mojavelinux
Administrator
In reply to this post by weezair
If you want an item to have a checkbox, either checked or unchecked, you must use the checkbox syntax. Otherwise, it's treated as a normal list item.

So it needs to look like this:

* [x] Checklist Item 6
* [x] Checklist Item 7
** [x] Checklist Item 7.1
** [x] Checklist Item 7.2
** [ ] List Item 7.3
** [ ] List Item 7.4
* [ ] List Item 8

In other words, the language allows you to mix checklist items with non-checklist items.

Best Regards,

-Dan

--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: List Marker & Check Box Inconsistency

David Jencks
The part I just realized is that in a checklist, the checkbox (checked or not) is the list marker, so if you leave the checkbox out, you’ll get an unmarked list item, as observed.

David Jencks

On Dec 5, 2020, at 4:26 AM, mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:

If you want an item to have a checkbox, either checked or unchecked, you must use the checkbox syntax. Otherwise, it's treated as a normal list item.

So it needs to look like this:

* [x] Checklist Item 6
* [x] Checklist Item 7
** [x] Checklist Item 7.1
** [x] Checklist Item 7.2
** [ ] List Item 7.3
** [ ] List Item 7.4
* [ ] List Item 8

In other words, the language allows you to mix checklist items with non-checklist items.

Best Regards,

-Dan

--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/List-Marker-Check-Box-Inconsistency-tp8371p8382.html
To start a new topic under Asciidoctor :: Discussion, [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: List Marker & Check Box Inconsistency

mojavelinux
Administrator

On Sat, Dec 5, 2020 at 9:55 AM David Jencks [via Asciidoctor :: Discussion] <[hidden email]> wrote:
The part I just realized is that in a checklist, the checkbox (checked or not) is the list marker, so if you leave the checkbox out, you’ll get an unmarked list item, as observed.

That's correct. The default stylesheet disables the list item marker for the list. So an item with no checkbox will not have a marker at all. If you want a different appearance, you can augment or replace the stylesheet.

Best Regards,

-Dan


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: List Marker & Check Box Inconsistency

weezair
Alrighty, so I need to extend the css.  I'll give it a shot.  

Thank you very much for the feedback.

Reply | Threaded
Open this post in threaded view
|

Re: List Marker & Check Box Inconsistency

mojavelinux
Administrator
If you feel that your update looks better than the default stylesheet, feel free to submit a proposal to the project to change it and I'll certainly consider it. If we can all agree it looks better, I'm all for it.

Best Regards,

-Dan

On Sat, Dec 5, 2020 at 4:06 PM weezair [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Alrighty, so I need to extend the css.  I'll give it a shot.  

Thank you very much for the feedback.




If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/List-Marker-Check-Box-Inconsistency-tp8371p8386.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: List Marker & Check Box Inconsistency

weezair
Will do.  Thanks again.