Nbconvert: <ol> start value not preserved when converting to HTML

Created on 3 Aug 2019  路  3Comments  路  Source: jupyter/nbconvert

I have an ordered list that spans multiple cells in a Jupyter Notebook. While it's listed just fine in Jupyter (e.g. 1,2,3,4...) when I export to HTML each list item starts at one (e.g. 1, 1, 1, 1...). I looked into a little and it seems the "start" value for the ol in Jupyter isn't being preserved when I convert. See this screenshot:

image

I am running the latest version of nbconvert. Just installed it.

I don't know if this is a bug, or if there's an easy fix, but I thought I'd put it out there. Thanks!

HTML help wanted

Most helpful comment

Apparently mistune has been rewritten from scratch and the rewrite addresses this, but there is no release yet.

All 3 comments

This is actually an issue in the Markdown parser mistune. I filed lepture/mistune#206 for this.

Apparently mistune has been rewritten from scratch and the rewrite addresses this, but there is no release yet.

mistune has 2.0.0 pre-releases out, if you want to look into this.

I believe @lepture had mentioned in #1074 that they'd be interested in patching nbconvert for the new API.

Was this page helpful?
0 / 5 - 0 ratings