diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2018-04-17 00:41:39 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2018-04-17 01:34:53 -0600 |
| commit | d55e2b936cdd4e1792828fb3c5c5d8cf0c2c63ca (patch) | |
| tree | 2e66098ed2c04e4e7697ca0fb7d882ce344c3fb0 /features/xref.feature | |
| parent | ce927bdf045f6d176e0c173e67654786e7abbce9 (diff) | |
resolves #794 drop XML tags, character refs, and non-word chars when generating ID for section
- drop character refs and non-word chars (except for hyphen and space) instead of replacing with ID separator
- drop XML tags (but not the contents of the tag)
- replace spaces and hyphens with ID separator
- optimize logic in Section.generate_id method
Diffstat (limited to 'features/xref.feature')
| -rw-r--r-- | features/xref.feature | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/xref.feature b/features/xref.feature index 1809668a..9a5974ee 100644 --- a/features/xref.feature +++ b/features/xref.feature @@ -669,14 +669,14 @@ Feature: Cross References Then the result should match the HTML structure """ .sect1 - h2#_section_strong_one_strong + h2#_section_one |Section <strong>One</strong> .sectionbody: .paragraph: p content .sect1 h2#_section_two Section Two .sectionbody: .paragraph: p |refer to - a< href='#_section_strong_one_strong' Section <strong>One</strong> + a< href='#_section_one' Section <strong>One</strong> """ Scenario: Does not process a natural cross reference in compat mode |
