-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement support for chapter names in links (#19)
* implement chapter text with each pagination item * support conditional visibility of chapter text * support variable chapter name visibility * remove unnecessary var * default to true * demo changes * feat: keep default rendering consistent as the previous version * docs: add corssChapterText option Co-authored-by: yelo <zhihuzeye@gmail.com>
- Loading branch information
Showing
5 changed files
with
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
- [Home](/) | ||
- [Foo](foo.md#section-3) | ||
- [Bar A Long Long Long Title](bar.md) | ||
- [Baz](baz.md) | ||
- Chapter 1 | ||
|
||
- [Home](/) | ||
- [Foo](foo.md#section-3) | ||
- [Bar A Long Long Long Title](bar.md) | ||
- [Baz](baz.md) | ||
|
||
- Chapter 2 | ||
- [Foo](foo.md) | ||
- [Bar](bar.md) | ||
- [Baz](baz.md) | ||
|
||
- [Foo](foo.md) | ||
- [Bar](bar.md) | ||
- [Baz](baz.md) | ||
|
||
- Chapter 3 | ||
- [Foo](foo.md) | ||
- [Bar](bar.md) | ||
- [Baz](baz.md) | ||
|
||
- [Foo](foo.md) | ||
- [Bar](bar.md) | ||
- [Baz](baz.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 |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
previousText: '上一章节', | ||
nextText: '下一章节', | ||
crossChapter: true, | ||
crossChapterText: true, | ||
} | ||
} | ||
</script> | ||
|
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