This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
Declarative Section Type Matching with helix-markup.yaml #606
Labels
enhancement
New feature or request
This is an extension of #516 and depends on #533
So far,
helix-markup.yaml
is capable of matching DOM elements and lower-level MDAST structures, but when it comes to sections, the features provided by #533 include only the ability to:content.section[].types
should show up in thesection
tag'sclass
attributesection
should be rendered as adiv
(default),section
,nav
,main
,header
,footer
, or any other HTML elementWith this extension, developers will furthermore be able to:
utils.types
imperativelyFor this,
helix-markup.yaml
will get a new optional key,sections
:In the example above, if a URL matching
/nav.html
(we support URI Template expressions) is requested, and there is a section containing one optionalheading
at the beginning and a series oflist
s, then that section should get atype
with the valuenavigation
(in addition to the automatically inferred types).In the second part of the example,
section
s in MDAST with atype
that containsnavigation
are getting wrapped innav
elements./cc @davidnuescheler
The text was updated successfully, but these errors were encountered: