outline / rich-markdown-editor

The open source React and Prosemirror based markdown editor that powers Outline. Want to try it out? Create an account:
https://www.getoutline.com
BSD 3-Clause "New" or "Revised" License
2.87k stars 588 forks source link

The editor interprets links without any marks #513

Closed arslancharyev31 closed 3 years ago

arslancharyev31 commented 3 years ago

In https://github.com/outline/rich-markdown-editor/discussions/380#discussioncomment-347500 it was stated that

A url in markdown should not be interpreted as a link unless it is marked as such

But yet it is the exact behaviour that we observe in the latest version. So text like not-a-link.com will be interpreted as link. Moreover, onChange method would return a new value where the link has been marked as such with the corresponding markdown syntax, for example: [not-a-link.com](http://not-a-link.com).

I agree with the quoted words. People might simply forget to put a whitespace after any dot and they won't see that it has been interpreted as a link until it is saved and reopened again. At the very least the editor should have a property that allows us to disable automatic link markup.