Login  Register

Asciidoctor vs Asciidoc docbook customization

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Asciidoctor vs Asciidoc docbook customization

MarcB
Hello, using Asciidoc we could add "quotes" for handling specific docbook structures, like guilabel, guibutton very easily. For example we added theses quotes :
[quote]
# button item - example : click button @button(Edit object)@
@button(|)@=#button

# gui label item - example : see label @label(object)@
@label(|)@=#label

# gui link item - example : see link @link(object)@
@link(|)@=#link

# gui tab item - example : see tab @tab(object)@

[tags]
button=<guibutton>|</guibutton>
label=<guilabel>|</guilabel>
link=<guibutton role="guilink">|</guibutton>
tab=<guibutton role="guitab">|</guibutton>
Is there a way for doing the same extensions in Asciidoctor ? I've seen macros (menus and buttons) in Asciidoctor, but code is very specific and difficult to change.