Add tests for self-references

Note as there is no support for block references at the moment, the generated link goes nowhere, however it is to a reasonable ID
This commit is contained in:
Joshua Coles 2021-02-09 10:36:39 +00:00
parent 9418f20d61
commit 60d41672a5
4 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[This is a header](section-ref-a.md#this-is-a-header)
[^dda637](section-ref-a.md#dda637)
## This is a header
This is a block ^dda637

View File

@ -0,0 +1,2 @@
[section-ref-a > This is a header](section-ref-a.md#this-is-a-header)
[section-ref-a > ^dda637](section-ref-a.md#dda637)

View File

@ -0,0 +1,7 @@
[[#This is a header]]
[[#^dda637]]
## This is a header
This is a block ^dda637

View File

@ -0,0 +1,2 @@
[[section-ref-a#This is a header]]
[[section-ref-a#^dda637]]