Skip to content

Mixing incremental and non-incremental lists of different types in markdown #11653

@InsanePrawn

Description

@InsanePrawn

[whoops, I guess this should've gone into Discussions first]

Describe your proposed improvement and the problem it solves.

I'd like to have syntax for mixing incremental lists with non-incremental sublists for md -> beamer pdf.

This is not a duplicate of #3269 as I'm explicitly talking about mixing lists of different kinds.

For example:

# my awesome slide

::: incremental

1. foo
    - foo is pretty good
    - foo also has some issues
1. bar
    - bar is also a viable candidate
    - bar is quite costly

:::

I'd like some syntax to express that the outer numbered list is to be shown incrementally, while the inner bulleted lists show their content non-incrementally, once their numeric entry is revealed.

I haven't touched raw LaTeX in a couple years, but i think/suppose that Beamer can do this. (?)

Now, as to what that syntax would look like, i'm not sure.

As I'm not familiar with the inner workings of pandoc, i can make some guesses to possible syntax solutions without any estimates of technical feasability.

Maybe optional parameters to ::: [non]incremental could help here?

e.g.:

  1. ::: incremental recursive=false
  2. ::: incremental depth=1

Describe alternatives you've considered.

I tried nesting ::nonincremental blocks inside the numbered list, but that mostly seemed to break the list.
But maybe that was a skill issue on my end?

I did not try any inline LaTeX. If there's a few lines that can already solve this, I'm all ears :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions