squidfunk/mkdocs-material

Listing Issue (Number lists)

Closed this issue · 1 comments

Context

I was using MKDocs, and making a number list. Unsure if this is a Markdown issue or Material MKDocs issue though, but it seems to be on the MKDocs side.

Bug description

When making said number list, I inserted a code block in between the list, so it looks something like this:

  1. Step 1
  2. Step 2
Code Block I inserted
  1. Step 3

However, instead of rendering like the step above, it rendered like this:

  1. Step 1
  2. Step 2
Code Block I inserted
  1. Step 3

As you can see, the order breaks, and it defaults back to 1 when a code block is inserted through it.

Related links

Reproduction

9.5.38-zip.zip

Steps to reproduce

  1. I created a GitHub Repo and cloned it using a SSH Key
  2. Set up a Python Virtual Enviroment
python -m venv venv
source venv/bin/activate
  1. Installed Material for MKDocs, and opened it up in VSC
pip install mkdocs-material
code .
  1. Ran mkdocs new ., and mkdocs serve, before adding all my configurations.
  2. Created a number list as mentioned in the steps above.

Browser

No response

Before submitting

Thanks for reporting. This behavior stems from Python Markdown, not from Material for MkDocs. Please take this upstream.