This is currently only used to display "–" for list items if lang is
set to "fr", and to default bullets otherwise, but it is now possible
to add more variations.
This option activates or disables the parsing of YAML block. If
disabled, YAML blocks will be ignored and won't be used to try to set
Crowbook's options.
enable_yaml_mode is false by defaut, but set to true when crowbook is
called with `--single`.
When run with --set, Crowbook now sets book options before chapters
are set. This allows to set book_path (or its variants) with --set
(previously it had no effect because it was only in place after the
chapters were parsed.)
Should fix #5.
This option makes LaTeX uses the article class instead of book, and
uses the default \maketitle command for it. This option is set to
false by default, but automatically enabled when runned with
--single.
(This commit also fixes a bug for path resolution when crowbook
is runned in single. Thiss should have been a separate commit, ooops.)
Resolves: #3
By default, links are computed relatively to the Markdown file that
uses them. Setting `base_path` allows to override this behaviour: in
this case, links will be relative to this path.
`base_path` sets the paths both for images and links, but it is
possible to set them independently, respectively with base_path.images
and base_path.links. Note that if base_path is set, these two options
won't be looked at.
Should fix issue #5.
This should allow a single markdown file to link to e.g. a cover file
and still be rendered correctly even if crowbook is called from
another directory.
This option allows Crowbook to parse a single MarkDown file,
defaulting to hide the chapters' headings. This should allow to get
ride of `.book` file for short stories.
Resolves: #2, #3
Previously, it was a debug message, but since it is probable the user
would actually want this to be seen as YAML it's better if the message
is more visible.
`BookOptions` now internally uses the yaml_rust library. This should
not change much for an end-user perspective, but should make easy to
allow to configure a `Book` with a YAML block inside a markdown file.
Since the "old" Crowbooks's config format was similar, but somewhat
different, to markdown, this might cause some bugs,
though. Particularly, strings should now be escaped with "" in some
casess (e.g. if it contains special characters). On the other hand, it
*allows* to optionally espace a string with these quotes, which wasn't
possible until then and might be useful in some cases.
doc or preceded by an empty line, to avoid the case where
Foo
---
Bar
---
gets counted as a YAML block. The only ambiguous case left is if you had wanted to make two rules,
but can easily be avoided by using either *** for rules, or by using more dashes.