John MacFarlane
146a10780e
LaTeX reader: support \k
ogonek accent.
2017-09-05 09:55:42 -07:00
Alexander
350c282f20
Muse reader: require at least one space char after * in header ( #3895 )
2017-09-05 09:41:27 -07:00
John MacFarlane
4170a18479
Another try to get linux static linking working again.
2017-09-05 08:36:13 -07:00
John MacFarlane
9fdc089cd8
Plain writer: don't use to separate list and indented code.
...
There's no need for it in this context, since this isn't
to be interpreted using Markdown rules.
2017-09-04 21:56:06 -07:00
John MacFarlane
d02518bf1b
Make sure bash is available in linux package build environment.
2017-09-04 21:54:53 -07:00
Alexander
c09b586147
Muse reader: parse <div> tag ( #3888 )
2017-09-04 21:22:40 -07:00
John MacFarlane
2637df2bdf
Revert use of llvm backend in static linux build.
...
It was failing for reasons I couldn't diagnose.
2017-09-04 18:11:55 -07:00
John MacFarlane
1d0805ce41
HTML reader: Fix pattern match.
2017-09-04 18:11:26 -07:00
John MacFarlane
76e580d571
Use latest pandoc-citeproc in stack.pkg.yaml.
2017-09-04 17:11:01 -07:00
John MacFarlane
aa90919fe9
Add 'static' Cabal flag, use it for linux statically linked.
2017-09-04 17:07:20 -07:00
Albert Krewinkel
6a6c3858b4
Org writer: stop using raw HTML to wrap divs
...
Div's are difficult to translate into org syntax, as there are multiple
div-like structures (drawers, special blocks, greater blocks) which all
have their advantages and disadvantages. Previously pandoc would
use raw HTML to preserve the full div information; this was rarely
useful and resulted in visual clutter. Div-rendering was changed to
discard the div's classes and key-value pairs if there is no natural way
to translate the div into an org structure.
Closes : #3771
2017-09-01 00:08:12 +02:00
John MacFarlane
50ec64ffbc
HTML reader: improved handling of figure.
...
Previously we had a parse failure if the figure contained
anything besides an image and caption.
2017-08-30 17:05:12 -07:00
Alexander
14f813c3f2
Muse reader: parse verse markup ( #3882 )
2017-08-29 12:40:34 -07:00
Alexander
2d936ff4e0
hlint Muse reader ( #3884 )
2017-08-29 09:15:06 -07:00
John MacFarlane
22a4adf4ec
Add a type sig to satisfy ghc 7.10.3.
2017-08-29 09:04:59 -07:00
John MacFarlane
2e26046e13
HTML writer: ensure we don't get two style attributes for width & height.
2017-08-28 23:33:21 -07:00
Alexander
05bb8ef4aa
RST reader: handle blank lines correctly in line blocks ( #3881 )
...
Previously pandoc would sometimes combine two line blocks separated by blanks, and ignore trailing blank lines within the line block.
Test is checked to be consisted with http://rst.ninjs.org/
2017-08-28 07:48:46 -07:00
John MacFarlane
8fcf66453c
RST reader: Fixed ..include::
directive.
...
Closes #3880 .
2017-08-27 17:09:55 -07:00
John MacFarlane
6437695574
Markdown writer: don't crash on Str "".
2017-08-26 21:30:00 -07:00
John MacFarlane
1b3431a165
LaTeX reader: improved support for \hyperlink, \hypertarget.
...
Closes #2549 .
2017-08-25 22:04:57 -07:00
Václav Haisman
c9be2de5c1
Allow setting Japanese fonts when using LuaLaTeX ( #3873 )
...
...by using the `luatexja-fontspec` and `luatexja-preset` packages. Use
existing `CJKmainfont` and `CJKoptions` template variables. Add
`luatexjafontspecoptions` for `luatexja-fontspec` and `luatexjapresetoptions`
for `luatexja-preset`.
2017-08-25 11:20:56 -07:00
Alexander
e6f767b581
Muse reader: parse <verse> tag ( #3872 )
2017-08-25 07:09:28 -07:00
John MacFarlane
ef209ebad2
Add a travis build for ghc 8.2.1 + cabal 2.0.
2017-08-25 07:02:43 -07:00
bucklereed
c80e26f888
LaTeX reader: RN and Rn, from biblatex ( #3854 )
2017-08-24 09:45:58 -07:00
Stephen McDowell
5365baef9c
add documentation of limitations of grid tables ( #3864 )
...
- see discussion: https://groups.google.com/forum/#!topic/pandoc-discuss/r9fAeeV3dSw
- grid tables cannot have row spans or column spans
2017-08-23 13:50:58 -07:00
ickc
5c1d844e40
Name change OSX -> macOS ( #3869 )
...
* Name change OSX -> macOS
fix commit c96b64e
This commit finishes remaining osx to macOS change, as well as replacing MacOS with macOS.
The reason for the later one is because the "correct" casing of macOS is like that. Apple styles it to looks like iOS, watchOS, tvOS, etc. And unfortunately they all start with a lowercase letter, making propercasing (or even title-casing) odd.
* fix casing of Linux, UNIX, and Windows
2017-08-23 13:48:10 -07:00
John MacFarlane
f297659d50
Use lts-9.1 in travis.
2017-08-23 07:11:57 -07:00
John MacFarlane
5a62f91434
Tweak travis stack build command (test --test -> build --test).
2017-08-23 07:09:56 -07:00
Albert Krewinkel
f1220e8601
Revert "Build GHC 8.2.1 with one core only"
...
This reverts commit 9930e8582d
. This was
intended for testing only and was pushed by mistake.
2017-08-23 11:06:16 +02:00
Albert Krewinkel
f8dce4a9e3
Text.Pandoc.Lua: fix fallback functions with GHC 7.8
2017-08-23 09:43:49 +02:00
Albert Krewinkel
9930e8582d
Build GHC 8.2.1 with one core only
...
Avoid out-of-memory error on travis.
2017-08-23 09:17:14 +02:00
Alexander
5d74932578
Muse reader: avoid crashes on multiparagraph inline tags ( #3866 )
...
Test checks that behavior is consistent with Amusewiki
2017-08-22 23:12:34 -07:00
Alexander
c7d4fd8cf1
Muse reader: do not allow closing tags with EOF ( #3863 )
...
This behavior is compatible to Amusewiki
2017-08-22 16:34:18 -07:00
Albert Krewinkel
41baaff327
Text.Pandoc.Lua: support Inline and Block catch-alls
...
Try function `Inline`/`Block` if no other filter function of the
respective type matches an element.
Closes : #3859
2017-08-22 23:30:48 +02:00
Albert Krewinkel
56fb854ad8
Text.Pandoc.Lua: respect metatable when getting filters
...
This change makes it possible to define a catch-all function using lua's
metatable lookup functionality.
function catch_all(el)
…
end
return {
setmetatable({}, {__index = function(_) return catch_all end})
}
A further effect of this change is that the map with filter functions
now only contains functions corresponding to AST element constructors.
2017-08-22 22:56:51 +02:00
John MacFarlane
915f201c78
Travis: Use ghc 8.2.1 in nightly stack build.
2017-08-22 11:03:49 -07:00
John MacFarlane
19440cd5dc
Undid last travis changes.
2017-08-22 10:07:25 -07:00
John MacFarlane
c5bb16b06b
Travis: Removed sudos.
2017-08-22 09:46:54 -07:00
John MacFarlane
761a61b53e
Travis: shut down essential services and show memory.
...
Also after failure.
2017-08-22 09:39:36 -07:00
John MacFarlane
cefdc01a93
Updated stack.pkg.yaml.
2017-08-21 22:27:26 -07:00
John MacFarlane
d3df168896
Travis: use lts-9 with ghc 8.0.2 stack build. Remove swap stuff.
...
It didn't help.
2017-08-21 22:20:54 -07:00
John MacFarlane
f2dfb3f23b
Added introduction and lightly edited rest of lua-filters document.
...
See #3608 .
2017-08-21 22:14:26 -07:00
John MacFarlane
c462fcafef
travis: create some swap space.
...
This may help with regex-tdfa build failures...
2017-08-21 21:24:21 -07:00
John MacFarlane
6cba21b4d3
Small improvement to #3855 - move lang attribute up.
...
So we don't have a dangling line with the closing `>` when
`lang` is not set.
2017-08-21 21:16:55 -07:00
Jens Getreu
9375e50b96
docbook5 template: use lang and subtitle variables ( #3855 )
2017-08-21 21:10:41 -07:00
Alexander
0a839cbdc9
Muse reader: add definition list support ( #3860 )
2017-08-21 21:08:44 -07:00
Albert Krewinkel
4567105f6c
doc/lua-filter.md: Add metadata variable replacment example
2017-08-21 19:00:51 +02:00
Albert Krewinkel
8ef200b80f
data/pandoc.lua: fix documentation
...
Multiple documentation mistakes were fixed.
2017-08-21 17:47:54 +02:00
Albert Krewinkel
29a6793811
lua-filters.md: update docs and mention implicit filters
2017-08-21 16:53:00 +02:00
Albert Krewinkel
b81cff4357
data/pandoc.lua: Include Pandoc, Meta in implicit filters
...
Functions with a name that corresponds to an AST element are included in
implicit pandoc filter, but both `Meta` and `Pandoc` were wrongly
ignored till now.
2017-08-21 16:47:05 +02:00