Added ability to follow anchors to heading-id#381
Conversation
Thanks!
It's hard to say which parts would benefit from more comments. I don't mind adding comments, but I usually don't comment things unless I realize it may be useful. But I'll take note and use more comments in the future.
Could you give me a few examples and/or write a test for this as well? |
|
Related tests are under The tests may be slightly harder to understand. If you give me a few examples I could write the test myself. |
|
I'll have a look, but essentially, markdown reference includes Heading IDs as anchor points that can be used as links. Example: Essentially a heading that is appended by:
|
… work as expected due to conflicts with the other regex. This should work as expected now.
|
Tests made and feature works as expected. |
|
Thanks! On my end, two of the tests fail: These correspond to lines 9 and 10 in the new |
|
Lol, I hadn't slept while hacking it together, but now all tests pass. |
|
Thanks! |
Pretty easy fix thanks to how well you've written your code. I suggest adding some more comments to make it easier for people to contribute, though the documentation was an enormous help!
Makes the wiki link handler look for exact, case-sensitive header-id match for anchors. Tested and works great!