-
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.
10 option to let user define position of term hint (#36)
* feat: Option to let user define position of term hint (#10)
- Loading branch information
1 parent
916dd9d
commit 5a4f66f
Showing
17 changed files
with
141 additions
and
2 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
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
11 changes: 11 additions & 0 deletions
11
test/input/config-tailored/config-glossaries/term-hint-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,11 @@ | ||
GIVEN a term hint '↴' without a placeholder '${term}' | ||
THEN the term hint '↴' is appended to term 'Term-Hint-Suffix-Default'. | ||
|
||
GIVEN a term hint '${term}☚' WITH a placeholder '${term}' | ||
THEN the term hint symbol '☚' is appended to term 'Term-Hint-Suffix'. | ||
|
||
GIVEN a term hint '☛${term}' WITH a placeholder '${term}' | ||
THEN the term hint symbol '☛' is prepended to term 'Term-Hint-Prefix'. | ||
|
||
GIVEN a term hint '☛ ${term} ☚' WITH a placeholder '${term}' | ||
THEN the term hint symbols '☛ ' and ' ☚' MUST wrap around term 'Term-Hint-Wrapped'. |
3 changes: 3 additions & 0 deletions
3
test/input/config-tailored/config-glossaries/term-hint-prefix-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,3 @@ | ||
# Testing option 'glossaries.termHint' | ||
|
||
## Term-Hint-Prefix |
3 changes: 3 additions & 0 deletions
3
test/input/config-tailored/config-glossaries/term-hint-suffix-default-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,3 @@ | ||
# Testing option 'glossaries.termHint' | ||
|
||
## Term-Hint-Suffix-Default |
3 changes: 3 additions & 0 deletions
3
test/input/config-tailored/config-glossaries/term-hint-suffix-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,3 @@ | ||
# Testing option 'glossaries.termHint' | ||
|
||
## Term-Hint-Suffix |
3 changes: 3 additions & 0 deletions
3
test/input/config-tailored/config-glossaries/term-hint-wrapped-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,3 @@ | ||
# Testing config option 'glossaries.termHint' | ||
|
||
## Term-Hint-Wrapped |
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
19 changes: 19 additions & 0 deletions
19
test/output-expected/config-tailored/config-glossaries/term-hint-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,19 @@ | ||
GIVEN a term hint '↴' without a placeholder '${term}' | ||
THEN the term hint '↴' is appended to term '[Term-Hint-Suffix-Default↴][1]'. | ||
|
||
GIVEN a term hint '${term}☚' WITH a placeholder '${term}' | ||
THEN the term hint symbol '☚' is appended to term '[Term-Hint-Suffix ☚][2]'. | ||
|
||
GIVEN a term hint '☛${term}' WITH a placeholder '${term}' | ||
THEN the term hint symbol '☛' is prepended to term '[☛ Term-Hint-Prefix][3]'. | ||
|
||
GIVEN a term hint '☛ ${term} ☚' WITH a placeholder '${term}' | ||
THEN the term hint symbols '☛ ' and ' ☚' MUST wrap around term '[☛ Term-Hint-Wrapped ☚][4]'. | ||
|
||
[1]: term-hint-suffix-default-glossary.md#term-hint-suffix-default | ||
|
||
[2]: term-hint-suffix-glossary.md#term-hint-suffix | ||
|
||
[3]: term-hint-prefix-glossary.md#term-hint-prefix | ||
|
||
[4]: term-hint-wrapped-glossary.md#term-hint-wrapped |
3 changes: 3 additions & 0 deletions
3
.../output-expected/config-tailored/config-glossaries/term-hint-prefix-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,3 @@ | ||
# [Testing option 'glossaries.termHint'](#testing-option-glossariestermhint) | ||
|
||
## [Term-Hint-Prefix](#term-hint-prefix) |
3 changes: 3 additions & 0 deletions
3
...expected/config-tailored/config-glossaries/term-hint-suffix-default-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,3 @@ | ||
# [Testing option 'glossaries.termHint'](#testing-option-glossariestermhint) | ||
|
||
## [Term-Hint-Suffix-Default](#term-hint-suffix-default) |
3 changes: 3 additions & 0 deletions
3
.../output-expected/config-tailored/config-glossaries/term-hint-suffix-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,3 @@ | ||
# [Testing option 'glossaries.termHint'](#testing-option-glossariestermhint) | ||
|
||
## [Term-Hint-Suffix](#term-hint-suffix) |
3 changes: 3 additions & 0 deletions
3
...output-expected/config-tailored/config-glossaries/term-hint-wrapped-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,3 @@ | ||
# [Testing config option 'glossaries.termHint'](#testing-config-option-glossariestermhint) | ||
|
||
## [Term-Hint-Wrapped](#term-hint-wrapped) |
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