Releases: crowdagger/crowbook
Releases · crowdagger/crowbook
0.16.1
0.16.0
epub.titlepage.xhtml
can now be overriden (geobert)- Fix an issue where horizontal rules could be interpreted as additional front matter
- Generated PDF now include some metadata
- Fix internal links under Windows
0.15.2
- Fixed endless progress bar on renderer failure
0.15.1
html.css.colours
has been renamedhtml.css.colors
- Fixed issue with table of contents page numbers in PDF output
- Fixed issue with invalid XHTML in EPUB when using description terms
- Fixed left/right margins in LaTeX (which were reversed)
- LaTeX outputs of french documents now use enspaces and narrow non-breaking spaces
- New option:
tex:escape_nb_spaces
defaults totrue
and will uses TeX codes to display non-breaking spaces.
v0.15.0
- Moved from
pulldown-cmark
tocomrak
for parsing Markdown. This may have some
performances drawbacks but allows for a few more features:- Description lists
- Strikethrough
- Task items
- New option:
crowbook.files_mean_chapters
allow to enforce that each files
means a chapter break or to make sure that it doesn't (by default,
only true for numbered chapters).
- Fallback on Rust zip library when there is no
zip
command. - By default, don't add an empty chapter title for non numbered
"chapters" that don't contain a title. - Now uses
reqwest
instead ofhyper
to connect to languagetool/grammalecte. hyphenation
dependency is now optional.- Dependencies update.
- Fix type deduction issues for new rustc compliler
0.14.1
--stats
can now display more statistics when used with the
--verbose
option (if support for advanced statistics is compiled)- LaTeX outputs now make uses of user-defined
rendering.chapter
and
rendering.part
- Dependencies update
0.14.0
- New option:
autograph
is an autograph added after title.
- User interface:
- new argument
--autograph
prompts for an autograph. --list-options
and--stats
now use colours if available.- options description with
--list-options
are now wrapped.
- new argument
- Bugfixes:
- Preserve errors/warnings order with fancy UI.
- Clean secondary bar when there is an error instead of hanging the UI.
- LaTeX: fancy headers only applies to fancy pages (not chapter pages).
0.14.0 beta
- Bugfixes:
- EPUB: escape quotes in content.opf.
- LaTeX/PDF: allow hyphenations in typewriter font.
- User interface:
- User interface is quite fancier, with progress bars and all
- Debug/warning/info levels should be displayed in a more coherent manner
- New
--no-fancy
option if you don't like the fancy UI (or if it doesn't work
in your terminal) - New
--force-emoji
option to force emoji usage.
- Library interface:
- Removed
Book::set_verbosity
method (uses a logger library instead).
- Removed
- Now requires rustc >= 1.20.0
0.13.0
- Breaking changes:
- The
template.tex
template was quite modified. Crowbook now
uses custom command for most markdown elements, defined in the
template. This allow an user to redefine the way the book is
rendered without having to modify Crowbook itself. Unfortunately,
as tex templates for previous Crowbook versions won't work anymore. - the
resources.files
option is now a YAML list of strings, instead of a
comma-seprated string.
- The
- Add support for grammalecte grammar checker.
crowbook
command takes a new argument,-S
or--stats
which
displays stats on the book (currently, words and characters count).- Interactive fiction:
- Added conditional blocks.
- Options:
output.xxx
options can now take the "auto" value, which will infer the
output file name based on the book file name.output
is a new option that can specify a series of format to
render, with default output file name.proofread.grammalecte
andproofread.grammalecte.port
allow
respectively to enable grammar checking with Grammalecte and
(optionnally) to specify the port to connect.tex.margin.left
,tex.margin.right
,tex.margin.bottom
and
tex.margin.top
are new options that allow to specify margins
for LaTeX/PDF outputs.tex.paper_size
was renamedtex.paper_size
.
- HTML:
- Add JSON-LD structured data to the book's HTML files.
- Bugfixes:
- LaTeX: fix rendering of part/chapter (part previously displayed as
chapter and its first chapter as part) - EPUB:
- Fix
.rule
so it is centered despite KOBO CSS injection.
- Fix
- Fix resources/images inclusion when they are symlinks to the
actual file.
- LaTeX: fix rendering of part/chapter (part previously displayed as
0.12.0
This release includes a few new features, such as the possiblity to
include Markdown files as section/subsections and not only as chapter,
experimental support for superscript and subscript, and yet more
experimental support for writing interactive fiction.
- Book configuration file:
- It is now possible to include subchapters using the
--
command
(with one dash per sublevel:--- foo.md
will includefoo.md
as
a subsection).
- It is now possible to include subchapters using the
- Markdown:
- Added support for superscript and subscript features, using
respectivelyfoo^up^
orbar~down~
syntax.
- Added support for superscript and subscript features, using
- New options:
rendering.chapter
: change what is displayed in place of
"chapter".rendering.part
: change what is displayed in place of "part".html.chapter.template
andhtml.part.template
allow to tune a
little how the chapters and parts are displayed in HTML.tex.hyperref
, if set tofalse
, will disable hyperrefs for
local links. Can be useful for some files.crowbook.html_as_text
, if set to false, will not treat HTML as
text but ignore it.subtitle
, as its name suggest, set the subtitle of a book.crowbook.markdown.superscript
can enable or disable superscript/subscript "extension".
- Rendering:
- Change the way chapters are displayed by default.
- PDF output now has a better-looking (hopefully) title page.
- Internal links are a bit more flexible, e.g. if you link to
Readme.html
it will now try to link to the chapter corresponding
toReadme.md
.
- Bugfixes:
- LaTeX:
- Fix bug in syntax highlighting.
- Fix label placements (and thus navigation inside PDF document).
- EPUB:
- Add unnamed but numbered chapters to the TOC.
- Fix HTML escaping issue for chapter titles.
- Fix the way parts were handled in the TOC.
- Book configuration file:
- Fix issue when setting custom number for parts.
- LaTeX:
- Crowbook now requires rustc >= 1.17.0