Skip to content

An md file, or notebook cell, ending in a blockquote with a blank line, causes a crash #185

Closed
@fperez

Description

@fperez

Describe the bug

Consider a notebook that contains the following cell:

> test
>

or a markdown file with the above. The key point is that the cell/markdown content must end with a blockquote that has a blank line at the end, still part of the block quote. The python short traceback is (I'll attach the long one):

Exception occurred:
  File "/Users/fperez/local/conda/lib/python3.9/site-packages/markdown_it/rules_block/blockquote.py", line 158, in blockquote
    if state.srcCharCode[pos] == 0x20:  # /* space */
IndexError: tuple index out of range

Reproduce the bug

Running a build with a notebook with the above (or an md file) should suffice.

List your environment

> jupyter-book --version
Jupyter Book      : 0.11.3
External ToC      : 0.2.3
MyST-Parser       : 0.13.7
MyST-NB           : 0.12.3
Sphinx Book Theme : 0.1.10
Jupyter-Cache     : 0.4.3
NbClient          : 0.5.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions