40ants / 40ants/commondoc-markdown

Fix nested lists rendering

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Common Lisp
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

In case if list item contains a few paragraphs, second and following paragraphs are rendered without a padding:

```lisp
CL-USER> (common-doc.format:emit-document
(make-instance 'commondoc-markdown:markdown)
(common-doc:make-unordered-list
(list (common-doc:make-list-item
(list (common-doc:make-paragraph
(common-doc:make-text "Foo"))
(common-doc:make-paragraph
(common-doc:make-text "Bar"))))))
t)
* Foo

Bar
```

Expected result is:

```
* Foo

Bar
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.