John MacFarlane
a939cfe769
Pipe tables: impose minimum cell size.
...
This might help with #3526 .
At any rate, it fixes another bug (see test/command/3526.md).
2017-03-23 16:54:47 +01:00
John MacFarlane
e92941a9ca
Grid tables: remove unnecessary extra space in cells.
2017-03-23 14:59:51 +01:00
John MacFarlane
e180a2efa6
Ms writer: fixed hard line breaks.
2017-03-23 14:48:09 +01:00
John MacFarlane
dd1ac8f48f
Writers.Shared.gridTable: defensive coding around 'maximum'.
2017-03-23 14:33:49 +01:00
John MacFarlane
86142ab7c0
Updated ms tests.
2017-03-23 14:33:29 +01:00
John MacFarlane
1ae38fde4d
MS writer: updated TODO comment.
2017-03-23 13:00:14 +01:00
John MacFarlane
d20d3a5dbb
Ms writer: Super/subscript support.
...
Also added some macro definitions to default template
to support subscripts + better superscripts.
2017-03-23 12:59:19 +01:00
John MacFarlane
1af6faf2d4
Ms writer: support for fake smallcaps.
2017-03-23 12:45:23 +01:00
John MacFarlane
8cf5c55e5e
Ms. writer: don't render links in footnotes as footnotes.
2017-03-23 12:05:41 +01:00
John MacFarlane
1809f64a4c
Ms writer: Improved footnotes.
2017-03-23 11:56:13 +01:00
John MacFarlane
da0aae9c8f
Ms writer: fixed strong/emph combination.
...
Perhaps something similar is needed in the man writer.
2017-03-23 11:48:01 +01:00
John MacFarlane
6c204ea2bd
Initial addition of groff ms writer.
...
* New module: Text.Pandoc.Writers.Ms.
* New template: default.ms.
* The writer uses texmath's new eqn writer to convert math
to eqn format, so a ms file produced with this writer
should be processed with `groff -ms -e` if it contains
math.
2017-03-23 10:14:16 +01:00
John MacFarlane
f4ac0edf2a
Markdown reader: allow latex macro definitions indented 1-3 spaces.
...
Previously they only worked if nonindented.
2017-03-22 21:19:50 +01:00
John MacFarlane
9437ab449c
Revert "Experimental change to charWidth in Pretty."
...
This reverts commit c59e317224
.
2017-03-22 16:08:09 +01:00
John MacFarlane
c59e317224
Experimental change to charWidth in Pretty.
...
Hunch that this might help with #3526 .
2017-03-22 15:37:08 +01:00
John MacFarlane
0e68c55955
stack.yaml: Use texmath-0.9.4.
2017-03-22 15:36:41 +01:00
John MacFarlane
286b320fb0
Added to issue 3516 command test to debug test failure on appveyor.
2017-03-22 14:36:12 +01:00
John MacFarlane
cf306f34e5
Plain writer: use _(..) or ^(..) for super/subscript...
...
...unless unicode super/subscripted characters are available.
2017-03-21 15:41:58 +01:00
John MacFarlane
430e2db9ba
Improve rendering of superscript in plain output.
...
We now handle a few non digit characters (+, -, =, parentheses)
for which there are superscripted unicode characters.
Closes #3518 .
2017-03-21 14:43:14 +01:00
John MacFarlane
daf8d1db18
RST writer: improve grid table output, fix bug with empty rows.
...
Uses the new gridTable in Writers.Shared, which is here
improved to better handle 0-width cells.
Closes #3516 .
2017-03-21 14:16:46 +01:00
John MacFarlane
d3798a044d
Reuse Writers.Shared.gridTable in Haddock writer.
2017-03-21 10:20:18 +01:00
John MacFarlane
e6cdf21fa5
Moved more gridTable calculations to Writers.Shared.
2017-03-21 10:16:11 +01:00
John MacFarlane
e7336b1feb
Moved gridTable from Markdown writer to Writers.Shared.
2017-03-21 10:02:30 +01:00
John MacFarlane
48c88d566d
Add space_in_atx_header
extension.
...
This is enabled by default in pandoc and GitHub markdown but not the
other flavors.
This requirse a space between the opening #'s and the header
text in ATX headers (as CommonMark does but many other implementations
do not). This is desirable to avoid falsely capturing things ilke
#hashtag
or
#5
Closes #3512 .
2017-03-20 21:55:30 +01:00
John MacFarlane
2d94d48332
Added two lua test files to extra-source-files in pandoc.cabal.
...
This was caught by our new .travis.yml, which builds from
an extracted sdist tarball instead of the repository.
2017-03-20 17:32:35 +01:00
John MacFarlane
a85d7849fc
More travis fixes.
2017-03-20 17:22:48 +01:00
John MacFarlane
9836111cd2
Travis: install hsb2hs.
2017-03-20 16:19:19 +01:00
John MacFarlane
7f89792d9a
More travis fixes.
2017-03-20 16:07:17 +01:00
John MacFarlane
ba3f3653e9
Added hslua-aeson to stack.yamls.
2017-03-20 16:03:24 +01:00
John MacFarlane
757edd0525
More travis fixes.
2017-03-20 15:55:42 +01:00
John MacFarlane
5a1c9109e0
Fixed .travis.yml.
2017-03-20 15:43:15 +01:00
John MacFarlane
51ed4a98a9
.travis.yml: create a source dist and do cabal build and test there.
...
That way we catch errors due to files missing from the data
section of pandoc.cabal.
2017-03-20 15:24:16 +01:00
Albert Krewinkel
f2f6851713
Lua filters ( #3514 )
...
* Add `--lua-filter` option. This works like `--filter` but takes pathnames of special lua filters and uses the lua interpreter baked into pandoc, so that no external interpreter is needed. Note that lua filters are all applied after regular filters, regardless of their position on the command line.
* Add Text.Pandoc.Lua, exporting `runLuaFilter`. Add `pandoc.lua` to data files.
* Add private module Text.Pandoc.Lua.PandocModule to supply the default lua module.
* Add Tests.Lua to tests.
* Add data/pandoc.lua, the lua module pandoc imports when processing its lua filters.
* Document in MANUAL.txt.
2017-03-20 15:17:03 +01:00
Mauro Bieg
b010a8c5e7
docx writer: lang meta, see #1667 ( #3515 )
2017-03-20 10:06:24 +01:00
John MacFarlane
34412cf57c
RST reader: recurse into bodies of unknown directives.
...
In most cases it's better to preserve the content than
to emit it. This isn't guaranteed to have good results;
it will fail spectacularly for unknown raw or verbatim
directives.
See #3432 .
2017-03-19 21:55:38 +01:00
John MacFarlane
fff3489bf3
Removed failing part of 3348 test.
...
This was failing because of a small discrepancy in markdown
table header line lengths on appveyor.
It's a minor issue, I can't see what is causing it, and
it's irrelevant to the issue this is testing, so we'll
just write native for this test.
2017-03-19 20:37:39 +01:00
John MacFarlane
43a429b182
linux/make_tarball.sh: remove old target directory before creating.
2017-03-19 20:09:38 +01:00
John MacFarlane
badbe09187
Added control.in to repository.
2017-03-19 18:08:52 +01:00
John MacFarlane
de8d4e2f86
Fixed paths: deb->linux.
2017-03-19 17:35:19 +01:00
John MacFarlane
4a1c3faec8
linux tarball: man pages in share/man rather than man/.
2017-03-19 16:32:15 +01:00
John MacFarlane
74fd00b5f6
Improved linux tar.gz creation and added Dockerfile to repository.
2017-03-19 16:24:52 +01:00
John MacFarlane
6756e23f94
Rename static-linux -> linux.
2017-03-19 15:35:52 +01:00
John MacFarlane
e98b9f6796
Removed unneeded deb directory.
...
We now use static-linux to create the deb.
2017-03-19 15:35:22 +01:00
John MacFarlane
a96105551b
static-linux: Dockerfile now creates the .deb too.
2017-03-19 15:28:04 +01:00
John MacFarlane
671bf7a23f
stack.pkg.yaml - use latest pandoc-citeproc.
2017-03-19 13:30:50 +01:00
John MacFarlane
5587ca2bf7
Update stack.pkg.yaml for latest pandoc-citeproc.
2017-03-19 11:50:51 +01:00
John MacFarlane
e185901660
Use latest pandoc-citeproc HEAD.
2017-03-19 11:27:15 +01:00
John MacFarlane
5922237b58
static-linux: allow setting TREE to build from arbitrary git commit.
2017-03-19 10:24:25 +01:00
John MacFarlane
18ff3db1f0
deb/Makefile: remove git submodule update.
2017-03-19 10:23:29 +01:00
John MacFarlane
86f400d57f
Improved static linux build.
...
Also build pandoc-citeproc.
Put pandoc and pandoc-citeproc executables into a version-labeled tgz.
2017-03-19 09:16:22 +01:00