Skip to content

Request: New Release to Include BeautifulSoup Deprecation Fix #120

Description

@omarirfa

Summary

PR #119 successfully fixed the BeautifulSoup replaceWith deprecation warning, but users installing from PyPI are still experiencing this warning because the fix hasn't been released yet.

Current Situation

  • Fixed in code: PR bug: fixing replaceWith depreciation #119 merged successfully ✅
  • PyPI version: 1.2.1 (still contains old replaceWith() code) ❌
  • User impact: Everyone installing via pip install mkdocs-mermaid2-plugin still gets deprecation warnings

The Warning Users See

DeprecationWarning: Call to deprecated method replaceWith. (Replaced by replace_with) -- Deprecated since version 4.0.0.
  File "mkdocs_revision\standalone_mkdocs\venv\lib\site-packages\mermaid2\plugin.py", line 257, in on_post_page
    tag.parent.replaceWith(new_tag)

Request

Could you please cut a new release (v1.2.2 or v1.3.0) that includes the fix from PR #119?

Workaround (for others experiencing this in the meantime)

Until a new release is available, users can install directly from master:

uv pip uninstall mkdocs-mermaid2-plugin
uv pip install git+https://github.com/fralau/mkdocs-mermaid2-plugin.git

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedThe issue is fixed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions