yomichan/ext
Stephen Kraus 6a74746113
Add new structured content features: lists and the HTML lang attribute (#2129)
* Add support for structured content lists and `list-style-type` style

A full list of supported style types is documented here:
https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type

There's nothing in this code preventing a term bank from assigning,
for example, a `list-style-type` style to a `div` element, but it
doesn't seem like browsers will complain about things like that.

* Add support for `lang` attribute in structured content

Support added for the following node types:

"ruby", "rt", "rp", "table", "thead", "tbody", "tfoot", "tr", "td",
"th", "span", "div", "ol", "ul", "li", "a"

I couldn't get it to work for the alt-hover text on "img" tags.

Tests are included in the file
"test/data/dictionaries/valid-dictionary/term_bank_1.json"

* Add styles for structured content lists

* Add override rules for new structured-content list styles

see: https://github.com/FooSoft/yomichan/pull/2129

Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
2022-05-14 09:59:38 -04:00
..
css Add new structured content features: lists and the HTML lang attribute (#2129) 2022-05-14 09:59:38 -04:00
data Add new structured content features: lists and the HTML lang attribute (#2129) 2022-05-14 09:59:38 -04:00
images Structured content links (#2089) 2022-03-17 19:01:59 -04:00
js Add new structured content features: lists and the HTML lang attribute (#2129) 2022-05-14 09:59:38 -04:00
lib Update third-party libraries (#1886) 2021-08-10 20:11:56 -04:00
action-popup.html Improve accessibility of links without href (#1915) 2021-08-28 14:45:25 -04:00
background.html Add AccessibilityController class, which dynamically registers (#2024) 2021-11-23 22:23:14 -05:00
display-templates.html Display menu button (#1992) 2021-10-17 09:55:13 -04:00
info.html Improve accessibility of links without href (#1915) 2021-08-28 14:45:25 -04:00
legal.html Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
manifest.json Update version 2022-04-04 19:17:43 -04:00
permissions.html ScriptManager updates (#2022) 2021-11-23 16:16:13 -05:00
popup-preview.html Theme updates (#2105) 2022-04-03 16:20:55 -04:00
popup.html Theme updates (#2105) 2022-04-03 16:20:55 -04:00
search.html Theme updates (#2105) 2022-04-03 16:20:55 -04:00
settings.html Hide popup on cursor exit (#2109) 2022-04-03 22:52:53 -04:00
sw.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
template-renderer.html AnkiTemplateRendererContentManager (#2088) 2022-03-14 22:32:08 -04:00
welcome.html Hide popup on cursor exit (#2109) 2022-04-03 22:52:53 -04:00