You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is about creating a custom plugin that identifies internal and external type by string matching. Then it should wrap internal links with next Link component & for external links the link should open in a new tab.
Steps
Create a new file withNextLinks inside src/lib/mdx/rehype
Build an rehype plugin using visit function
Import the the plugin in getMdxComponents and enlist that plugin with rehypePlugins list
Screenshots
N/A
Additional Information
This feature will improve documentation experience. And will prevent unnecessary link opening and also will leverage the power of next Link component.
The text was updated successfully, but these errors were encountered:
Description
The issue is about creating a custom plugin that identifies internal and external type by string matching. Then it should wrap internal links with next
Link
component & for external links the link should open in a new tab.Steps
withNextLinks
insidesrc/lib/mdx/rehype
Screenshots
N/A
Additional Information
This feature will improve documentation experience. And will prevent unnecessary link opening and also will leverage the power of next Link component.
The text was updated successfully, but these errors were encountered: