Elisabeth Henry
39cebebd5c
Use mime_guess
library to guess mime types from extension
...
EPUB renderer needs to specify a mime type for each file in the
manifest. For images, it previously used a simple function which only
worked currently on png, jpg and gif extensions. Using this library
should be more reliable.
It is also a first step in adressing #6 .
2016-03-04 17:41:24 +01:00
Elisabeth Henry
54ca041d5a
Clean Book constructors API
...
- Book::new takes an additional `options` parameter.
- Book::new_from_file_with_options becomes `new_from_file`, which got
deleted.
This way, each constructor takes an `options` parameter (which can
be set to `&[]` for default options), allowing derived constructors to
not replicate the setting options code.
2016-03-03 20:56:28 +01:00
Elisabeth Henry
cc7747f20f
Fix typos in ChangeLog.md
2016-03-03 18:23:28 +01:00
Elisabeth Henry
b58b73eb02
Render CSS differently according to lang
...
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.
2016-03-03 17:57:38 +01:00
Elisabeth Henry
7b93cb4479
Bump preventively version to 0.5.0-unreleased for semantic versioning
2016-03-03 17:40:38 +01:00
Elisabeth Henry
4b22f9a339
Add enable_yaml_mode option
...
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`.
2016-03-02 20:38:35 +01:00
Elisabeth Henry
7af8e1b633
Update ChangeLog.md
2016-03-02 04:10:59 +01:00
Elisabeth Henry
3a5f16a94a
Bump version to 0.4.0
2016-03-01 21:51:14 +01:00
Elisabeth Henry
aa6cc9f3a7
Update documentation
2016-03-01 21:41:23 +01:00
Elisabeth Henry
81180d39cf
Update ChangeLog.md
2016-03-01 18:08:06 +01:00
Elisabeth Henry
ae2f43193c
Make BookOptions::set returns the previous option, if already set
...
This way, it is possible to display a debug message or a warning when
an option is overriden with a new setting.
2016-03-01 15:33:24 +01:00
Elisabeth Henry
60564c2793
Update ChangeLog.md
2016-03-01 15:12:03 +01:00
Elisabeth Henry
fa5393641b
Crowbook now ignores YAML blocks (i.e., delimited by two lines containing ---, must contain valid YAML) in Markdown files
2016-03-01 01:28:36 +01:00
Elisabeth Henry
f60693416f
updated Bugs and Changelog
2016-02-29 14:12:47 +01:00
Elisabeth Henry
2a2def3473
updated changelog
2016-02-29 01:41:56 +01:00
Elisabeth Henry
d32bccd7a9
updated changelog
2016-02-29 00:47:05 +01:00
Elisabeth Henry
9d8cf18664
updated documentation and bumped version
2016-02-27 17:02:35 +01:00
Elisabeth Henry
280dd1a079
updated changelog
2016-02-27 04:50:04 +01:00
Elisabeth Henry
528f1ac000
updated changelog
2016-02-27 00:07:22 +01:00
Elisabeth Henry
33edcdb905
updated Chaneglog
2016-02-26 23:37:40 +01:00
Elisabeth Henry
d68c24d754
updated changelog
2016-02-26 17:46:57 +01:00
Elisabeth Henry
59f4aab0fe
updated changelog
2016-02-26 02:08:59 +01:00
Elisabeth Henry
38433292d5
improved documentation of parser.rs
2016-02-26 00:51:35 +01:00
Elisabeth Henry
bd25114bd4
moved token, cleaner and parser public again
2016-02-26 00:19:19 +01:00
Elisabeth Henry
2991099ecd
modules token and parser are now private
2016-02-25 23:59:33 +01:00
Elisabeth Henry
792fe1e7eb
preventively bumped version to 0.3.0-unreleased
2016-02-25 23:35:29 +01:00
Elisabeth Henry
a47c4c434f
bumped version to 0.2.2
2016-02-25 22:15:06 +01:00
Elisabeth Henry
570b5aeb99
bumped version preventively to 0.2.2-unreleased
2016-02-25 21:49:43 +01:00
Elisabeth Henry
27e0b239ca
bumped version
2016-02-25 20:13:12 +01:00
Elisabeth Henry
665f5a49a2
updated changelog
2016-02-25 19:58:19 +01:00
Elisabeth Henry
5db20f70eb
updated Changelog
2016-02-25 19:26:29 +01:00
Elisabeth Henry
3fba98fc3b
html: bug fix in numbering of unnumbered chapters
2016-02-25 19:12:45 +01:00
Elisabeth Henry
c363521344
bumped version to 0.2.0
2016-02-25 16:37:23 +01:00
Elisabeth Henry
de34b7478a
fixed typo in ChangeLog.md
2016-02-25 16:06:12 +01:00
Elisabeth Henry
cd869cd12d
clarified ChangeLog.md
2016-02-25 16:02:08 +01:00
Elisabeth Henry
770822ac43
Book now supports multiline strings
2016-02-25 15:29:35 +01:00
Elisabeth Henry
dae61f0eb2
updated changelog
2016-02-24 22:33:14 +01:00
Elisabeth Henry
c127ce615a
updated documentation to reflect previous commit
2016-02-23 23:45:35 +01:00
Elisabeth Henry
8cbab5ecc7
updated boo_example/arguments.md
2016-02-23 23:20:21 +01:00
Elisabeth Henry
e6c029b03b
fixed typo in changelog
2016-02-23 22:46:45 +01:00
Elisabeth Henry
41d06c1749
updated changelog
2016-02-23 06:02:37 +01:00
Elisabeth Henry
70f801706d
updated changelog
2016-02-23 05:07:04 +01:00
Elisabeth Henry
eaed281e99
updated changelog
2016-02-22 23:23:04 +01:00
Elisabeth Henry
67773eb07c
updated changelog
2016-02-22 20:06:14 +01:00
Elisabeth Henry
f5bf5cfd02
updated changelog
2016-02-22 18:54:49 +01:00
Elisabeth Henry
57f0ae08d7
changelog updated to 0.1.0
2016-02-21 21:25:01 +01:00
Elisabeth Henry
c668efb9d3
added empty changelog
2016-02-20 17:24:07 +01:00