1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-11-18 00:13:55 +01:00
Commit Graph

168 Commits

Author SHA1 Message Date
Elisabeth Henry
ce3c47e447 Added BookOption enum 2016-02-22 21:18:24 +01:00
Elisabeth Henry
6b14cb5f05 EpubRender reuses some field of HtmlRenderer 2016-02-22 21:01:56 +01:00
Elisabeth Henry
3eaf363327 footnotes are now rendered (but as sidenotes) in HTML 2016-02-22 20:04:52 +01:00
Elisabeth Henry
f5bf5cfd02 updated changelog 2016-02-22 18:54:49 +01:00
Elisabeth Henry
4a0c27b418 better parser errors 2016-02-22 18:52:06 +01:00
Elisabeth Henry
e6e3c04186 Footnotes now implemented in the AST and LaTeX output 2016-02-22 18:46:12 +01:00
Elisabeth Henry
51bd591279 worked on stylesheet for tables 2016-02-22 17:42:12 +01:00
Elisabeth Henry
411a7066de table support for HTML/Latex 2016-02-22 17:22:36 +01:00
Elisabeth Henry
0391153865 cleaner no longer used in parser but in the various renderers 2016-02-22 16:20:47 +01:00
Elisabeth Henry
e6c1e03b12 added options to pulldown-cmark to enable footnotes and tables 2016-02-22 16:03:23 +01:00
Elisabeth Henry
de9a178214 binary: --create now can use keys/values set by --set 2016-02-22 04:42:54 +01:00
Elisabeth Henry
aa156a349f allow --set to include a list of key value pairs, not just one 2016-02-22 04:20:28 +01:00
Elisabeth Henry
9ace79f1b5 book now have a set_option method, allowing binary to --set anyone of the book option 2016-02-22 03:23:16 +01:00
Elisabeth Henry
0eda7fe17b HTML contained in markdown is rendered as text instead of being ignored 2016-02-22 03:22:41 +01:00
Elisabeth Henry
4a7465e4f9 --set can now be used multiple times to specify multiple options 2016-02-22 02:46:49 +01:00
Elisabeth Henry
abb4cfdc39 Binary now supports the generic --set [KEY] [VALUE] argument, allowing to override a wide range of options 2016-02-22 02:38:29 +01:00
Elisabeth Henry
19602c3bf5 helpers.rs: use Arg::from_usage to make code more concise 2016-02-22 02:06:13 +01:00
Elisabeth Henry
ef26c10c02 updated templates 2016-02-21 19:39:54 +01:00
Elisabeth Henry
f4cb25c8f8 removed verbose option from book config as it only makes sense on the command line 2016-02-21 18:31:13 +01:00
Elisabeth Henry
c5a1fcfe60 warning messages now printed on stderr, and only in verbose 2016-02-21 18:29:16 +01:00
Elisabeth Henry
bfe7a60e1f updated doc 2016-02-21 18:28:48 +01:00
Elisabeth Henry
b753149858 binary: added cover to default book generated 2016-02-21 16:54:03 +01:00
Elisabeth Henry
8625ac1262 html: fixed escaping html issue 2016-02-21 16:53:43 +01:00
Elisabeth Henry
561b0d4f9f refactored main.rs 2016-02-21 16:23:12 +01:00
Elisabeth Henry
0b3dabdae2 added --create option to binary 2016-02-21 06:58:37 +01:00
Elisabeth Henry
51270e0cec fixed issue on stable/beta 2016-02-21 06:31:57 +01:00
Elisabeth Henry
11c84726b8 fixed some escaping, now allow use output.xx instead of output_xxx in book file 2016-02-21 05:29:40 +01:00
Elisabeth Henry
3accc203d9 fixed latex escaping problem in title 2016-02-21 04:34:54 +01:00
Elisabeth Henry
80e0d50c53 nows tries to render odt if specified in book file 2016-02-21 01:55:16 +01:00
Elisabeth Henry
40b32226cc experimental support for odt 2016-02-21 01:49:58 +01:00
Elisabeth Henry
d474bce3d6 started to work on odt rendering but it's a pain:( 2016-02-20 22:52:10 +01:00
Elisabeth Henry
c6455dd98c added support for chapter whose title is hidden 2016-02-20 19:06:15 +01:00
Elisabeth Henry
0c97fde591 Changed license to LGPL 2016-02-20 18:44:48 +01:00
Elisabeth Henry
2e63a46546 rewrote escape_html function instead of using pasted one, and add escape_tex function 2016-02-20 18:35:48 +01:00
Elisabeth Henry
06f59b08f8 added options to binary 2016-02-20 16:56:07 +01:00
Elisabeth Henry
763c3671e8 started using clap to parse arguments 2016-02-20 05:49:41 +01:00
Elisabeth Henry
2ad66d7286 now supports epub3 (in theory) 2016-02-20 03:41:29 +01:00
Elisabeth Henry
48bd6db5e4 zipper now create directory when needs to be 2016-02-20 00:28:42 +01:00
Elisabeth Henry
91d99ca9a6 fixed a bug which caused error when crowbook runned on book in same directory 2016-02-20 00:10:31 +01:00
Elisabeth Henry
4725b0b7a6 fixed typo bug 2016-02-20 00:04:28 +01:00
Elisabeth Henry
829746a762 runned clippy, thus some minor corrections 2016-02-19 23:43:16 +01:00
Elisabeth Henry
e26c5978b6 updated book-example 2016-02-19 22:30:21 +01:00
Elisabeth Henry
c070f79573 fixed a bug when multiple chapters in same files were detected for any level of heading 2016-02-19 22:21:47 +01:00
Elisabeth Henry
559cc8fac7 added a way to set epub/html template and css 2016-02-19 22:17:10 +01:00
Elisabeth Henry
90504e2acc added a book_example 2016-02-19 21:35:49 +01:00
Elisabeth Henry
1db5f79107 add option to have custom command for latex->pdf 2016-02-19 17:19:42 +01:00
Elisabeth Henry
1f8f6129c2 some stuff 2016-02-19 16:54:00 +01:00
Elisabeth Henry
d460778ec2 removed dependency on zip (since we use command line anyway) 2016-02-19 16:26:20 +01:00
Elisabeth Henry
e60e173356 handles pdf support through pdflatex 2016-02-19 16:25:28 +01:00
Elisabeth Henry
15fb7064dd added a render_all method to book 2016-02-19 15:28:37 +01:00
Elisabeth Henry
c2b71fdd39 parsing in now done in book, once and for all 2016-02-19 14:59:37 +01:00
Elisabeth Henry
8709cf3aec a bit of cleaning 2016-02-19 08:05:18 +01:00
Elisabeth Henry
bcbe3a097b broke everything but am fixing it lol 2016-02-19 07:02:10 +01:00
Elisabeth Henry
54d4cbecdb added support for customized header numbering 2016-02-19 04:37:15 +01:00
Elisabeth Henry
3a1afc011c started working on latex renderer 2016-02-19 03:55:16 +01:00
Elisabeth Henry
ad16db489a forgot to add lib.rs in previous commit (thanks Travis for telling me) 2016-02-19 03:01:21 +01:00
Elisabeth Henry
86f18eef59 Epub renderergit statusgit status! 2016-02-19 02:56:43 +01:00
Elisabeth Henry
fde728f14d md renderer no longer moves its vector 2016-02-18 23:00:24 +01:00
Elisabeth Henry
61a6354398 html renderer no longer moves its vector 2016-02-18 22:58:34 +01:00
Elisabeth Henry
2160f5d0d8 compiles without warnings 2016-02-18 22:50:23 +01:00
Elisabeth Henry
9173e2f4e8 read config from file 2016-02-18 22:32:43 +01:00
Elisabeth Henry
eea9a7d0f6 html exports looks pretty good \o/ 2016-02-18 22:18:08 +01:00
Elisabeth Henry
10f58f9002 html renderer is starting to work \o/ 2016-02-18 22:05:54 +01:00
Elisabeth Henry
583623c23e moved from Cow to string because too painful sorry 2016-02-18 19:21:55 +01:00
Elisabeth Henry
69defe2d66 better error support 2016-02-18 18:53:57 +01:00
Elisabeth Henry
7027cc5076 started working on book structure 2016-02-18 18:28:45 +01:00
Elisabeth Henry
46d041b6c8 Parser: multiple Str(_) in a row are now merged. 2016-02-18 05:12:55 +01:00
Elisabeth Henry
940b5c99fa initial commit 2016-02-18 04:06:14 +01:00