Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[]()渲染问题 #175

Closed
kimmy-wang opened this issue May 25, 2021 · 2 comments
Closed

[]()渲染问题 #175

kimmy-wang opened this issue May 25, 2021 · 2 comments

Comments

@kimmy-wang
Copy link

kimmy-wang commented May 25, 2021

react-md-editor中,使用[]()渲染成的超链接,点击后会在当前页面展示,不会在新的标签页面展示.如何设置在新的标签页面展示呢?
react-markdown中的linkTarget属性被你忽略掉了

@jaywcjlove
Copy link
Member

@realkimmy

import MDEditor from '@uiw/react-md-editor';

<MDEditor
  previewOptions={{
    linkTarget:"_blank"
  }}
/>

@kimmy-wang
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants