A role applied to the document title does not exist in the generated HTML.
When I apply a role to a document title, like this:
[.myrole]
= My Document
myrole
does not appear in the generated HTML. Asciidoctor applies such a role to the <body>
tag, so this change in behaviour is a little surprising.
I'm not fussy about whether the role is applied to the <h1>
tag, the containing <article>
tag, or the <body>
tag. But I do want to make use of it. Currently, I can use roles on section titles to apply custom styles to those sections, so I would like the same capability for document titles.
@mojavelinux Suggested using a page template that would apply the role. This is a suitable workaround for now.
Apparently, the role needs to be made available to the UI model, and the role (and any id applied) are not currently being propogated. So, the fix likely involves core and the UI.