This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Uses react-markdown w/ rehype-external-links to demo how to parse markdown | |
* so that the links open in a new tab as external links in your react application. | |
* React-markdown use to have a property that would allow you | |
* to require all links be opened in a new tab but they deprecated it and moved | |
* to a more pluggable architecture using rehype and remark. The plugin required | |
* for react-markdown is rehype-external-links but the documentation doesn't | |
* explain how to use it with react-markdown. Thus here is an example: | |
* | |
* you can find it here https://www.npmjs.com/package/react-markdown - |
OlderNewer