Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Continue indentend bullet point list after code block
Avatar
kira_resari #1
Member since Jun 2018 · 19 posts
Group memberships: Members
Show profile · Link to this post
Subject: Continue indentend bullet point list after code block
Hi everyone,

I commonly run into the following use case:

I want to create a multi-leveled bullet point list and add code blocks in the middle, as such

  * Bullet Point Level 1
  * Bullet Point Level 1
    * Bullet Point Level 2
      * Bullet Point Level 3
      * Bullet Point Level 3
<code>
some code
</code>
      * Bullet Point Level 3
      * Bullet Point Level 3
  * Bullet Point Level 1
    * Bullet Point Level 2
  * Bullet Point Level 1

However, the problem is that after the code block, no matter by how much I indent the bullet point, it always restarts at level 1, so the list instead ends up looking like this:

  * Bullet Point Level 1
  * Bullet Point Level 1
    * Bullet Point Level 2
      * Bullet Point Level 3
      * Bullet Point Level 3
some code
  * Bullet Point Level 1 (Should be Level 3)
  * Bullet Point Level 1 (Should be Level 3)
  * Bullet Point Level 1
  * Bullet Point Level 1 (Should be Level 2)
  * Bullet Point Level 1

Is there anything I can do to enforce having the bullet points at the levels where they should be?

Thanks in advance,
Kira
This post was edited on 2018-08-17, 07:49 by kira_resari.
Avatar
Aleksandr #2
Member since Mar 2010 · 529 posts · Location: Volgograd, Russia
Group memberships: Members
Show profile · Link to this post
Hi, Kira!

It's very easy.

  * Bullet Point Level 1
  * Bullet Point Level 1
    * Bullet Point Level 2
      * Bullet Point Level 3
      * Bullet Point Level 3<code>
some code
</code>
      * Bullet Point Level 3
      * Bullet Point Level 3
  * Bullet Point Level 1
    * Bullet Point Level 2
  * Bullet Point Level 1

(playground?rev=1534484178)
ru: Пожалуйста, избегайте избыточного цитирования.
en: Don’t use an overquoting, please.
Avatar
kira_resari #3
Member since Jun 2018 · 19 posts
Group memberships: Members
Show profile · Link to this post
Thanks Aleksandr!

Yes, this is exactly the behavior I've intended. It's easy if you know how to do it, but since it's not documented anywhere it has bbeen a thorn in my side up until now. Maybe it should be added to the syntax#lists page? I know I am adding it in my instance.

Anyway, many thanks again for the help!

Cheers,
Kira
=^,^=
Avatar
pop #4
Member since Nov 2016 · 49 posts
Group memberships: Members
Show profile · Link to this post
see: https://www.dokuwiki.org/faq%3Alists
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-12-16, 07:06:36 (UTC +01:00)