diff --git a/README.md b/README.md index d021e4d2..4ff64d74 100644 --- a/README.md +++ b/README.md @@ -173,12 +173,14 @@ Java 17 or higher is required. Running the program with no command-line arguments runs it in REPL mode. This is great for familiarizing yourself with Quarkdown, but it's probably not what you're looking for. -Running `quarkdown file.qmd` will compile the given file, save the output to file and log its content. +Running `quarkdown file.qmd` will compile the given file and save the output to file. > If the project is composed by multiple source files, the target file must be the root one, i.e. the one that includes the other files. > > - [How to include other files?](https://github.com/iamgio/quarkdown/wiki/including-other-quarkdown-files) +In both modes, the inline output is printed to stdout at the end of each execution. + ### Options - **`-o `** or **`--output `**: sets the directory of the output files. If unset, defaults to `./output`. diff --git a/cli/src/main/kotlin/eu/iamgio/quarkdown/cli/PipelineInitialization.kt b/cli/src/main/kotlin/eu/iamgio/quarkdown/cli/PipelineInitialization.kt index 370c9ede..0c144940 100644 --- a/cli/src/main/kotlin/eu/iamgio/quarkdown/cli/PipelineInitialization.kt +++ b/cli/src/main/kotlin/eu/iamgio/quarkdown/cli/PipelineInitialization.kt @@ -39,7 +39,7 @@ object PipelineInitialization { afterParsing = { document -> Log.debug { "AST:\n" + DebugFormatter.formatAST(document) } }, - afterPostRendering = { output -> + afterRendering = { output -> Log.info(output) }, )