Docu about Customize HTML output? #481
-
@Mogztter - Is there some documentation around how to fully customize the generated HTML output? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You have basically two levels of customization:
When using a custom stylesheet, you will probably need to inspect the HTML produced by the built-in converter to understand how to customize it. I recommend to use the If you want to go deeper then you can provide a custom layout. You can read https://github.com/Mogztter/asciidoctor-web-pdf#custom-layout which briefly explains how to extend the built-in converter. You can take a look at the built-in HTML 5 converter (written in Ruby): https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/converter/html5.rb For each node type, Asciidoctor will call the corresponding method. For instance, to convert an Image to HTML, Asciidoctor will call |
Beta Was this translation helpful? Give feedback.
You have basically two levels of customization:
stylesheet
attributeWhen using a custom stylesheet, you will probably need to inspect the HTML produced by the built-in converter to understand how to customize it. I recommend to use the
--preview
option when working on a new design. See: #441If you want to go deeper then you can provide a custom layout. You can read https://github.com/Mogztter/asciidoctor-web-pdf#custom-layout which briefly explains how to extend the built-in converter.
As mentioned in the README you will need JavaScript knowledge and you will also need to understand how Asciidoctor works (i.e., it creates an AST…