do previous remark-stringify versions have options.resourceLink? #755
-
with the current does a similar option exist for previous remark versions as well? i could not find it in this list. for context: the markdown widget in netlify-cms uses an older version of remark, and i'm trying to teach it to not trying to stringify links as autolinks if possible, so there's one less issue with rendering the content with xdm. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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:
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 Or maybe use https://www.npmjs.com/package/patch-package to change the old parser? |
Beta Was this translation helpful? Give feedback.
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:
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?