-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Open
Labels
Description
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) {
return marked.Renderer.prototype.paragraph.apply(null, [
interpolateReferences(interpolateFootnotes(text))
])},
text(text) {
return marked.Renderer.prototype.text.apply(null, [
interpolateReferences(interpolateFootnotes(text))
])},
}),
})
return marked
},
// ...
}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?
Reactions are currently unavailable