-
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.
feat: New options
indexing.headingDepths
and linking.headingDepths
(
#139) `indexing.headingDepths` affects path resolution for cross-links using custom heading ids to refer to a section in another document *but also provides indexing* for term-based link creation. There should be rare cases for changing its default value. `linking.headingDepths` in contrast is the option to actually control term-based auto link creation *based on indexed headings*. `indexing.headingDepths` by default covers the complete set of CommonMark heading depths, that is, `[1,2,3,4,5,6]`. `linking.headingDepths` depends on headings being indexed and therefore must always be a complete _subset_ of `indexing.headingDepths`. If headings at, e.g. depth 5 would not be indexed, then they could not be found for auto linking, so even though `linking.headingDepths` might included 5, they were not auto linked. This commit adds `indexing.headingDepths` and modifies `linking.headingDepths` which was introduced in 95708c7 of PR #136. * test: New baseline. * test: Test cases for 'indexing.headingDepth' * test: Moved files. * test: Reordered test-suite to run tests for basic functionality before tests which are likely to depend on those functionality.
- Loading branch information
1 parent
dc28f0d
commit 37c7b1e
Showing
87 changed files
with
1,280 additions
and
147 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
Oops, something went wrong.