I'm creating a blog using Next.js
+ MDX-Bundler
and using rehype plugins to add additonal content to my .html
file from .mdx
. But I noticed that if I have a plain-text url, it doesn't get converted to an anchor tag. I also found a reference mentioning that rehype doesn't do that.
But is there a way to do it?
This is possible in most of the popular website which take markdown input. Even this question in stack-overflow is based on markdown. If I enter a URL like this(https://google.com/ or http://www.google.com/), it gets converted to a URL in the preview. How to get similar functionality when converting mdx file into blog posts.