-
-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Description
Problem
As it stands, to define nested YAML with Asciidoc attributes requires "inline YAML". E.g.:
header:
color: black
image: url
:page-header: { color: black, image: url }
This has several disadvantages:
- the syntax is cumbersome (especially when nested deeper) and easy to get wrong
- it mixes Asciidoc attributes (with two colons) and YAML hashes (single colon)
- the parsed attribute replaces any existing value
For the latter consider the case that header/color
was already defined (e.g. in _config.yml
) and the document contains this:
:page-header: { image: url }
This unsets header/color
, which is neither expected nor desired (typically).
Acceptance
A great way to fix this would be a syntax that makes it easy and natural to define nested attributes in pure Asciidoc. That should fix the first two problems and completely circumvent the third.
nfrankel and cirosantilli
Metadata
Metadata
Assignees
Labels
No labels