Converts books written in Markdown to HTML, LaTeX/PDF and EPUB
LGPL-2.1 License
Bot releases are visible (Hide)
Published by lise-henry about 1 year ago
epub.titlepage.xhtml
can now be overriden (geobert)Published by lise-henry over 4 years ago
Published by lise-henry over 4 years ago
html.css.colours
has been renamed html.css.colors
tex:escape_nb_spaces
defaults to true
and will uses TeX codes to display non-breaking spaces.Published by lise-henry over 5 years ago
pulldown-cmark
to comrak
for parsing Markdown. This may have somecrowbook.files_mean_chapters
allow to enforce that each fileszip
command.reqwest
instead of hyper
to connect to languagetool/grammalecte.hyphenation
dependency is now optional.Published by lise-henry over 6 years ago
--stats
can now display more statistics when used with the--verbose
option (if support for advanced statistics is compiled)rendering.chapter
andrendering.part
Published by lise-henry almost 7 years ago
autograph
is an autograph added after title.--autograph
prompts for an autograph.--list-options
and --stats
now use colours if available.--list-options
are now wrapped.Published by lise-henry about 7 years ago
--no-fancy
option if you don't like the fancy UI (or if it doesn't work--force-emoji
option to force emoji usage.Book::set_verbosity
method (uses a logger library instead).Published by lise-henry over 7 years ago
template.tex
template was quite modified. Crowbook nowresources.files
option is now a YAML list of strings, instead of acrowbook
command takes a new argument, -S
or --stats
whichoutput.xxx
options can now take the "auto" value, which will infer theoutput
is a new option that can specify a series of format toproofread.grammalecte
and proofread.grammalecte.port
allowtex.margin.left
, tex.margin.right
, tex.margin.bottom
andtex.margin.top
are new options that allow to specify marginstex.paper_size
was renamed tex.paper_size
..rule
so it is centered despite KOBO CSS injection.Published by lise-henry over 7 years ago
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.
--
command--- foo.md
will include foo.md
asfoo^up^
or bar~down~
syntax.rendering.chapter
: change what is displayed in place ofrendering.part
: change what is displayed in place of "part".html.chapter.template
and html.part.template
allow to tune atex.hyperref
, if set to false
, will disable hyperrefs forcrowbook.html_as_text
, if set to false, will not treat HTML assubtitle
, as its name suggest, set the subtitle of a book.crowbook.markdown.superscript
can enable or disable superscript/subscript "extension".Readme.html
it will now try to link to the chapter correspondingReadme.md
.Published by lise-henry over 7 years ago
foo_raw
value.<guide>
.Published by lise-henry over 7 years ago
syntect
(which--debug
argument has been removed.crowbook.verbose
has been deprecated, at it should be set by the CLI.Published by lise-henry over 7 years ago
tex.stdpage
: if set to true
, will use the stdpage
package torendering.highlight.theme
allows to specifies a theme for syntaxrendering.highlight
is set tohtml.highlight.theme
, epub.highlight.theme
andtex.highlight.theme
allow to specify a theme forproofread.nb_spaces
.[syntect](https://crates.io/crates/syntect)
is now the defaultrendering.highlight
. Concretely, this means that by defaultcrowbook
is run instead of[highlight.js](https://highlightjs.org/)
.mimetype
of EPUB files (make sure it is always "stored" andzip
command).syntect
(at the cost of performances) if itzip
command is not present).Published by lise-henry almost 8 years ago
rendering.highlight
to syntect
(see below).true
false
).mdframed
package.\allowbreak{}
directive.
, /
, _
, ...).tabularx
, which allows to break too longrendering.highlight
can be set to none
, highlight.js
(bysyntect
(doesn't necessitate javascript, andhtml.highlight_code
(use rendering.highlight
instead).Published by lise-henry almost 8 years ago
Substantial changes in this release, the more important one being
support for parts!
--to
should now be consistent for all output--output
is set to -
, prints to stdout.<BOOK>
is set to -
, reads from stdin.--output
is now interpreted relatively to<BOOK>
is or itstoc.ncx
file now displays links to "title" and (if set)toc.ncx
file now displays toc levels below chapter.rendering.inline_toc
is set to true
.epub.toc.extras
, set to true
by default, will add links to theepub.escape_nb_spaces
, similar to html.escape_nb_spaces
andrendering.chapter.roman_numerals
, if set to true
, will display chapterrendering.part.roman_numerals
, if set to true
(it is byrendering.part.template
specifies the numbering scheme of parts.rendering.part.reset_counter
, if set to true
(it is byimport_config
renamed to import
.rendering.chapter_template
renamed to rendering.chapter.template
.html_single.html
renamed to html.standalone.template
.html_single.js
renamed to html.standalone.js
.html_single.one_chapter
renamed to html.standalone.one_chapter
.output.html_dir
renamed to output.html.dir
.output.proofread.html_dir
renamed to output.proofread.html.dir
.html_dir.index.html
and html.dir.chapter.html
have been mergedhtml.dir.template
.tex.font_size
renamed to tex.font.size
.rendering.initials
Published by lise-henry almost 8 years ago
tex.font_size
specifies an optional font size (in pt) passed totex.title
can be set to false
to avoid rendering the title\maketitle
.tex.paper_size
specifies the paper size for PDF output.tex.template.add
, html.css.add
and epub.css.add
allow totex.template.add
,html.css.add
and epub.css.add
.html.icon
allows to specify the path of an icon for HTML documents.Published by lise-henry almost 8 years ago
musl
library so theyauthor
and title
fields.latex
or zip
commands.term
library in order to display colours correctly--lang
(or -L
) allows to set the runtimeLANG
environment variable.--list-options
no longer uses colours as it caused problemsless
.Published by lise-henry almost 8 years ago
Only minor changes in this version:
author
and title
's default values are both set to the emptyAnonymous
and Untitled
.input.autoclean
has been renamed input.clean
.input.smart_quotes
has been renamed input.clean.smart_quotes
.input.clean.ligature.dashes
will (if set to true)--
to en dash (–
) and ---
to em dash (—
).input.clean.ligature.guillemets
will (if set to true)<<
and >>
to french guillemets («
and »
).html_single.one_chapter
and rendering.inline_toc
arePublished by lise-henry about 8 years ago
Fixed a bug in fr.po
translation that prevented building from fresh install.
Since there are no other changes besides that, for the binaries, see the 0.10.0 release, which should not have been affected by this issue.
Published by lise-henry about 8 years ago
This release contains some breaking changes (mostly for the API, which has been split in separate libraries). It alse features some internationalization support, and the program should now be tranlated if your LANG
environment
variable is set to french.
lang
must now be done using lang_LANG
(e.g.lang_fr
, lang_en
, and so on). This might impact custom epub.css
and html.css
escape
module has been moved to a separate crate,crowbook_text_processing
. The cleaner
module is no longercrowbook_text_processing
.html.css.colours
allows to provide a CSS file that only redefinecrowbook --print-template html.css.colours
.input.smart_quotes
: if set to true
, tries to replace '
and "
by curly quotes.--quiet
(or -q
) argument, that makes crowbook run without
and