Commit Graph

391 Commits (2a6ee388500e6ab0c7a7d997b36b3033c5300787)

Author SHA1 Message Date
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
Matti Pastell f90547cee6 Fix bug in Sandboxing, run code in sandbox module by default 2018-07-26 02:01:10 +03:00
Matti Pastell b136fa615d Fix header parsing, update example 2018-07-26 00:26:38 +03:00
Matti Pastell e5d2045350 Clean formatters 2018-07-25 23:26:39 +03:00
Matti Pastell 373f5e9d37 Allow choosing where to eval code. 2018-07-25 23:24:25 +03:00
Matti Pastell 7c091ed034 Clean highlighting code 2018-07-25 01:33:24 +03:00
Matti Pastell 4523b3a58e Use Highlights.jl for md2tex output 2018-07-24 23:40:47 +02:00
Matti Pastell 57724aff67 Fix error handling test 2018-07-24 11:50:28 +02:00
Matti Pastell 0956ce6dff Fix more deprecations 2018-07-23 19:35:15 +02:00
Matti Pastell 83c506252d Fix formatting deprecations 2018-07-23 19:29:07 +02:00
Matti Pastell 01f8810bc3 Run working tests with 0.7 2018-07-23 18:39:48 +02:00
femtocleaner[bot] f04b67f69b Fix deprecations (#135)
* Fix deprecations

* Fix html output
2018-07-23 13:37:25 +03:00
Dave Kleinschmidt 6ff3bee3e8 handle empty attribs 2018-05-21 15:20:15 -04:00
Tom Short 5e1d8c1976 Fix a glitch with `pop_preexecute_hook` (#124) 2018-03-17 12:14:33 +02:00
Matti Pastell 53c2a337f3 Use IJulia jupyter. Closes #122 2018-02-27 15:08:08 +02:00
Dave Kleinschmidt b4ebf0cd16 generate pandoc-crossref style labels for figures
also clean up attrib code
2018-02-01 13:13:11 -05:00
Matti Pastell 8ab0d66dda Fix html list writer 2018-01-07 21:33:50 +02:00
Matti Pastell 1341aed3d0 Precompile 2018-01-07 20:36:46 +02:00
Matti Pastell b2b143c22e Add markdown2html writer, remove Documenter depency 2018-01-07 20:19:59 +02:00
Matti Pastell 88d8665e03 Load JLD2 and FileIO only when cache is used 2018-01-07 20:01:18 +02:00
Matti Pastell eead8f24a8
Added error handling with html display (#117)
* Implemented error handling and initial html display

* Improved html display and tests for error handling
2018-01-07 11:53:07 +02:00
Matti Pastell 51ea08ca88 Remove nbconvert timeout by default 2018-01-05 18:01:16 +02:00
Matti Pastell 048b484d83 Fix notebook doc string 2018-01-05 17:51:30 +02:00
Matti Pastell 57c17e05a3 Add notebook function for converting output to Jupyter notebooks 2018-01-05 17:42:47 +02:00
Matti Pastell 48327bd570 Embed Plots animated gifs to html output. Closes #105 2018-01-04 21:45:43 +02:00
Matti Pastell 965eb6dfe9 Fix world age bug with display 2018-01-04 18:02:09 +02:00
Matti Pastell be0ac321b3 Use Highlight.jl with pandoc2html 2018-01-04 18:00:01 +02:00
Matti Pastell 484b1fdf23 FIx `term=true` for md2tex 2018-01-03 20:31:24 +02:00
Matti Pastell 6dc482d997 Fix term=true in "rich outputs", closes #113 2018-01-03 19:33:57 +02:00
Matti Pastell 15d4cdf512 Update md2tex format tests. Closes #107 2018-01-03 19:07:14 +02:00
Matti Pastell dc566fc69a Fix md2pdf output -> use minted and xelatex 2018-01-03 17:23:57 +02:00
Matti Pastell 6c149b383c Use compact output for IO 2018-01-03 15:48:14 +02:00
Matti Pastell 51641124b5 Fix output: html wrap bug, output from last line 2018-01-03 15:35:47 +02:00
Matti Pastell c1795e7310 Fix Gadfly tests 2018-01-03 08:48:01 +02:00
Matti Pastell f8ffe9218d Merge branch 'fbot/deps' 2018-01-02 16:38:42 +02:00
Matti Pastell 5bb5e8994c Switch to JLD2 for caching docs 2018-01-02 16:21:45 +02:00
Matti Pastell c2f581a31d Merge branch 'master' of https://github.com/mpastell/Weave.jl into HEAD 2018-01-02 15:57:17 +02:00
Matti Pastell ebd4f6dbed Allow empty cells in scripts 2018-01-02 15:48:56 +02:00
femtocleaner[bot] 2693389a3a Fix deprecations 2017-12-31 12:02:28 +00:00