Skip to content

URL's with trailing slashes are not recognized #2047

Closed

Description

@eagleofnorth

Description

Mark Text does not always make URL's clickable when the URL has a trailing slash.

Steps to reproduce

  1. Open an empty document in Mark Text
  2. Paste (or type) the following text:
# Link testing

https://www.google.com/

https://www.google.com

https://www.google.com/

Expected behavior:

All three links should be recognized by Mark Text as URL's and be clickable.

Actual behavior:

Only the 2nd link is clickable.

Versions

  • Mark Text: 0.16.1
  • Operating system: W10

Activity

  1. changed the title [-]URL's with tailing slashes are not recognized[/-] [+]URL's with trailing slashes are not recognized[/+] on Apr 16, 2020
  2. YaFou commented on Apr 16, 2020

    @YaFou

    I have no problem to open the links. The tree links work on my computer. Maybe your tab is opening in background and you need to check on your browser manually.

  3. eagleofnorth commented on Apr 16, 2020

    @eagleofnorth
    Author
  4. YaFou commented on Apr 16, 2020

    @YaFou

    Yes, you've right @eagleofnorth. I used [Google](https://google.com) instead of https://google.com. This is strange, I think it's just a problem in the matcher to create links.

  5. eagleofnorth commented on Apr 16, 2020

    @eagleofnorth
    Author

    Thanks @YaFou. Not a big problem and I probably should use proper Markdown syntax for links anyway.

  6. YaFou commented on Apr 16, 2020

    @YaFou

    Yes, @eagleofnorth. You can avoid the problem by writing this: [https://google.com](https://google.com/).

  7. added
    🐛 bug
    🐮 good first issue
    on Jun 6, 2020
  8. sweetliquid commented on Oct 10, 2020

    @sweetliquid
    Contributor

    I am willing to solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐮 good first issue🐛 bug🔭 area/muya

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions