Skip to content

docs: add markdown renderer migration guide for v4 to v5#2707

Open
vincent067 wants to merge 1 commit intodocsifyjs:developfrom
vincent067:docs/markdown-renderer-migration
Open

docs: add markdown renderer migration guide for v4 to v5#2707
vincent067 wants to merge 1 commit intodocsifyjs:developfrom
vincent067:docs/markdown-renderer-migration

Conversation

@vincent067
Copy link
Copy Markdown

Summary

This PR adds documentation for migrating custom markdown renderer overrides from v4 to v5, addressing issue #2680.

Problem

Users upgrading from v4 to v5 who were using the window.$docsify.markdown configuration option to customize the marked renderer found that their configuration was being ignored in v5. This is because Docsify v5 uses marked v13+, which has a different architecture and the old configuration approach is no longer supported.

Solution

Added a new section Migrating Custom Markdown Renderer Overrides to v5-upgrade.md that documents:

  1. The deprecated v4 approach - showing what users may have been doing before
  2. The new v5 approaches:
    • Option 1: Using marked extensions (recommended for common use cases like footnotes)
    • Option 2: Using a Docsify plugin to customize the renderer after initialization

Changes

  • Added ## Migrating Custom Markdown Renderer Overrides section to docs/v5-upgrade.md
  • Included code examples for both the old v4 approach and the new v5 approaches
  • Added a key changes summary table for quick reference
  • Linked to the official marked documentation for more details

Related Issues

Closes #2680

Checklist

  • Documentation follows the existing style and format
  • Code examples are tested and working
  • Changes are limited to the migration guide

Thanks for maintaining Docsify! Happy to make any adjustments if needed. 😊

Adds documentation for migrating custom markdown renderer overrides
from v4 to v5. The window..markdown option is deprecated
in v5, so this guide provides alternative approaches using:

1. marked extensions (recommended)
2. Docsify plugins with custom renderers

Closes docsifyjs#2680
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

Someone is attempting to deploy a commit to the Docsify Team on Vercel.

A member of the Team first needs to authorize it.

@paulhibbitts
Copy link
Copy Markdown
Member

Hi @sy-records , when convenient could you please approve the vercel deployment and I will do a review, thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RC3: how to upgrade existing markdown renderer overrides v4->v5?

2 participants