Asciidoctor: If I use the option `-s` (--no-header-footer), the styling disappear

Created on 19 May 2018  路  3Comments  路  Source: asciidoctor/asciidoctor

When I run asciidoctor i3shortcuts.adoc, the resulting HTML is styled correctly (image).

But if I run asciidoctor -s i3shortcuts.adoc, it generates HTML without styling (image).

Most helpful comment

WOW, what a great and fast and awesome response! I tested the command and it works like a charm. Thanks! Closing the issue.

All 3 comments

You are exactly describing the purpose of the --no-header-footer option. When enabled, you get just the embeddable HTML (the part inside the <body> tag) without any of the framing or styling. (The name of the option is somewhat misleading, but that's a legacy we inherited from AsciiDoc Py. See https://github.com/asciidoctor/asciidoctor/issues/1444).

If you intention is disable the header and footer banners, then you are looking for the noheader and nofooter attributes.

asciidoctor -a noheader -a nofooter i3shortcuts.adoc

I updated the description of this option in the man page and user manual to be more accurate.

WOW, what a great and fast and awesome response! I tested the command and it works like a charm. Thanks! Closing the issue.

Was this page helpful?
0 / 5 - 0 ratings