diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-02-19 02:10:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-19 02:10:40 -0700 |
| commit | 67b2b50156b778e494f3517d25cd6a2d7d550737 (patch) | |
| tree | d1a85b7d035ee161d5782a7b6ed74aefd2425610 /features | |
| parent | aa2216063413ffb75e0d130cff72f2bad69e1448 (diff) | |
resolves #3084 only store :refs, not :ids, in document catalog (PR #3079)
* remove the logic that registers entries in :ids table of the document catalog
* don't attempt to compute the reftext when registering an xref (as this information is available from the referenced node and can be retrieved on demnd)
* add a Document#resolve_id method to look up ID by reference text (reftext or title); cache the result of lookups once parsing is complete
* always look for existing IDs using :refs table (when checking for a duplicate or whether a target exists)
* leave the :ids table empty to avoid breaking existing programs and extensions
* update tests
* add test to verify :ids table is always empty
Diffstat (limited to 'features')
| -rw-r--r-- | features/xref.feature | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/features/xref.feature b/features/xref.feature index 5feb3378..e7f2bfde 100644 --- a/features/xref.feature +++ b/features/xref.feature @@ -741,7 +741,7 @@ Feature: Cross References content - == Section Two + == Section Two, continued from <<Section One>> refer to <<Section One>> """ @@ -752,7 +752,9 @@ Feature: Cross References h2#_section_one Section One .sectionbody: .paragraph: p content .sect1 - h2#_section_two Section Two + h2#_section_two_continued_from_section_one + |Section Two, continued from + a< href='#_section_one' Section One .sectionbody: .paragraph: p |refer to a< href='#_section_one' Section One |
