bpj / pandoc-list-table

Pandoc filter which converts lists-of-lists <--> tables
Other
15 stars 0 forks source link

table2lol: ul instead of ol #2

Closed mustafa0x closed 2 years ago

mustafa0x commented 2 years ago

Very useful filter, thank you. Alleviates the pain of markdown's finicky table syntax.

Is there a way to have table2lol output something like

*   -   foo
    -   bar
    -   baz
bpj commented 2 years ago

Not currently, because I have found that it is much easier to keep track of which cell a list item corresponds to with ordered lists.

How does this inconvenience you? Note that the list markers in an ordered list need not be in correct sequence. You can use 0. or even #. everywhere when you change/add lists. It doesn't affect the resulting table in any way. If you want to use the list as a list in your output you can use a filter to convert ordered lists (in a certain div) to bullet lists. Just run that filter after this filter.

mustafa0x commented 2 years ago

Ah, ok. Just for consistency with the hand-written lists of lists tables I wrote.

I wrote a few regexes as a workaround for now.