Skip to content

do previous remark-stringify versions have options.resourceLink? #755

Answered by wooorm
stefanprobst asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm nope, indeed, it wasn’t there before.

You could create a custom plugin to define a “visitor”, which was the way to change how something serializes before:

this.Compiler.prototype.visitors.link = ...

And then something like https://github.com/remarkjs/remark/blob/remark-stringify%408.1.1/packages/remark-stringify/lib/visitors/link.js but w/o the first if branch.

Or maybe use https://www.npmjs.com/package/patch-package to change the old parser?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stefanprobst
Comment options

Answer selected by wooorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants