chunpu / markdown2confluence

convert markdown to confluence markup
424 stars 84 forks source link

Nested ordered lists don't convert correctly #3

Open hamx0r opened 8 years ago

hamx0r commented 8 years ago

This markdown:

1. First parent item
  1. first parent's child
  2. first parent's other child
2. Second parent item

...should render as:

# First parent item
## first parent's child
## first parent's other child
# Second parent item

...but instead renders as:

# First parent item
# # first parent's child
# # first parent's other child
# Second parent item

The extra space between the two #'s causes Confluence to not render as a nested list properly.

macca16 commented 7 years ago

https://github.com/chunpu/markdown2confluence/pull/4/ fixes the issue. Travis tests failing prior to the change I made.