-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: New test case. * fix: Identifier-based cross-linking doesn't provide glossary term preview for bottom page links (#242) * test: New baseline.
- Loading branch information
1 parent
f4c8741
commit 5194d9e
Showing
16 changed files
with
104 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
test/input/pandoc/config-linking/242-headingIdPandoc-with-link-titles/document.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Test | ||
|
||
See https://github.com/about-code/glossarify-md/issues/242 | ||
|
||
## Test Case 1: Term-Based Auto-Linking | ||
|
||
GIVEN a term *Test* | ||
THEN the system MUST linkify *Test* | ||
AND the link MUST have the term's *short description* as a link title. | ||
|
||
## Test Case 2: Identifier-Based Cross-Linking | ||
|
||
GIVEN a [specific link](#test-id) with a term's custom id | ||
AND the Markdown author DOES NOT provide a link title on its own | ||
THEN the system SHOULD add the term's *short description* as a link title. | ||
|
||
## Test Case 3: Identifier-Based Cross-Linking with custom link title | ||
|
||
GIVEN a [specific link](#test-id "Custom Link Title") with a term's custom id | ||
AND the Markdown author DOES provide a custom link title on its own | ||
THEN the system SHOULD keep "Custom Link Title" as the link title. |
5 changes: 5 additions & 0 deletions
5
.../input/pandoc/config-linking/242-headingIdPandoc-with-link-titles/glossarify-md.conf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"$schema": "../../../../../conf/v5/schema.json", | ||
"baseDir": ".", | ||
"outDir": "../../../../output-actual/pandoc/config-linking/242-headingIdPandoc-with-short-desc" | ||
} |
9 changes: 9 additions & 0 deletions
9
test/input/pandoc/config-linking/242-headingIdPandoc-with-link-titles/glossary.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Glossary | ||
|
||
## Test term | ||
|
||
A generic test term to test our glossary. | ||
|
||
## Specific link test term {#test-id} | ||
|
||
A specific link test term to test exact links to glossary definitions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...-expected/pandoc/config-linking/242-headingIdPandoc-with-short-desc/document.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# [Test](#test) | ||
|
||
See [https://github.com/about-code/glossarify-md/issues/242][1] | ||
|
||
## [Test Case 1: Term-Based Auto-Linking](#test-case-1-term-based-auto-linking) | ||
|
||
GIVEN a term *Test* | ||
THEN the system MUST linkify *Test* | ||
AND the link MUST have the term's *short description* as a link title. | ||
|
||
## [Test Case 2: Identifier-Based Cross-Linking](#test-case-2-identifier-based-cross-linking) | ||
|
||
GIVEN a [specific link][2] with a term's custom id | ||
AND the Markdown author DOES NOT provide a link title on its own | ||
THEN the system SHOULD add the term's *short description* as a link title. | ||
|
||
## [Test Case 3: Identifier-Based Cross-Linking with custom link title](#test-case-3-identifier-based-cross-linking-with-custom-link-title) | ||
|
||
GIVEN a [specific link][3] with a term's custom id | ||
AND the Markdown author DOES provide a custom link title on its own | ||
THEN the system SHOULD keep "Custom Link Title" as the link title. | ||
|
||
[1]: https://github.com/about-code/glossarify-md/issues/242 | ||
|
||
[2]: ./glossary.md#test-id "A specific link test term to test exact links to glossary definitions." | ||
|
||
[3]: ./glossary.md#test-id "Custom Link Title" |
5 changes: 5 additions & 0 deletions
5
...xpected/pandoc/config-linking/242-headingIdPandoc-with-short-desc/glossarify-md.conf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"$schema": "../../../../../conf/v5/schema.json", | ||
"baseDir": ".", | ||
"outDir": "../../../../output-actual/pandoc/config-linking/242-headingIdPandoc-with-short-desc" | ||
} |
9 changes: 9 additions & 0 deletions
9
...-expected/pandoc/config-linking/242-headingIdPandoc-with-short-desc/glossary.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# [Glossary](#glossary) | ||
|
||
## [Test term](#test-term) | ||
|
||
A generic test term to test our glossary. | ||
|
||
## [Specific link test term](#test-id) | ||
|
||
A specific link test term to test exact links to glossary definitions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters