8000 ValueError occurs when mkdocs serve · Issue #4885 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

ValueError occurs when mkdocs serve #4885

@tasanuma

Description

@tasanuma

Context

No response

Bug description

When starting the server by mkdocs serve with mkdcoks-9.0.5, the following error occurred.

mkdocs serve --livereload
...
ERROR    -  Error building page 'test.md': '<li>' is not in list
Traceback (most recent call last):
  File "/.../venv/mkdocs/bin/mkdocs", line 10, in <module>
    ...
  File "/.../venv/mkdocs/lib/python3.8/site-packages/material/plugins/search/plugin.py", line 448, in handle_endtag
    index = data.index(f"<{tag}>")
ValueError: '<li>' is not in list

After reverting 6825734, the error doesn't occur.

Related links

Reproduction

example.zip

Steps to reproduce

  1. an article includes a list of a heading.
- #foo
  1. starting the server

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0