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

Do we have previewOptions with linkTarget: "_blank" in <MDEditor.Markdown source="value" /> #211

Closed
IntelligaiaVivek opened this issue Jul 21, 2021 · 3 comments

Comments

@IntelligaiaVivek
Copy link

IntelligaiaVivek commented Jul 21, 2021

Not able to open url on new tab while using <MDEditor.Markdown> for preview,
can we have url linkTarget on new tab in this preview ?

<MDEditor.Markdown
previewOptions={{
linkTarget: "_blank"
}}
source={value} />

@jaywcjlove
Copy link
Member

previewOptions={{
linkTarget: '_blank',
}}

@IntelligaiaVivek

<MDEditor.Markdown
  source={value}
  linkTarget="_blank"
  // previewOptions={{
  //   linkTarget: "_blank"
  // }}
/>

@jaywcjlove
Copy link
Member

@IntelligaiaVivek https://codesandbox.io/s/markdown-editor-for-react-izdd6?from-embed=&file=/index.js:951-1106

@IntelligaiaVivek
Copy link
Author

@jaywcjlove Awesome Thanks for quick reply :)

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