Fork me on GitHub
#cryogen
<
2020-11-17
>
Andrei Stan10:11:52

hello, i am using Cryogen for a static website. The pages are converted into HTML from .asc ; I am using Chrome, and i do not understand how the classes are applied for HTML elements: for example all the content of the pages have a wrapper with class="sect1" . Then i see the second child of this wrapper has class="sectionbody" etc... [1] Does anyone knows how can i modify those classes? It somehow ruins my plans in using semantic-ui for styling. [2] Somehow, the Html paragraphs generated from .asc files contains text between double quotes

"text generated from .asc file"

Thanks

Jakub Holý (HolyJak)15:11:39

AsciidoctorJ generates the classes so look at its docs. The " are there onouly in the DOM inspector or also in the html?

Eugen23:11:56

Asciidoctorj allows for a different template dir ( template_dirs in https://github.com/asciidoctor/asciidoctorj#conversion-options ) Also https://discuss.asciidoctor.org/Custom-HTML-template-td1944.html It seems cryogen uses haml html5 template https://github.com/asciidoctor/asciidoctor-backends/blob/master/haml/html5/section.html.haml Does cryogen allow configuration of the asciidoc rendering?

Andrei Stan16:11:08

thank you all for the info

Jakub Holý (HolyJak)19:11:44

I suspect it doesn't. PR welcome.

Jakub Holý (HolyJak)19:11:58

As described in https://github.com/cryogen-project/cryogen-asciidoc, you can only configure attributes and custom macros currently.

dorab23:11:19

Oops. Thanks for pointing it out. Taking a look now.

dorab23:11:39

Found the problem. Will apply fix and push shortly.

dorab23:11:50

Fixed and published. Thanks again @U011NGC5FFY

👍 6
❤️ 3