Skip to content

Commit

Permalink
Log only inline content to stdout instead of the post-rendered one
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Nov 3, 2024
1 parent 5abe31f commit ac94f01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <dir>`** or **`--output <dir>`**: sets the directory of the output files. If unset, defaults to `./output`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ object PipelineInitialization {
afterParsing = { document ->
Log.debug { "AST:\n" + DebugFormatter.formatAST(document) }
},
afterPostRendering = { output ->
afterRendering = { output ->
Log.info(output)
},
)
Expand Down

0 comments on commit ac94f01

Please sign in to comment.