This page lists all the options available for the compiler and REPL.
Running quarkdown c file.qd compiles the given file and saves the output to file.
If the project is composed of multiple source files, the target file must be the root one, i.e. the one that includes the other files.
-p or --preview: enables automatic content reloading after compiling.
If a webserver is not running yet, it is started and the document is opened in the default browser.
This is required in order to render paged documents in the browser.
-w or --watch: recompiles the source every time a file from the source directory is changed.
-b <browser> or --browser <browser>: sets the browser to launch the preview with. Defaults to default. Accepted values:
defaultnonexdg (uses xdg-open). default falls back to this.chromechromiumfirefoxedge (Windows only)BROWSER_<NAME> environment variable--server-port <port>: optional customization of the local webserver’s port. Defaults to 8089.
Combine
-p -wto achieve live preview.
--pdf: produces a PDF file. Learn more in the PDF export page.
-o <dir> or --out <dir>: sets the directory of the output files. Defaults to ./output.
--out-name <name>: sets the name of the output resource to be saved inside the output directory.
Defaults to the name of the document, set via .docname.
Special characters will be replaced with dashes in the actual file name.
-r <renderer> or --render <renderer>: sets the target renderer. Defaults to html. Accepted values:
htmlhtml-pdf (equivalent to -r html --pdf)text (plain text)--allow <permission> / --deny <permission>: grants or revokes a permission (repeatable).
Accepted values: project-read, global-read, network, native-content, all.
By default, project-read and native-content are granted.-l <dir> or --libs <dir>: sets the directory where external libraries can be loaded from. Defaults to <install dir>/lib/qd.
Learn more in the external libraries page.--pipe: outputs the generated content to stdout instead of saving it to file and suppresses other logs,
useful for piping to other commands.
--clean: deletes the content of the output directory before producing new files. Destructive operation.
--strict: forces the program to exit if an error occurs. When not in strict mode, errors are shown as boxes in the document.
--nowrap: prevents the rendered output from being wrapped in a full document structure.
If enabled in HTML rendering, only the inner content of the <body> tag is produced.
--pretty: produces pretty output code. This is useful for debugging or to read the output code more easily,
but it should be disabled in production as the results might be visually affected.
--no-media-storage: turns the media storage system off.
--subdoc-naming <strategy>: sets the subdocument output naming strategy. Defaults to file-name. Accepted values:
file-name: uses the subdocument’s file name (human-readable, but prone to collisions)collision-proof: appends a hash to file-name to minimize name collisionsdocument-name: uses the document name set via .docname, falling back to file-name if unset-Dloglevel=<level> (JVM property): sets the log level. If set to warning or higher, the output content is not printed out.