How can I make custom class HTML divisions using AsciiDoctor?

Viewed 2223

I am beginning with AsciiDoctor and I want to output HTML. I've been trying to figure out how to create custom class in divisions, I searched google, manuals etc. and couldn't find a solution. What I want to do is simply write something like this:

Type the word [userinput]#asciidoc# into the search bar.

Which generates HTML

<span class="userinput">asciidoc</span>

but I want to have div tags instead of span. Is there any way to do it or should I just use something like +++<div class="userinput">asciidoc</span>+++ ?

2 Answers
Related