chunpu / markdown2confluence

convert markdown to confluence markup
424 stars 84 forks source link

Fix nested list items #24

Open rhysd opened 6 years ago

rhysd commented 6 years ago

Problem

At first, create file as follows:

- item
  - nested

And run markdown2confluence.

I expected

* item
** nested

but actually got

* item* nested

It looked broken.

Solution

So I fixed the renderer code handling the nested list by looking the head of each line in list items. Now it returns expected output.

mihaeu commented 4 years ago

Can we get this merged please?

mihaeu commented 4 years ago

Actually nevermind, this breaks a lot of other use cases. Fix should be done using listitem I believe.