Skip to content

How to resolve links in markdown #558

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

You must be logged in to vote

remark gives you a syntax tree. You can transform that syntax tree with plugins: https://unifiedjs.com/learn/guide/create-a-plugin/.

Here is an example of a plugin where I rewrite URLs from markdown in readmes on GitHub, so that it can be displayed on unifiedjs.com: https://github.com/unifiedjs/unifiedjs.github.io/blob/src/generate/plugin/rehype-resolve-urls.js.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ChristianMurphy
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