bevacqua / woofmark

:dog2: Barking up the DOM tree. A modular, progressive, and beautiful Markdown and HTML editor
https://bevacqua.github.io/woofmark
MIT License
1.62k stars 74 forks source link

Link insertion bugs #16

Open iliaznk opened 8 years ago

iliaznk commented 8 years ago

Hello! Looks like I've found a couple of bugs all of them having to do with link insertion into a fresh instance of woofmark.

When you try to insert a link (http://bevacqua.github.io/woofmark/) in wysiwyg with text link:

link 
//bugs start here with only the first letter being linked

and then switch to markdown:

[l][1]ink

[1]: http://bevacqua.github.io/woofmark/

html:

<p>/</p>

and back to wysiwyg you finally get this:

/

The same happens if you try to insert a link in markdown mode. Somehow that doesn't happen if you not only insert a link, but also write a word on another line (while if you start from wysiwyg mode, you still get only the first letter linked).

If your first line in markdown is a URL starting with http, then this is what you get in html:

<p></p>

which, of course, translates to nothing in wysiwyg.

bevacqua commented 8 years ago

Can you please update megamark to latest and check again?

iliaznk commented 8 years ago

It's still the same - only the first letter gets linked if you insert a link in wysiwyg; in markdown if you insert this link https://github.com/bevacqua/woofmark/issues/16 and then switch to html, wysiwys, html and back to mardown you'll find only 6 left.