Format Commands

There following commands are to be written as text in the PDF.

CommandDescription
!id <ID>Set the ID of this page.
!snippet <ID>Start a PDF snippet here.
!endsnippet <JSON meta>End the current snippet here. The JSON metadata is optional.
!gen-page <bool>Set to true to generate the HTML page for this PDF.
!include <ID> <Params>Include a snippet here given its ID. The parameters string is optional.
!plainWrite plain HTML to the page here.
!sectionAdd a level 1 heading <h1>.
!subsectionAdd a level 2 heading <h2>.
!subsubsectionAdd a level 3 heading <h3>.

Furthermore, it is possible to reference another snippet by adding an annotation with a link of the form /snippet/snippet-id or /snippet/snippet-id|Label.

Stellar will crop the PDF between !snippet and !endsnippet commands (margins can be adjusted in the CLI parameters).