Elisabeth Henry
ddf1b8894c
Only include latex packages if the feature is used
2017-03-19 08:50:37 +01:00
Elisabeth Henry
eddf200944
Add url to list of features detected while parsing
2017-03-19 08:50:16 +01:00
Elisabeth Henry
c18c6f554e
Fix condition for avoiding syntect init in LaTeX
2017-03-19 08:12:19 +01:00
Elisabeth Henry
2f84869cd8
Don't init syntect if there are no code blocks in the document
2017-03-19 07:51:05 +01:00
Elisabeth Henry
c5adfc8a49
Only display a global warning for all features that are not implemented in ODT
2017-03-19 07:42:55 +01:00
Elisabeth Henry
f1fa666dc4
Detect which features are used at parse time
2017-03-19 07:42:27 +01:00
Elisabeth Henry
d53ce32c60
Downgrade some error/warning levels
2017-03-19 07:07:41 +01:00
Elisabeth Henry
b44f86be3c
Revert table tests to before API changes
2017-03-19 06:56:59 +01:00
Elisabeth Henry
1d7ce5d1e3
Deprecate crowbook.verbose
2017-03-19 06:54:53 +01:00
Elisabeth Henry
cb13570a80
Change default infolevel
...
Warnings are now displayed by default. As a consequence, the
--verbose option is now equivalent to the old --debug option, which
is suppressed.
2017-03-19 06:50:12 +01:00
Elisabeth Henry
3b29a69b68
Revert some changes done to support pulldown-cmark 0.0.9
...
Downside: this revert will have to be reverted to actually support
tables alignment.
Upside: not sure this feature is really that useful for Crowbook's
needs, and it doesn't require a breaking API change.
2017-03-19 06:30:52 +01:00
Elisabeth Henry
c8de4c2524
Fix typo in error message for link not found and move it to warning
2017-03-19 06:24:51 +01:00
Elisabeth Henry
32d7d75df8
Fix table test
2017-03-16 15:33:04 +01:00
Elisabeth Henry
7f0579a3dd
Make default alignment to None instead of Center (not used anyway though)
2017-03-16 15:09:01 +01:00
Elisabeth Henry
b729d3eab7
Upgrade to pulldown-cmark 0.0.9
...
This is still a bit unsatisfactory as the alignment is not currently used
for tables.
2017-03-14 19:37:31 +01:00
Elisabeth Henry
619e481148
Use html.highlight.theme for HTML dir rendering (instead of epub.highlight.theme)
2017-03-05 14:46:09 +01:00
Elisabeth Henry
f4217f30cb
Avoid creating an empty file if a renderer fails
...
This fixes #36 .
2017-03-04 15:16:16 +01:00
Elisabeth Henry
37e67a53dd
Make error message a bit clearer when running command in tmpdir fails.
...
Related to #35
2017-01-23 04:38:13 +01:00
Elisabeth Henry
bd3dcc00ac
Fix html test
2017-01-16 00:22:59 +01:00
Elisabeth Henry
3730f275a7
Add html.highlight.theme, tex.highlight.theme and epub.highlight.theme options
2017-01-15 23:28:10 +01:00
Elisabeth Henry
9301963616
Deprecate proofread.nb_spaces option
2017-01-15 04:16:01 +01:00
Elisabeth Henry
cb9f4d590b
Use the nnbsp escaping function of crowbook_text_processing instead of np_spaces
2017-01-15 04:10:05 +01:00
Elisabeth Henry
16aeb51b9f
Continue when setting an option fails instead of aborting
2017-01-14 01:43:28 +01:00
Elisabeth Henry
16b0ebd79b
Fix html test
2017-01-14 01:39:52 +01:00
Elisabeth Henry
8afab1509e
Fix build error when syntect feature is disactivated
2017-01-14 01:07:29 +01:00
Elisabeth Henry
474e468354
Make syntect default option for syntax highlighting
2017-01-14 00:26:50 +01:00
Elisabeth Henry
bda3f3517f
Add rendering.highlight.theme option
2017-01-14 00:20:44 +01:00
Elisabeth Henry
c5bd30cf10
Use EpubBuilder::add_cover_image
2017-01-13 19:42:58 +01:00
Elisabeth Henry
fe98e6f326
Use write! macro instead of push_str(&format!(...))
2017-01-12 02:46:04 +01:00
Elisabeth Henry
02d6cf4f48
Remove crossbeam dependency
2017-01-11 20:36:42 +01:00
Elisabeth Henry
0879b7be04
Use rayon instead of crossbeam in Book::render_all
2017-01-11 20:34:55 +01:00
Elisabeth Henry
e0820c7c72
Use rayon instead of crossbeam for grammar checking
2017-01-11 20:02:23 +01:00
Elisabeth Henry
36d18f9c31
Add the tex.stdpage option
...
Related to #34
2017-01-10 21:23:33 +01:00
Elisabeth Henry
3d83274fa1
Refactor compile_str function
2017-01-10 21:07:49 +01:00
Elisabeth Henry
a30addf218
Apply more clippy lints
2017-01-09 17:45:59 +01:00
Elisabeth Henry
6752f1566a
Run clippy on src
2017-01-09 17:08:07 +01:00
Elisabeth Henry
99baa20353
Avoid outputting latex code for repetition in code blocks
2017-01-06 20:38:38 +01:00
Elisabeth Henry
b8828cb350
Don't output the HTML code for repetition in code blocks
2017-01-06 20:35:35 +01:00
Elisabeth Henry
e54d250a44
Make proofread highligting less invasive
2017-01-06 20:19:50 +01:00
Elisabeth Henry
762099e382
Clean caribon's usage
2017-01-06 19:46:16 +01:00
Elisabeth Henry
dcf8a63fe1
Add license information to grammar_check.rs
2017-01-06 16:52:33 +01:00
Elisabeth Henry
3dc92da718
Avoid initializing syntect if it is not used
2017-01-06 03:29:11 +01:00
Elisabeth Henry
6e6055debb
Use tabularx to break lines in tabulars
2017-01-05 16:24:03 +01:00
Elisabeth Henry
72cf5ecdfe
Make quotes in italics
2017-01-05 06:53:38 +01:00
Elisabeth Henry
5590e794a9
Insert \allowbreak in code and code blocks
2017-01-05 05:31:33 +01:00
Elisabeth Henry
7837310f22
Add frame around code blocks in latex
2017-01-05 05:08:53 +01:00
Elisabeth Henry
ba32705827
Add colour suport for syntax highlighting in LaTeX
2017-01-05 04:11:16 +01:00
Elisabeth Henry
d98d31ff38
Add support for syntect in latex rendering
2017-01-05 03:56:27 +01:00
Elisabeth Henry
811b53f1b5
Fix bookoptions.rs
2017-01-05 02:30:18 +01:00
Elisabeth Henry
725bb3291a
Avoid exporting highlight.js and its CSS if syntect highlighting is activated
2017-01-05 02:16:51 +01:00