Module: Jekyll::L10n::HtmlElements
- Defined in:
- lib/jekyll-l10n/utils/html_elements.rb
Overview
Constants defining HTML element categories for extraction and translation.
HtmlElements categorizes HTML elements by their semantic role: content elements contain translatable text, container elements provide structural grouping, and block elements are used for layout considerations during text extraction.
Key responsibilities:
-
Define content elements (paragraphs, headings, lists, etc.)
-
Define container elements (div, section, article, etc.)
-
Define block elements (all layout-related elements)
Constant Summary collapse
- CONTENT_ELEMENTS =
Content elements that contain translatable text
%w[ p h1 h2 h3 h4 h5 h6 li dd dt blockquote figcaption ].freeze
- CONTAINER_ELEMENTS =
Container elements for structural grouping
%w[div figure section article aside].freeze
- BLOCK_ELEMENTS =
Block elements for layout
%w[ p div section article aside figure figcaption blockquote pre ul ol li dl dt dd form table header footer nav address ].freeze