Skip to content

Markdown should not open links in the browser by default #5171

Open
@TomJGooding

Description

@TomJGooding

This was originally discussed in #5169, but I think warrants a new issue.

When running the Textual tests, I was a bit concerned when links started opening in my browser! This was due to a recent change where Markdown links will be opened with App.open_url automatically.

Thankfully those links such as test.md weren't malicious, but I think it raises significant concerns about the implications of potentially opening any *.md links automatically..

I understand that you're damned if you do and damned if you don't, where some users expect links to open in the browser by default. But I think this change should be re-evaluated given the security risks, especially when internal links in markdown are probably more common.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions