summaryrefslogtreecommitdiff
path: root/spec/formatted_text_formatter_spec.rb
AgeCommit message (Collapse)Author
2023-04-14add support for nowrap and nobreak roles on formatted textDan Allen
2022-10-30switch from EOS to END as heredoc delimiterDan Allen
2022-10-22fix test description [no ci]Dan Allen
2022-09-14resolves #2339 fix crash when smallcaps text transform is applied to a ↵Dan Allen
phrase (PR #2340)
2022-08-29refactor formatted text transform to simplify how inner space is collapsedDan Allen
2022-08-24rename kbd-separator theme key to kbd-separator-content to make its ↵Dan Allen
consistent with other content keys - remap old key and warn
2022-08-23fix broken test assertionDan Allen
2022-08-23keep caret between items in menu macro with previous item if items wrapDan Allen
2022-08-10resolves #2307 use relative font size for big and small roles (PR #2308)Dan Allen
2022-07-19remove use of build_pdf_theme except where neededDan Allen
2022-06-25resolves #2263 apply text-tranform from custom role on phrase after ↵Dan Allen
attributes have been resolved (PR #2264)
2022-06-14remove debug flag in test suiteDan Allen
2022-06-14use base-border-color value if border width is set on role for inline phrase ↵Dan Allen
but not border color
2022-06-14use enhanced RectInspector in test suite that can pick up fill and stroke colorDan Allen
2022-06-14only draw rounded rectangle around phrase if border-radius is > 0Dan Allen
2022-05-27don't crash if inline role defines border width but not border colorDan Allen
2022-05-26resolves #2059 fix width of multi-word phrase with background and border ↵Dan Allen
offset (PR #2212)
2022-05-03resolves #1192 add support for smallcaps text transform (PR #2131)Dan Allen
- add support for smallcaps value for text-transform in theme - add helper method to do smallcaps translation - add required glyphs to built-in fonts
2022-04-25resolves #321 keep closing quote with trailing ellipsis in text enclosed in ↵Dan Allen
typographic quotes (PR #2079)
2022-04-18resolves #1796 rename literal category to codespan in theme (PR #2045)Dan Allen
2022-04-18resolves #2052 rename key theme key to kbd (PR #2053)Dan Allen
* rename key key to kbd * introduce lookup map for deprecated keys * rename internal <key> element to <kbd>
2022-01-19resolves #1990 handle uppercase characters in character references (PR #1991)Dan White
2021-05-16resolves #1927 honor pre-wrap role on phrase (PR #1932)Dan Allen
2021-05-15allow custom inline role to control text transform when it's not the only ↵Dan Allen
role on the phrase
2021-02-27resolves #1880 allow theme to customize quotation mark characters (PR #1713)klonfish
Co-authored-by: Dan Allen <dan.j.allen@gmail.com>
2021-02-25resolves #1774 allow theme to control font properties of menu element (PR #1879)Dan Allen
2021-02-16upgrade Rubocop and fix new warningsDan Allen
2020-10-26add helper to write temporary theme file to avoid having to maintain so many ↵Dan Allen
fixtures
2020-10-24move font-related tests to font contextDan Allen
2020-10-15verify font size for superscript and subscript is computed correctly when ↵Dan Allen
parent font size is a unitless string
2020-10-03test case when both role and either span with style or inline element ↵Dan Allen
specify a background color
2020-10-02test that unsupported style property span is ignoredDan Allen
2020-09-28modify test to verify border offset on custom role can be unsetDan Allen
2020-09-24verify base border color is used for inline code if theme does not define ↵Dan Allen
border color for literal
2020-09-23verify base border color is used for key if theme does not define border ↵Dan Allen
color for key
2020-09-23verify base border color is used for button if button color not specifiedDan Allen
2020-09-21test that text can be aligned to the left of a phraseDan Allen
2020-09-08verify that border can be added to button by themeDan Allen
2020-09-08add test that unknown font weight and style on formatted text are ignoredDan Allen
2020-09-08test empty formatted text at start and end of line is ignoredDan Allen
2020-09-07show reason when formatted text parser failsDan Allen
2020-09-06update parsing for color and background-color style on spanDan Allen
- require leading # - validate format - permit / expand 3 character hex value - add more tests
2020-08-27resolves #1705 allow theme to control background color and border offset for ↵Dan Allen
links (PR #1758)
2020-08-25follow-up to #1745 to add support for % units as wellDan Allen
2020-08-15resolves #1745 compute font size for superscript and subscript correctly ↵Dan Allen
when parent element uses em units (PR #1747)
2020-08-14verify capitalize text transform is only applied once per sequence of ↵Dan Allen
contiguous characters
2020-08-08verify border can be applied to phrase without a background color using roleDan Allen
2020-08-08verify custom role can set both font style and text decorationDan Allen
2020-08-07verify the font style and font weight can be set using CSS on span elementDan Allen
2020-08-06text right alignment of text within span with fixed widthDan Allen