Skip to content

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

Description

@thediveo

Description

With v4 I'm using the following to implement footnote handling in docsify:

window.$docsify={// ...markdown: function(marked,renderer){marked.setOptions({smartypants: true,renderer: Object.assign(renderer,{paragraph(text){returnmarked.Renderer.prototype.paragraph.apply(null,[interpolateReferences(interpolateFootnotes(text))])},text(text){returnmarked.Renderer.prototype.text.apply(null,[interpolateReferences(interpolateFootnotes(text))])},}),})returnmarked},// ...}

Expected behavior

Modified markdown rendering functionality to handle footnotes.

Actual behavior

v4 markdown handling configuration gets ignored in v5; the renderer methods get ignored.

Steps to reproduce

.

Environment

How to migrate this from v4->v5?

Additional Information

  • Bug still occurs when all/other plugins are disabled?

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

    Triagebugconfirmed as a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions