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

Behavior for links #548

Closed
mickey58github opened this issue May 31, 2024 · 2 comments
Closed

Behavior for links #548

mickey58github opened this issue May 31, 2024 · 2 comments

Comments

@mickey58github
Copy link

mickey58github commented May 31, 2024

Describe the issue

I like md-editor very much. I'm coming from a different Markdown processor, which opens links (in the preview section) in a new browser tab. I have a lot of links in my existing Markdown content. My users got used to opening them by default in a new browser tab.

Would it be possible to have this behavior to open links configurable in md-editor? The default could still be the current behavior, which opens a link in the same browser window. By option, it should be possible to get links opened in a new browser tab. This would require to generate the corresponding HTM for links withL with target="_blank", if this config option is chosen.

Thanks for looking into this.

Procedure version

Newest version

Reproduction link

No response

@imzbf
Copy link
Owner

imzbf commented May 31, 2024

I have an example that only requires a simple configuration: https://github.com/imzbf/md-editor-v3/blob/dev-docs/src/main.ts#L34

@imzbf imzbf closed this as completed May 31, 2024
@mickey58github
Copy link
Author

Thanks a lot! Addressed the issue by using this Link Attributes plugin. Wonderful!

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