This is a change you can make by modifying the configuration file in AsciDoc Python or using a custom template or converter in Asciidoctor.
The reason for the enclosing div is to support a formal paragraph (paragraph with a title): <div class="paragraph"> <div class="title">Title</div> <p>text</p> </div> and informal paragraph: <div class="paragraph"> <p>text</p> </div> in a consistent way: Otherwise, it becomes very hard to wrangle with CSS. With that said, I figured out how we can support both cases and still use only a '<p>' element. The title should be handled using an inline element (such as '<strong>' or '<span>'). I took that approach in the Asciidoctor EPUB3 converter and have proposed to use it for the new HTML5 semantic converter for Asciidoctor. See https://github.com/asciidoctor/asciidoctor/issues/242. Cheers, -Dan On Sun, May 28, 2017 at 3:10 AM, Gour <[email protected]> wrote: > On Fri, 26 Dec 2014 07:48:10 +1000 > Lex Trotman <[email protected]> wrote: > > Old thread, but new question... > > > [role=css_class_name] > > > > See > > http://www.methods.co.nz/asciidoc/userguide.html#_common_attributes > > If one uses that, then generated HTML looks like: > > <div class="paragraph css_class_name"> > <p>Paragraph of text.</p> > </div> > > but I wonder if it's possible to generate the following output: > > <p class="css_class_name">Paragraph of text.</p> > > iow. to assign the css class name only to the <p> tag? > > > Sincerely, > Gour > > -- > One who works in devotion, who is a pure soul, and who controls > his mind and senses is dear to everyone, and everyone is dear to > him. Though always working, such a man is never entangled. > > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. > -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
