fix the falsely assigned link for the cases of linking by reference and no link#232
fix the falsely assigned link for the cases of linking by reference and no link#232wm8120 wants to merge 4 commits intoadam-p:masterfrom
Conversation
|
Thanks for the PR. I played around with it and it looks good. I'm also really happy you wrote tests (and added to the explanatory comment). However... I was going to offer to integrate the tests into the Mocha framework that MDH uses. And then I realized that you added a copyright line, which I would have to keep forever (because the MIT License requires it, I think). And then I started thinking about code contribution license agreements. And... after hours of reading about this stuff and agonizing, I decided to add a CLA requirement. And you get to be the guinea pig for it! You can see the instructions here. You basically need to read the agreement and then add a "yes I agree" file to your PR (...and remove the copyright/license line). If you need any help, please let me know. Otherwise just update your PR and re-submit. (I'll still update the tests. 😃 ) |
|
I updated the PR according to your instruction. BTW, I add the "Yes I agree" file by simply copying your example and replacing the signature line. Indeed, I need your help to integrate the tests into Mocha. Because I have little knowledge on it. |
|
I added your tests to Mocha and merged your changes into the I also created an issue for this bug you found: #233. (I'm not sure if I needed to do that, but... it seemed to make sense.) This fix will be in the next release. Thanks a lot for your help with this. |
Similar to
issue #69, the false hyperlinks are assigned when rendering reflink and no link which are automatically hyperlinked by browser at editing. This problem won't happen in plain text mode.Syndromes
will be rendered into
will be rendered into
Fix
Fix is done by adding the pattern of link reference to the regex in function convertHTMLtoMarkdown .