Yan Pas
9030c5ae46
nested lists
2018-05-26 23:29:36 +03:00
Yan Pas
1d7c71189a
escape chars in macros
2018-05-26 20:12:41 +03:00
Yan Pas
1ce067fc2a
tests, parsing fixes
2018-05-23 00:20:30 +03:00
Yan Pas
7f7e1c21e2
lists
2018-05-20 16:47:58 +03:00
Yan Pas
a00323cbbe
links, specialchars
2018-05-20 15:37:15 +03:00
Yan Pas
9e3eba64fd
rename compile to parse, parse to lex
2018-05-20 13:13:06 +03:00
Yan Pas
d8c51ad788
states, code block compiling
2018-05-20 02:54:24 +03:00
Yan Pas
533d450507
compiling paragraphs
2018-05-20 01:51:53 +03:00
Yan Pas
6f793b5a63
tokenisation
2018-05-19 23:26:11 +03:00
Yan Pas
b0b41cbbe6
Merge branch 'master' into groff_reader
2018-05-12 11:42:39 +03:00
John MacFarlane
a00ca6f0d8
Removed inadvertently added .orig files from repository.
...
These were added by
96d10c72cc
Closes #4648 .
2018-05-11 17:10:32 -07:00
John MacFarlane
9b92993a0a
Dockerfile fixes.
...
Note that stack no longer provides a static binary, so we
use an older one from their GitHub releases.
2018-05-11 11:46:39 -07:00
John MacFarlane
6eec21e8cb
Update changelog.
2018-05-10 21:48:38 -07:00
John MacFarlane
3016a9f9df
Update version on man page.
2018-05-10 21:46:24 -07:00
John MacFarlane
ebb60075f5
Bump version to 2.2.1.
2018-05-10 21:45:29 -07:00
John MacFarlane
32ef6f91fd
Update manual date and man page.
2018-05-10 21:44:32 -07:00
John MacFarlane
37d2a75b05
Update changelog.
2018-05-10 21:35:32 -07:00
John MacFarlane
c3d2572c5f
Use texmath-0.11.
2018-05-10 12:10:35 -07:00
Mauro Bieg
b502056104
MANUAL: clarify pipe table width calculation ( #4630 )
...
closes #4520
2018-05-09 21:05:23 -07:00
Albert Krewinkel
d30fbc2879
Org reader: fix image filename recognition
...
Use a function from the *filepath* library to check whether a string is
a valid file name. The custom validity checker that was used before gave
wrong results, e.g. for absolute file paths on
Windows (kawabata/ox-pandoc#52 ).
2018-05-09 23:08:53 +02:00
John MacFarlane
0eee6368d3
Update changelog.
2018-05-09 11:46:47 -07:00
John MacFarlane
b7356d3ddf
Restored and undeprecated gladtex for HTML math.
...
- Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
[API change, reverts removal in v2.2]
- Restored and undeprecated `--gladtex` option, removed in v2.2.
Closes #4607 .
2018-05-09 11:29:20 -07:00
Yan Pas
ad19166bc3
fix build and tests
2018-05-09 20:40:37 +03:00
John MacFarlane
d3be567a73
Fix regression with tex math environments in HTML + MathJax.
...
Closes #4639 .
2018-05-09 10:37:04 -07:00
John MacFarlane
81881ce470
Parsing: Lookahead for non-whitespace after single/double quote start.
...
Closes #4637 .
2018-05-09 10:00:34 -07:00
Yan Pashkovsky
a337685fe0
Merge branch 'master' into groff_reader
2018-05-09 19:48:34 +03:00
Yan Pas
8e9973b9f7
remove debug code
2018-05-09 19:32:50 +03:00
Yan Pas
34f9ac9dbf
codeblock handling
2018-05-09 19:25:24 +03:00
Yan Pas
83902ffdb2
links, paragraphs, codeblocks
2018-05-09 17:12:59 +03:00
John MacFarlane
5f33d2e0cd
Another try at test-pandoc-utils.lua on windows.
2018-05-08 22:32:44 -07:00
John MacFarlane
691f38f3d6
test-pandoc-utils.lua - add diagnostic for windows test.
2018-05-08 22:08:23 -07:00
Yan Pas
c1617565fc
basic manfile parsing
2018-05-09 03:24:45 +03:00
John MacFarlane
9f2af30c06
More adjustments to test-pandoc-utils.lua.
...
We need to find something that will work on windows.
2018-05-08 12:28:12 -07:00
John MacFarlane
fa4f3c5c17
test-pandoc-utils.lua - use tr instead of sed.
...
It should be installed on all *nix systems.
2018-05-08 11:51:50 -07:00
John MacFarlane
b8231a8eca
Fixed bug in uriPathToPath for Windows.
2018-05-08 11:31:00 -07:00
John MacFarlane
83fb9d5495
test-pandoc-utils.lua: workaround some local differences in 'echo'.
2018-05-08 11:22:10 -07:00
John MacFarlane
e6d85927ea
test-pandoc-utils.lua: remove problems with missing /bin/false
.
...
Previously it was assumed that the system would have `/bin/false`
and `/bin/sed`, and these tests were skipped otherwise.
On MacOS, these utilities are located in `/usr/bin`.
Fixed by just using `sed` and `false` -- these should always be
in the path. Removed the "skipping" behavior, replaced with a
check for Windows. On Windowns, we use `echo` and `cd`, which
should always exist.
Not yet checked on Windows.
2018-05-08 11:07:57 -07:00
John MacFarlane
40603dd4cd
Support underline in docx writer.
...
Updated golden test and confirmed validity of file.
Closes #4633 .
2018-05-08 10:17:51 -07:00
John MacFarlane
780bf64d1d
Use uriPathToPath with file: URIs.
...
Closes #4613 .
Needs testing on Windows.
2018-05-08 09:56:42 -07:00
John MacFarlane
3a291dad35
Shared: add uriPathToPath.
...
This adjusts the path from a file: URI in a way that is sensitive
to Windows/Linux differences. Thus, on Windows,
`/c:/foo` gets interpreted as `c:/foo`, but on Linux,
`/c:/foo` gets interpreted as `/c:/foo`.
See #4613 .
2018-05-08 09:56:42 -07:00
Mauro Bieg
eb3521e4c9
MANUAL: clarify truthiness in template variables ( #4631 )
...
closes #2281
2018-05-08 09:36:50 -07:00
John MacFarlane
44f1c72b28
Add test for #4576 .
...
Closes #4576 .
2018-05-08 09:14:58 -07:00
John MacFarlane
eb733d1365
LaTeX reader: handle $
in /text{..}
inside math.
...
This fixes the main problem in #4576 .
There is still an issue about `\SI`, but that's a separate issue.
2018-05-08 09:11:39 -07:00
John MacFarlane
0d83ce3bc4
HTML writer: Strip links from headers when creating TOC.
...
Otherwise the TOC entries will not link to the sections.
Closes #4340 .
2018-05-07 17:44:05 -07:00
Alexander Krotov
5879923422
Muse writer: add support for left-align and right-align classes
...
Address issue #4542
2018-05-07 14:54:20 +03:00
Alexander Krotov
621e864023
Use Data.Maybe.fromMaybe
2018-05-07 14:20:42 +03:00
Mauro Bieg
7c0ef68311
Revert piping html to pdf-engine ( #4628 )
...
* Revert "PDF: Use withTempDir in html2pdf." We're going back to using tmpFile instead of piping
* Revert "html2pdf: inject base tag wih current working directory (#4443 )"
Fixes #4413
2018-05-05 09:31:17 -07:00
Francesco Occhipinti
59f0c1d83b
catch IO errors when writing media files, closes #4559 ( #4619 )
...
If we do not catch these errors, any malformed entry in a media bag
could cause the loss of a whole document output. An example of
malformed entry is an entry with an empty file path.
2018-05-04 10:31:02 -07:00
John MacFarlane
8cd3f19dc5
Add COPYRIGHT stanza for FB2 reader.
2018-05-03 18:26:52 -07:00
John MacFarlane
cf0b1e435b
Relicense TikiWiki reader as GPL v2 or above, like rest of pandoc.
...
Author has given permission in an email, 3 May 2018.
See #4591 .
2018-05-03 18:24:46 -07:00