clockoon / dokuwiki-plugin-commonmark

Commonmark plugin for Dokuwiki
https://www.dokuwiki.org/plugin:commonmark
8 stars 3 forks source link

Multi paragraph list items #27

Open navhaxs opened 1 year ago

navhaxs commented 1 year ago

Hey @clockoon! 👋🏼

Thanks for writing this plugin, I've been trying it out these past few days :) I have a question about numbered lists. Is it possible to support multi paragraph list items?

For example:

  1. Option one
    Second paragraph

  2. Option two
    Second paragraph

(also see https://meta.stackexchange.com/a/192898)

I tried this exact syntax with the plugin, but it didn't render with the newlines:

image

image

Also, could nested lists be supported (if not a limitation of DokuWiki)?

  1. Item one a. Sub item
  2. Item two a. Another sub item
clockoon commented 1 year ago

Hello, I have committed d146ea9 for hardbreak support test. I checked several sample texts including yours, but there will be some conflicts in other cases. If no error has occured, I will include the modification in next version.

navhaxs commented 1 year ago

Awesome! I've applied that branch onto my install and will test, so far so good 👍🏼