fastai / fastdoc

Create publication-quality books from Jupyter notebooks
https://fastai.github.io/fastdoc/
Apache License 2.0
231 stars 30 forks source link

Unexpected new line in numbered list #13

Open lewtun opened 3 years ago

lewtun commented 3 years ago

The asciidoc conversion for numbered lists sometimes introduces a new line that causes the resulting HTML / PDF to be incorrectly formatted.

For example, the following markdown cell


1. one
1. two
1. three
1. four
1. five
1. six

produces the following asciidoc output

. one
. two
. three
. four
. five
.
six

The new line before six causes this item to be treated as part of the fifth one

Screen Shot 2020-12-26 at 4 08 28 pm

Steps to reproduce

  1. Download the sample notebook fastdoc_numbered_list.ipynb from this gist and place it in some folder, e.g. book
  2. Run
    fastdoc_convert_all --path path/to/book --dest_path output

Environment details

fastdoc 0.0.2
pandoc 2.3.1