Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Add new structured content features: lists and the HTML lang attribute #2129

Merged
merged 4 commits into from
May 14, 2022
Merged

Commits on Apr 29, 2022

  1. 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.
    stephenmk committed Apr 29, 2022
    Configuration menu
    Copy the full SHA
    d9955f7 View commit details
    Browse the repository at this point in the history
  2. 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"
    stephenmk committed Apr 29, 2022
    Configuration menu
    Copy the full SHA
    360f09d View commit details
    Browse the repository at this point in the history

Commits on May 13, 2022

  1. Configuration menu
    Copy the full SHA
    5d57f58 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51f6189 View commit details
    Browse the repository at this point in the history