Add support for indented link references on excerpt

Excerpt link reference extraction is missing all the indented references
at the bottom of the page. Markdown specify that those can be indented up
to three spaces.
This commit is contained in:
Eloy Espinaco
2016-08-08 11:28:53 -03:00
parent 4bff65be90
commit 9b09d8a8e8
4 changed files with 44 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
---
---
This is the first paragraph. It [has][link_0] [lots][link_1] [of][link_2]
[links][link_3].
This is the second paragraph. It has sample code that should not be extracted:
[fakelink]: www.invalid.com
And here are the real links:
[link_0]: www.example.com/0
[link_1]: www.example.com/1
[link_2]: www.example.com/2
[link_3]: www.example.com/3