summaryrefslogtreecommitdiff
path: root/features/xref.feature
AgeCommit message (Collapse)Author
2021-11-08add test to verify title of formal paragraph is used as fallback reftextDan Allen
2021-10-04resolves #4160 use width attribute to set width of table and table column ↵Dan Allen
(PR #4161)
2021-09-15add test to verify natural xref does not work if sectids is not set (meaning ↵Dan Allen
target has no id)
2020-10-31resolves #3745 always use title as xreftext if target block has an empty ↵Dan Allen
caption (PR #3806)
2019-06-14resolves #3331 fix parsing of wrapped link and xref text PR (#3334)Dan Allen
2019-02-19resolves #3084 only store :refs, not :ids, in document catalog (PR #3079)Dan Allen
* 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
2018-04-24resolves #2365 allow xrefstyle to be overridden per xref using the xrefstyle ↵Dan Allen
attribute (PR #2706) - allow xrefstyle to be overridden per xref by assigning xrefstyle attribute on xref macro - allow xrefstyle to be overridden in different parts of the document
2018-04-23resolves #2381 parse text of xref macro as attributes if attribute signature ↵Dan Allen
detected - if attribute signature is detected in text of xref macro, parse text as attributes - if role is set on xref, add it to class attribute of <a> element in HTML5 converter - rename append_anchor_constraint_attrs to append_link_constraint_attrs - add link contraint attributes to <a> element of interdoc xref
2018-04-22resolves #2298 add numbering for partsDan Allen
- number parts using roman numerals if the partnums attribute is set - move method to convert integer to roman to Helpers module - assign the value "Part" to the part-refsig attribute by default - define the part-label attribute in the attributes-en.adoc data file - add support for partnums and sectnums=all to create_section helper in extensions - add partnums and sectnums=all scenarios to test for create_section helper
2018-04-17resolves #794 drop XML tags, character refs, and non-word chars when ↵Dan Allen
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
2018-03-05resolves #2568 collapse bottom margin of last block in AsciiDoc table cell ↵Dan Allen
(PR #2593) - add content class to div surrounding AsciiDoc cell content - collapse bottom margin of last block in AsciiDoc table cell - simplify margin collapsing on last paragraph in normal cell - remove unused styles - update tests
2018-03-04resolves #2589 rename spread role to stretch (PR #2591)Dan Allen
2017-10-22resolves #2405 add compliance setting to disable natural cross references ↵Dan Allen
(PR #2460) - add the compliance setting natural_xrefs for disabling natural cross references - don't resolve xref by reference text if compliance setting is disabled - don't resolve xref by reference text if compat-mode is on - add test scenario - rename scenarios related to natural xrefs
2017-07-09resolves #858 add support for formal xref text (PR #2220)Dan Allen
- store referenceable nodes under refs key in document catalog - when registering a ref, store entry in both refs table and deprecated ids table - update tests to use consolidated register method - add xreftext method to AbstractBlock, Section, and Inline to produce formatted text for xref - add API docs to the xreftext methods - format xref text according to xrefstyle attribute, if set (full, short, or basic) - move reftext? and reftext methods down to AbstractBlock and Inline; contextualize - apply reftext substitutions (specialchars, quotes, replacements) to value returned by reftext method - drop support for reftext document attribute - don't catalog inline anchor if reftext containing attribute reference resolves to empty string - use reftext method instead of text method for :ref in DocBook converter - add feature tests for explicit reftext - add feature tests for generated reftext using xrefstyle - introduce language attributes for chapter, section, and appendix reference signifier * name attributes chapter-refsig, section-refsig, and appendix-refsig, respectively - enable chapter-label attribute in translations file; map to chapter-refsig attribute to it - map appendix-refsig attribute to value of appendix-caption attribute in translations file - add placeholders in translations file for chapter-refsig where missing and section-refsig - handle refsig document attribute values consistently (only use if attribute is non-nil) - update link and xref tests to populate refs key in document catalog - encode double quote and strip XML tags in value of xreflabel attribute in DocBook converter - don't store return value of target in inline_anchor method of HTML converter
2017-05-16remove trailing spaces in sourceDan Allen
2014-07-15resolves #589 basic support for resolving xref from reftextDan Allen
2014-02-26resolves #778, rewrite converter API; resolves #638, integrate thread_safe gemDan Allen
- rewrite converter API - separate built-in converters from template converter - rename renderer/render to converter/convert - make converter an extension point (resolves #778) - base built-in converters on the converter API - rename template_name property to node_name on AbstractNode - make block_ prefix on file name of block-level templates optional - use thread_safe gem for template and converter caches (resolves #638) - introduce Stylesheets API to manage stylesheets - move file write logic to Document - delegate file write logic to converter that implements Writer - remove compact logic, deprecate related options - duplicate options and attributes passed to APIs, add tests - assign doctype / backend attributes correctly when document is loaded, add tests - report proper error if nil is passed to load_file and convert_file - use span tag to group kbd combination in html5 backend - setup toc in preamble if toc attribute is preamble - Opal compatibility fixes, use built-in HTML5 converter - make the outline method accessible to all html converters - document the converter APIs along with some minor cleanups in terminology - load stylesheets from data directory - rename ruler block to thematic_break - add inline? and block? query methods to AbstractNode - use Timings class to measure and report timings from processor steps - fix cucumber tests - upgrade tilt dependency to 2.0.0 - minor optimizations
2014-01-27fix whitespace breakage in featureDan Allen
2013-10-25resolves #731 add initial Cucumber test infrastructureDan Allen
- add cucumber and rspec-expectations dependencies - add cucumber Rake task definition - add sample cucumber tests and a step definition rough-in - set version ranges for library dependencies