No ref name clobber#673
Conversation
84741a3 to
00776a6
Compare
|
In the following markdown
Restults in: The Maybe we should add tests for all new or changed functions step by step, this way. |
|
In both becomes # Test 1
[GitHub][]
[GitHub](https://github.com)
[GitHub](https://github.com)
[GitHub]: https://github.comThis bug may be unrelated to what this PR addresses. Also, I wasn't actually able to see how your test suite works; it looks like pytest, but pytest obviously can't import |
|
It's actually Even if it adds duplicates it works in current master. MDE actually uses UnitTesting for both local tests and CI. It's pytest running in ST's plugin_host to be able to use all its APIs. You are right, I should somehow write some basic docs about how to use it. The https://github.com/SublimeText-Markdown/MarkdownEditing/blob/3.1.1/tests/test_reference_completions.py contains a quite minimal example. All the magic is packed into general note: You should probably rebase your PRs onto the st3176 branch if we want to ship them for ST3 releases as well. The master branch targets ST4, already. |
826371a to
1c0d76b
Compare
|
I've rebased your work onto 3.1.1 branch and added a unittest. Not sure if it's possible, but you might want to change the PR to get it merged into 3.1.1 maybe. I am also concerned about recent syntax changes might have broken your functionality, because reference definition regions are no longer separated by a newline. Once Something along those lines ... MarkdownEditing/plugins/references.py Lines 854 to 855 in 4e86295 |
|
This PR seems to break auto counting of new footnote definitions when calling |
cc4bd5b to
ae9ce4a
Compare
I am concerned about the stability of replacing pure sublime text selectors with just regular expressions. Do we have standard regex defined for the various markdown features, or is the current practice just to write them inline like |
|
Strange. After changing the row numbers to accurately match the data, the tests pass successfully on my machine, but the github test runner is now acting like the cursor is in the wrong place. |
7c8437c to
07cd5fb
Compare
|
I've dropped the "bad" commits. |
Satisfy flake8
b4561c6 to
d553e74
Compare
|
I somehow start hating |
a073aa1 to
d595f82
Compare
|
If you are fine with my hijacked commits, I guess we may be able to merge this PR. |
|
Looks good to me. |

Fixes multiple bugs pointed out in #559, including
Resolves #559