John MacFarlane
2b89aaf04d
Make internal links work in ODT/OpenDocument.
...
This adds proper bookmarks to the headers with non-null IDs.
Closes #4358 .
2018-05-14 10:37:46 -07: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
c3d2572c5f
Use texmath-0.11.
2018-05-10 12:10:35 -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
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
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
44f1c72b28
Add test for #4576 .
...
Closes #4576 .
2018-05-08 09:14:58 -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
John MacFarlane
516025248e
Update tests for #4605 .
2018-05-01 21:26:08 -07:00
Alexander Krotov
4139e3e92b
Test Lua filter converting display math to inline math
2018-04-29 16:20:38 +03:00
Francesco Occhipinti
8b01f03eaa
RST writer: preserve empty inline parents in flatten ( #4603 )
2018-04-27 09:01:20 -07:00
Alexander
1927bc9aac
Add FB2 reader ( #4539 )
2018-04-26 12:33:18 -07:00
John MacFarlane
619aaf29aa
Merge branch 'fb2-hrblankline' of https://github.com/labdsf/pandoc into labdsf-fb2-hrblankline
2018-04-26 12:29:06 -07:00
John MacFarlane
a96c762a10
RST reader: fix anonymous redirects with backticks.
...
Closes #4598 .
2018-04-26 12:23:25 -07:00
Francesco Occhipinti
eef1c211f5
RST reader: flatten nested inlines, closes #4368 ( #4554 )
...
nested inlines are not valid RST syntax, so we flatten them following
some readability criteria discussed in #4368 .
2018-04-26 12:17:51 -07:00
Alexander Krotov
4d89a1db7f
Muse reader: allow nested footnotes
2018-04-26 12:38:17 +03:00
John MacFarlane
aba0f7e063
Add tests for #4589 and #4594 (currently failing).
2018-04-25 23:04:08 -07:00
John MacFarlane
d0940c6e00
Ms template: Fix date.
...
Previously .ND was used, but this only works if you
have a title page, which we don't. Thanks to @teoric.
2018-04-25 17:49:01 -07:00
John MacFarlane
16f36eee43
Removed deprecated ancient HTML math methods.
...
Removed `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
`--asciimathml` options.
Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
`Text.Pandoc.Options.HTMLMathMethod` [API change].
Removed unneeded data file LaTeXMathML.js and updated tests.
Bumped version to 2.2.
2018-04-25 17:18:56 -07:00
John MacFarlane
97916f0881
Remove nonfree ICC profiles from thumbnails in test docx files.
...
Closes #4588 .
2018-04-25 17:00:21 -07:00
John MacFarlane
dab3330a58
RST reader: allow < 3 spaces indent under directives.
...
Closes #4579 .
2018-04-22 12:20:25 -07:00
John MacFarlane
076093fe62
Small test suite update. Markdown tables.
2018-04-21 14:16:24 -07:00
John MacFarlane
7fbe473b2e
Markdown reader/writer: spacing adjustments in tables.
...
* Markdown writer now includes a blank line at the end
of the row in a single-row multiline table, to prevent it from being
interpreted as a simple table. Closes #4578 .
* Markdown reader does a better job computing the relative width of
the last column in a multiline table, so we can round-trip tables
without constantly shrinking the last column.
2018-04-21 13:06:57 -07:00
John MacFarlane
276894a2f2
RST writer: use more consistent indentation.
...
Previously we used an odd mix of 3- and 4-space indentation.
Now we use 3-space indentation, except for ordered lists,
where indentation must depend on the width of the list marker.
Closes #4563 .
2018-04-19 13:47:16 -07:00
Alexander Krotov
caeb963447
FB2 writer: convert metadata value "abstract" to book annotation
2018-04-19 17:03:21 +03:00
Alexander Krotov
ce4326a4f1
Muse reader: allow "-" in anchors
2018-04-19 14:17:59 +03:00
Jesse Rosenthal
c5d8fab058
Docx reader tests: Test for combining adjacent code blocks.
2018-04-17 09:29:54 -04:00
Alexander Krotov
3443df6068
Markdown reader: add regression test for previous commit
2018-04-17 11:55:37 +03:00
Alexander Krotov
a8122987fc
Muse reader: allow verse to be indented
...
Muse writer indents verse blocks in definition list more than necessary, so Muse reader should parse them.
2018-04-16 15:08:34 +03:00
Alexander Krotov
ce7301de02
Fix a typo in Muse reader testsuite comment
2018-04-16 12:12:25 +03:00
Alexander Krotov
f39931fd6c
Muse writer: escape definition list terms starting with list markers
2018-04-16 11:40:18 +03:00
John MacFarlane
8ca012f139
Ms writer: font improvements.
...
* Use `\f[R]` rather than `\f[]` to reset. The latter
returns to the previous font, which gives unintended
results in some cases.
* Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
since the header font is automatically bold.
* Use `\f[CB]` rather than `\f[BC]` for monospace bold.
Closes #4552 .
2018-04-15 22:44:16 -07:00
Alexander Krotov
01f5ed14e6
Muse reader: don't allow footnote references inside links
2018-04-15 17:53:53 +03:00
Alexander Krotov
17767bd29d
Muse writer: escape strings starting with space
2018-04-15 16:28:45 +03:00
Alexander Krotov
9cc2bf0295
Muse reader: allow URL to be empty
...
Muse writer can write links with empty URLs, so Muse reader should read them.
2018-04-15 14:50:46 +03:00
Alexander Krotov
6be0139145
Muse reader: require that comment semicolons are in the first column
...
Fixes #4551
2018-04-15 12:17:33 +03:00
John MacFarlane
d5b98c8c6e
Man writer: Don't escape U+2019 as '.
...
Closes #4550 .
2018-04-14 10:42:05 -07:00
Alexander Krotov
782ab73aa3
Muse writer: escape > less often
...
> should be escaped only when it can start verse, i.e., at the beginning of the line.
2018-04-10 23:38:30 +03:00
Alexander Krotov
52803e2960
Muse writer: don't break headers, line blocks and tables with line breaks
2018-04-09 04:24:08 +03:00
Alexander Krotov
44093930a8
Muse writer: correctly output empty headings
2018-04-09 04:10:05 +03:00