Shuhei Kadowaki
48adeff932
serious fix
2020-05-24 03:38:32 +09:00
Shuhei Kadowaki
a7de8f5f58
minor fix
2020-05-24 03:17:24 +09:00
Shuhei Kadowaki
60fc450c88
Merge pull request #341 from JunoLab/avi/preprefactor
...
pre #338
2020-05-24 03:14:11 +09:00
Shuhei Kadowaki
1fb40645ed
refactors: almost just about code styles, doesn't change any behaviour
2020-05-24 02:36:32 +09:00
Shuhei Kadowaki
9ca328f468
add TODO
2020-05-23 23:50:28 +09:00
Shuhei Kadowaki
d84504267b
addspaces -> addlines
2020-05-23 23:49:29 +09:00
Shuhei Kadowaki
29ff436a00
consistent and clearer terminology:
...
- formatted -> body/rendered
- wdate -> weave_date
- wsource (or source) -> weave_source
- wdate -> weave_date
2020-05-23 23:05:36 +09:00
Shuhei Kadowaki
f4caba1561
maxlog for deprecation warning
2020-05-23 22:51:17 +09:00
Shuhei Kadowaki
3c76b804dc
separate format logic from WeaveDoc:
...
- this is just a first step, though
2020-05-23 22:16:56 +09:00
Shuhei Kadowaki
f71a491847
rm unused stuff
2020-05-23 22:04:01 +09:00
Shuhei Kadowaki
af45cc01ab
even more clean up
2020-05-23 22:03:40 +09:00
Shuhei Kadowaki
31f670b74c
Merge pull request #339 from JunoLab/avi/pandoc
...
refactor pandoc code:
2020-05-23 21:59:42 +09:00
Shuhei Kadowaki
0f94c7b49c
fix case when `weave_options` are empty
2020-05-23 21:18:16 +09:00
Shuhei Kadowaki
54ccd9b1ed
refactor pandoc code:
...
- more sensible err handling
- annotate TODO comments
2020-05-23 21:15:05 +09:00
Shuhei Kadowaki
3f4ba672b3
Revert "rm unused dict push!"
...
This reverts commit ef295e9a24
.
2020-05-23 20:07:59 +09:00
Shuhei Kadowaki
745abe176c
Revert "rm unused field from WeaveDoc"
...
This reverts commit 301f9b2f27
.
2020-05-23 20:07:41 +09:00
Shuhei Kadowaki
301f9b2f27
rm unused field from WeaveDoc
2020-05-23 20:03:38 +09:00
Shuhei Kadowaki
ef295e9a24
rm unused dict push!
2020-05-23 19:52:00 +09:00
Shuhei Kadowaki
a03a1d4c34
EXAMPLE_FOLDER
2020-05-23 19:42:19 +09:00
Shuhei Kadowaki
8aa8f0c4df
easy doc access
2020-05-18 22:59:18 +09:00
Shuhei Kadowaki
b4c2bbea45
deprecate `options`, change to `weave_options`:
...
- avoid unexpected header stripping (`options` sounds too general)
- deprecated `options` support will be remove within ≥v0.11
2020-05-18 22:10:26 +09:00
Shuhei Kadowaki
4113402908
rename `latex_keep_unicode` to `keep_unicode`, handle this in `format`
2020-05-17 12:17:24 +09:00
Shuhei Kadowaki
249c94a5c1
avoid manipulation of global struct
2020-05-17 12:14:30 +09:00
Shuhei Kadowaki
101b170ea6
some support for dynamic YAML `weave` configuration
2020-05-17 11:45:39 +09:00
Shuhei Kadowaki
6d1732247a
a bit refactor
2020-05-17 11:10:25 +09:00
Shuhei Kadowaki
b7233b468e
no `term` option for inline code chunk
2020-05-17 11:05:30 +09:00
Shuhei Kadowaki
405deb3681
reorder things
2020-05-17 10:30:33 +09:00
Shuhei Kadowaki
87ba87d2d1
resolve CSS theme path relative to a target document when given in YAML
2020-05-17 10:29:01 +09:00
Shuhei Kadowaki
cec388e94f
add Weave version
2020-05-17 01:16:59 +09:00
Shuhei Kadowaki
0831144393
Merge pull request #311 from JunoLab/avi/limitdisplay
...
limit display:
2020-05-17 00:18:12 +09:00
Shuhei Kadowaki
e60f066d31
fix when a header value is not `String`
2020-05-16 23:45:41 +09:00
Shuhei Kadowaki
f86f5a7bd0
preserve header when weaving to Hugo markdown
2020-05-16 23:31:27 +09:00
Shuhei Kadowaki
5fb3fae741
no ANSI chars
2020-05-16 23:11:05 +09:00
Shuhei Kadowaki
7b53eb8e9e
limit display:
...
- for now if we try to render a "big object" like a table with many
rows, Weave tries to render all of the result and it can lead to that a
document can't even be opened
2020-05-16 23:11:05 +09:00
Shuhei Kadowaki
58bc741b7f
detect doctype when running a doc
2020-05-16 23:10:44 +09:00
Shuhei Kadowaki
bca3ee7dd1
LTS compat ...
2020-05-16 21:04:58 +09:00
Shuhei Kadowaki
ba8e9f4724
fix header handling in noweb doc
2020-05-16 20:33:48 +09:00
Shuhei Kadowaki
99a50ad86f
integrate with Juno progress bar
2020-05-16 19:52:56 +09:00
Shuhei Kadowaki
2a6ee38850
fix code chunk line numbers
2020-05-16 19:52:24 +09:00
Shuhei Kadowaki
c1cf566c53
refactor format.jl
2020-05-16 17:59:17 +09:00
Shuhei Kadowaki
0d3d3a8c19
rm code ...
2020-05-16 17:59:04 +09:00
Shuhei Kadowaki
6d91ab6512
no explicit header support in `convert_doc`
2020-05-16 17:53:46 +09:00
Shuhei Kadowaki
17c2151d86
a bit refactor:
...
- don't match slide `---` separator as header start/end
- recognize `doctype` in construction
2020-05-16 01:49:30 +09:00
Shuhei Kadowaki
492d1f330b
dynamic YAML option specification
2020-05-16 01:47:52 +09:00
Shuhei Kadowaki
42115e7d52
rename writer.jl -> converter.jl
2020-05-16 00:43:33 +09:00
Shuhei Kadowaki
094ebea6cf
simplify converter functions
2020-05-16 00:32:28 +09:00
Shuhei Kadowaki
7c2eb23bcd
small refactors (mostly about code styles)
2020-05-16 00:32:09 +09:00
Shuhei Kadowaki
bc0f687352
rm header_args
2020-05-10 15:55:37 +09:00
Shuhei Kadowaki
2e19930565
Merge pull request #323 from JunoLab/avi/bang
...
use bangs for destructive functions
2020-05-10 14:28:40 +09:00
Shuhei Kadowaki
54e50a54cb
users should load Cairo
2020-05-10 14:07:55 +09:00
Shuhei Kadowaki
d809ddf703
Merge pull request #322 from JunoLab/avi/require
...
don't load Weave Plots submodules into user's module
2020-05-10 14:06:09 +09:00
Shuhei Kadowaki
e459bfb87d
use bangs for destructive functions
2020-05-10 13:56:09 +09:00
Shuhei Kadowaki
ede31bcf74
don't load Weave Plots submodules into user's module
2020-05-10 13:35:54 +09:00
Shuhei Kadowaki
e89d5da250
rm unncessary `Symbol` spec:
...
- change `informat` and `doctype` options to
`Union{NothingAbstractString}`
2020-05-10 13:20:44 +09:00
Shuhei Kadowaki
4b6fc2d913
fix typings
2020-05-10 00:01:49 +09:00
Shuhei Kadowaki
c825076e36
simplify imports
2020-05-10 00:01:41 +09:00
Shuhei Kadowaki
68f72bdfb3
small updates
2020-05-09 23:55:11 +09:00
Shuhei Kadowaki
4dae2a0816
`WEAVE_OPTION_NAME`
2020-05-09 22:42:05 +09:00
Shuhei Kadowaki
36bdd4f82b
remove weird default constructor for `WeaveDoc`
2020-05-09 22:33:58 +09:00
Shuhei Kadowaki
5f7cf529b9
chunks.jl -> types.jl
2020-05-09 21:03:00 +09:00
Shuhei Kadowaki
750b7624e0
refactor readers.jl:
...
- avoid unnecessary overloading on `parse_doc`
- split readers.jl into multiple scripts
2020-05-09 20:17:53 +09:00
Shuhei Kadowaki
79579053f1
refactor tests:
...
- simpler module evaluation test
- remove useless include_weave test
2020-05-09 17:27:51 +09:00
Shuhei Kadowaki
d4413a1d78
clear sandbox module correctly
2020-05-09 16:09:11 +09:00
Shuhei Kadowaki
5dbe54316b
isnothing utility
2020-05-09 11:26:32 +09:00
Shuhei Kadowaki
e41202d3ff
no weird Base.run overload
2020-05-09 11:25:19 +09:00
Shuhei Kadowaki
14e7635458
getvalue -> get
2020-05-09 11:25:19 +09:00
Shuhei Kadowaki
4e7fda212d
ensure Weave display pops out even if an internal err occurs
2020-05-09 02:48:56 +09:00
Shuhei Kadowaki
2376a9dae9
format things
2020-05-08 23:39:17 +09:00
Shuhei Kadowaki
020b4353a4
fix indents, Github -> GitHub
2020-05-06 23:37:04 +09:00
Shuhei Kadowaki
db13be44e3
fix no header case
2020-04-18 19:18:03 +09:00
Shuhei Kadowaki
95e32c4908
more graceful header handling
2020-04-18 19:10:07 +09:00
Fredrik Bagge Carlson
f126e1c7a9
fix formatting
2020-04-17 12:16:56 +08:00
Fredrik Bagge Carlson
7e88052db3
keep latex figures
2020-04-17 12:16:56 +08:00
Shuhei Kadowaki
d40e21ea35
improve documentations around notebooks
2020-03-27 20:43:33 +09:00
Shuhei Kadowaki
a759dc10bd
specify default output format (HMTL) for notebooks
2020-03-27 20:34:06 +09:00
Shuhei Kadowaki
840f1b3b8f
simpler doc APIs
2020-03-27 18:45:04 +09:00
Shuhei Kadowaki
efccb5c7f1
more documentation improve
2020-03-27 10:16:57 +09:00
Shuhei Kadowaki
9e9fe45231
improve documentations
2020-03-26 21:41:54 +09:00
Shuhei Kadowaki
f8c32c865b
more type annotate APIs
2020-03-26 17:35:05 +09:00
Shuhei Kadowaki
16bc2d7be9
immutable structs for result trait
2020-03-18 10:50:01 +09:00
Shuhei Kadowaki
6339303569
rm Compat
2020-03-18 08:53:25 +09:00
Shuhei Kadowaki
1f8514a737
fixes : #105 , #288
...
closes : #289
2020-03-17 10:57:36 +09:00
Shuhei Kadowaki
d8595e266f
more doc fixes
2020-03-06 10:14:21 +09:00
aviatesk
e18c5f35e3
update comment
2020-01-07 23:51:55 +09:00
aviatesk
652b19cd0f
fixes #232
2020-01-05 15:18:41 +09:00
Sebastian Pfitzner
3d673d0338
Merge pull request #244 from sebastianpech/disable-unicode-escape
...
Add argument to weave function to disable unicode escape
2019-10-21 19:48:29 +02:00
Sebastian Pech
c9e26d5638
Rename escape_unicode and move to tex based formatdicts
2019-10-15 21:48:05 +02:00
Sebastian Pech
da66a8f272
Add escape_unicode to docstring
2019-10-15 14:20:11 +02:00
Sebastian Pech
bd5ff7031c
Add argument for disabling unicode escaping
2019-09-05 10:13:49 +02:00
Sebastian Pech
fa4a1a629d
Add function to convert percentages to matching latex widths
2019-08-25 19:19:31 +02:00
Sebastian Pech
eeb723981d
Fix printing [] if fig_env is empty string
2019-08-25 10:25:57 +02:00
Sebastian Pech
474cb6e4b2
Combine formatfigures for Tex and JMarkdown2tex
2019-08-25 09:39:03 +02:00
Sebastian Pech
4d7a444246
Fix displayed output produced by capture_output
2019-08-21 15:03:22 +02:00
ilia-kats
02134d29d5
use the minted jlcon lexer for terminal mode ( #205 )
2019-06-27 09:00:43 +03:00
Sebastian Pfitzner
ed41be610a
Merge pull request #221 from thofma/master
...
Add html rendering of Markdown tables
2019-06-26 12:10:46 +02:00
Tommy Hofmann
1c0506342e
Add html rendering of Markdown tables
2019-06-26 11:19:11 +02:00
Sebastian Pfitzner
9f664ba5a6
Merge pull request #202 from tshort/hook-fix
...
Fix hooks and add a push/pop hook to the test
2019-06-25 18:10:38 +02:00
Tamas Nagy
df7f0d1f3c
Merge pull request #215 from Oblynx/patch-1
...
Fix mpastell/Weave.jl#214
2019-06-19 10:39:37 -07:00
Arnav Sood
5d3e05511e
allow configuration of jupyter command while weaving notebooks, fixes #194
...
* notebook refactor and tests
* update PR
* add jupyter test jmd
* add back full warnings and remove debugging output
* Update test filename [ci skip]
* Conda for CI
* update for CI?
* remove Conda, IJulia, and tests for now
* Project.toml changes suggested by tinagly
* revive travis tests
* comment out nb tests
2019-06-19 10:26:13 -07:00
Konstantinos Samaras-Tsakiris
ea1de0fb9e
Fix mpastell/Weave.jl#214
...
Fixes incorrect UTF-8 string handling as described in https://github.com/mpastell/Weave.jl/issues/214 .
2019-06-04 21:02:40 +03:00
tshort
bd69ef1f59
Fix hooks and add a push/pop hook to the test
2019-04-27 13:17:29 -04:00
Matti Pastell
95e860816c
Restore .ps and .js.svg to Gadfly
2019-03-11 15:13:30 +02:00
Matti Pastell
99db6a9406
Actually fix include_weave
2019-03-11 14:25:17 +02:00
Matti Pastell
8194c8a1b8
Fix `include_weave`. Closes #152 .
2019-03-11 14:05:06 +02:00
Matti Pastell
83e2e0ae20
Add tests for inline code
2019-03-11 13:39:21 +02:00
Matti Pastell
35addd2b50
Fixes to option parsing, gadfly pdf, stripping header, add tests
2019-03-11 10:23:31 +02:00
Matti Pastell
4338fc4b07
Make out_path and template path relative to document
2019-03-10 22:53:00 +02:00
Matti Pastell
6f83f1abf5
Add example beamer document
2019-03-10 20:10:30 +02:00
Matti Pastell
3488af5534
Add docs for inline output, make figure output inline
2019-03-10 19:23:18 +02:00
Matti Pastell
4ab1c09b8c
Allow using MustacheTokens as template directly
2019-03-10 17:51:19 +02:00
Matti Pastell
e7a10eacdc
Don't use isnothing
2019-03-10 17:20:43 +02:00
Matti Pastell
37aa0237a8
Add new syntax for inline code and fix output in md2* formats
2019-03-06 22:27:47 +02:00
Matti Pastell
1de36fd1f5
Fix Jupyter header
2019-03-06 10:41:31 +02:00
Matti Pastell
4e70d32901
Don't run latex on travis
2019-03-05 20:18:58 +02:00
Matti Pastell
6082786f92
Allow setting document options in YAML header
2019-03-05 19:36:27 +02:00
Matti Pastell
52f3a23d28
Allow format specific options in header
2019-03-05 16:44:10 +02:00
Matti Pastell
e9ea54bc1b
Allow setting options in document header. Closes #189
2019-03-04 11:10:02 +02:00
Matti Pastell
a14b7a8f80
Return weaved file path from weave function. Closes #190
2019-03-04 09:45:30 +02:00
Matti Pastell
edd558de0e
Add support for comments in Markdown. Closes #97
2019-02-28 16:17:03 +02:00
Matti Pastell
710b67ca45
Add markdown flavor for improved math support. Closes #182
2019-02-27 18:21:05 +02:00
Matti Pastell
f2773376d9
Merge branch 'noalign'
2019-02-27 16:43:15 +02:00
Matti Pastell
6a30aa20f2
Remove align environment from math output #182
2019-02-27 16:42:51 +02:00
Matti Pastell
73584edd34
Strip ANSI from text output #184
2019-02-27 16:19:14 +02:00
Matti Pastell
8d1bb63b0a
Render markdown output in md2* formats. Fixes #156
2019-02-27 15:03:33 +02:00
Matti Pastell
e52083c42a
Display assigned objects from chunk's last line
2019-02-27 12:42:43 +02:00
Matti Pastell
056db5141a
Add option to skip chunks in notebook
2019-02-27 10:15:56 +02:00
Matti Pastell
bad5650027
Fix \bf and \frak symbols in md2tex. Improves #181
2019-02-26 17:38:28 +02:00
Toby Driscoll
26cf943d25
New output css class for md2html ( #172 )
...
* New output css class for md2html
* margins and padding taken from Highlights.jl
2019-02-26 09:16:27 +02:00
Matti Pastell
6e0daf9335
Render header in notebooks, fixes #179
2019-02-26 09:12:28 +02:00
Matti Pastell
7587b4f9cf
Fix line wrapping ( #180 )
...
* Fix line wrapping
* Don't chop from tail
* Test wrapping unicode
2019-02-26 00:09:40 +02:00
Matti Pastell
cb791e8b69
Fix notebook support. Closes #173
2019-02-25 19:46:25 +02:00
Christopher Rackauckas
73f0e1e998
Remove precompile statement ( #177 )
2019-02-25 19:29:02 +02:00
schrimpf
adf7338f34
Allow errors ( #174 )
...
* Added ability to pass aditional options to nbconvert. Main purpose is
to pass "--allow-errors"
* Changed IJulia.jupyter to IJulia.JUPYPTER to match change in IJulia.jl
2019-02-25 19:24:01 +02:00
Matti Pastell
f1a85d3726
Merge branch 'master' of https://github.com/mpastell/Weave.jl
2019-02-08 16:03:23 +02:00
Matti Pastell
4a7d63bc7e
Clean up and fix svg embedding
2019-02-08 16:01:25 +02:00
Tamas Nagy
caf64b2407
[WIP] Add Gadfly support back ( #163 )
...
* add back gadfly support
* fix svg embed encoding
2019-02-07 19:28:06 +02:00
Dave Kleinschmidt
4bf8e0e209
check fig_ext to choose preferred mimetype in display(::Report, d)
2019-02-01 10:59:39 -05:00
Dave Kleinschmidt
d0c71ba556
use Base.show ( #165 )
...
* use Base.show
* drop offending show method altogether
2019-01-28 16:20:03 +02:00
schrimpf
ab09bddcd8
change cache to work with figures ( #158 )
...
* Changed read/write cache to use serialize/deserialize instead of
JLD2. JLD2 fails to save strings longer than 2^16 characters, which
can occur in the stringmime() of large figures.
* Added test for cache with figures and html output.
Updated REQUIRE & Project.toml to include Serialization instead of
FileIO and JLD2
* Added "Import Pkg;" to expected output of errors, so that tests pass.
2019-01-03 15:40:32 +02:00
Matti Pastell
bf57bf8a07
Use align for ```math blocks ( #143 )
...
* Use align for ```math blocks
* Fix deprecation from inline parsing
* Update tests
2018-08-23 08:22:08 +03:00
Matti Pastell
246f7eef62
Remove tmp directories from md2pdf output, closes #140
2018-08-17 13:12:37 +03:00
Matti Pastell
341edd3784
Allow custom fields in templates, closes #100
2018-07-27 14:39:53 +03:00
Matti Pastell
4cd0b92792
Fix pandoc support, add raw options to pandoc requires pandoc 2. Closes #132 .
2018-07-27 14:18:33 +03:00
Matti Pastell
3fc3e3c6e0
Use :label consistently
2018-07-27 10:42:14 +03:00
Matti Pastell
5c803db6ae
Merge branch 'dfk/pandoc-crossref' of https://github.com/kleinschmidt/Weave.jl into kleinschmidt-dfk/pandoc-crossref
2018-07-27 01:02:43 +03:00
Matti Pastell
bd5e1d9a3b
Eval requires in Main, add WeavePlots module
2018-07-26 21:29:46 +03:00
Matti Pastell
160017b6e8
Remove plot library hack and use Requires instead
2018-07-26 20:32:10 +03:00
Matti Pastell
44455a1fda
Fix generic pdf support
2018-07-26 12:42:52 +03:00
Matti Pastell
973274bf22
Fix Plots support
2018-07-26 12:20:04 +03:00
Matti Pastell
93bb9ced2d
Fix occursin bugs
2018-07-26 11:35:17 +03:00