John MacFarlane
4060df6891
Markdown writer: include needed whitespace after HTML figure.
...
We use HTML for a figure in markdown dialects that can't
represent it natively.
Closes #5121 .
2018-12-03 15:10:13 -08:00
John MacFarlane
049a773b5b
Fix custom tests.
2018-11-29 11:04:08 -08:00
John MacFarlane
77a40d6f34
MediaWiki writer: fix caption, use 'thumb' instead of 'frame'.
...
Captions used to have the word 'caption' prepended; this
has been removed.
Also, 'thumb' is used instead of 'frame' to allow images
to be resized.
Closes #5105 .
2018-11-27 14:45:39 -08:00
John MacFarlane
83c0789205
Added test for #5053 .
...
Note that the fix for #5099 also fixes #5053 , a pandoc 2.4
regression in parsing underscore emphasis after symbols.
2018-11-25 22:50:16 -08:00
John MacFarlane
edc651059e
Fix parsing of citations and quotes after parentheses.
...
Starting with pandoc 2.4, citations and quoted inlines
were no longer recognized after parentheses. This is
because of commit 9b0bd4ec6f
,
which is reverted here.
The point of that commit was to allow relocation of
soft line breaks to before an abbreviation, so that
a nonbreaking space could be added after the
abbreviation. Now we simply leave the soft line
break in place, even though this means that
we won't get a nonbreaking space after "Mr."
at the end of a line (and in LaTeX this may
result in a longer intersentential space).
Those who care about this issue should take care
not to end lines with an abbreviation, or to
insert nonbreaking spaces manually.
Closes #5099 .
2018-11-25 22:29:54 -08:00
John MacFarlane
c9691b91df
OpenDocument writer: small amendment to #5095 .
...
Level one lists should start at 0.5in rather than 0.75in.
(At least this is how LibreOffice behaves for me with a new
document.)
2018-11-22 22:02:08 -05:00
Nils Carlson
eb82fd6b5e
ODT writer: Fix list indentation
...
Previously lists were indented by half an inch on the first line
for each level of nesting. This resulted in lists that looked like
this:
1. The first line of the list point text
the second line of the same list point.
Fix this and bring style into line with libreoffice standards:
1. The first line of the list point text
the second line of the list point text.
2018-11-22 17:18:09 +00:00
John MacFarlane
191141f27f
Fix markdown-citations test for new abbreviations changes.
2018-11-20 23:56:13 -05:00
John MacFarlane
d333c283cc
Docx writer: Fix bookmarks to headers with long titles.
...
Word has a 40 character limit for bookmark names. In
addition, bookmarks must begin with a letter. Since
pandoc's auto-generated identifiers may not respect
these constraints, some internal links did not work.
With this change, pandoc uses a bookmark name based
on the SHA1 hash of the identifier when the identifier
isn't a legal bookmark name.
Closes #5091 .
2018-11-20 23:43:21 -05:00
John MacFarlane
a5910c0a31
AsciiDoc writer: improve ordered lists.
...
Use `.`+ as list markers to support nested ordered lists. Closes #5087 .
Support list number styles. Closes #5089 .
2018-11-19 13:17:33 -08:00
John MacFarlane
d532eb14eb
HTML reader: allow tfoot before body rows.
...
Closes #5079 .
2018-11-16 11:29:15 -08:00
John MacFarlane
e61f632531
HTML reader: parse <small>
as a Span with class "small".
...
Closes #5080 .
2018-11-15 22:36:01 -08:00
John MacFarlane
e61d1d0da9
Asciidoc writer: Render Spans using [#id .class]#contents#
.
...
See #5080 .
2018-11-15 22:29:15 -08:00
Alexander Krotov
367e8cac18
Muse reader: trim whitespace before parsing grid table cells
2018-11-14 19:17:05 +03:00
Alexander Krotov
c61b67410a
Muse reader: add grid tables support
2018-11-14 17:58:44 +03:00
Alexander Krotov
195b3af8b6
Muse writer: indent simple tables only on the top level
2018-11-14 15:10:38 +03:00
John MacFarlane
1a102c11a9
Fix test case for #5014 .
2018-11-13 14:50:26 -08:00
John MacFarlane
1cfdd3662f
HTML reader: allow thead containing a row with td rather than th.
...
See #5014 .
Note that this doesn't address the original issue in #5014 ,
only an unrelated side-issue.
2018-11-13 14:49:12 -08:00
Alexander Krotov
4079697281
Muse writer: output tables with one column as grid tables
2018-11-13 18:44:56 +03:00
John MacFarlane
52a57a5362
LaTeX writer: don't emit [<+->]
unless beamer output,
...
even if `writerIncremental` is True.
See #5072 .
2018-11-12 09:43:12 -08:00
John MacFarlane
5bc38a741b
Exactly match GitHub's identifier generating algorithm.
...
See #5057 .
2018-11-11 20:45:38 -08:00
John MacFarlane
a36d202e86
Text.Pandoc.Shared: add parameter to uniqueIdent, inlineListToIdentifier.
...
The parameter is Extensions. This allows these functions to
be sensitive to the settings of `Ext_gfm_auto_identifiers` and
`Ext_ascii_identifiers`.
This allows us to use `uniqueIdent` in the CommonMark reader,
replacing some custom code.
It also means that `gfm_auto_identifiers` can now be used
in all formats.
Semantically, `gfm_auto_identifiers` is now a modifier of
`auto_identifiers`; for identifiers to be set, `auto_identifiers`
must be turned on, and then the type of identifier produced
depends on `gfm_auto_identifiers` and `ascii_identifiers` are set.
Closes #5057 .
2018-11-11 13:46:23 -08:00
John MacFarlane
65ca95eeea
Texinfo writer: add blank line before @menu
section.
...
Closes #5055 .
2018-11-07 15:27:02 -08:00
John MacFarlane
5f030f3c2c
Add command test for #5050 .
2018-11-06 22:57:11 -08:00
John MacFarlane
985db7b0a8
ICML writer: consolidate adjacent strings, inc. spaces.
...
This avoids chunking up the output unnecessarily into
separate elements.
2018-11-06 22:54:25 -08:00
Alexander Krotov
928ec21732
Use OverloadedStrings extension to simplify Muse writer tests
2018-11-06 00:04:33 +03:00
quasicomputational
a747268823
CommonMark writer: respect --ascii ( #5043 )
2018-11-05 09:33:10 -08:00
John MacFarlane
511d647290
XML: toHtml5Entities: prefer shorter entities...
...
when there are several choices for a particular character.
2018-11-04 22:15:53 -08:00
Alexander Krotov
0c84630549
Muse writer: add support for --reference-location=
...
Address #107
2018-11-05 08:42:52 +03:00
John MacFarlane
2f65263851
AsciiDoc writer: use single-line section headers.
...
The underline style is now deprecated.
Previously `--atx-headers` would enable the single-line
style; now the single-line style is always used.
Closes #5038 .
2018-11-03 12:03:05 -07:00
Yan Pashkovsky
43a0734f62
table tests
2018-11-02 22:42:51 -07:00
John MacFarlane
805b9f8a12
Roff reader: Improved handling of custom strings as arguments.
...
Added test.
2018-11-02 21:35:49 -07:00
John MacFarlane
e01ca77313
grofftest.sh - set resource path more appropriately.
2018-11-02 17:22:56 -07:00
John MacFarlane
c71fbb18e1
Improve test/grofftest.sh.
...
Use --resource-path.
Use iconv for latin1 man pages.
Recurse into subdirectories.
2018-11-02 10:59:38 -07:00
John MacFarlane
26341c1632
Implement --ascii for Markdown writer.
2018-11-01 16:31:04 -07:00
John MacFarlane
f379edc4ad
HTML writer: use character entities references when possible for HTML5.
2018-11-01 16:08:27 -07:00
John MacFarlane
714e0eb834
ZimWiki writer: number ordered list items sequentially...
...
rather than always with 1.
2018-10-31 22:02:10 -07:00
John MacFarlane
e0290fd18b
LaTeX writer: add newline if math ends in a comment.
...
This prevents the closing delimiter from being swalled
up in the comment.
Closes #4880 .
2018-10-31 21:51:20 -07:00
John MacFarlane
3305a018bc
Roff reader: properly handle unknown backslash escapes.
...
They are treated as regular characters, according to groff 7.
Cloess #5034 .
2018-10-30 15:54:29 -07:00
John MacFarlane
4fe28e947a
ZimWiki writer: remove extra indentation on lists.
...
Closes #4963 .
2018-10-29 22:33:11 -07:00
John MacFarlane
c51be5dfc8
LaTeX reader: allow space at end of math after \
.
...
Closes #5010 .
Expose trimMath from T.P.Shared.
2018-10-29 22:20:14 -07:00
John MacFarlane
8d55dc10cd
Roff tokenizer: better handling of escapes.
2018-10-28 21:37:57 -07:00
John MacFarlane
22755a35b7
Roff tokenizer: revamped font parsing using escapeArg.
...
Add support for \C'...' escapes.
2018-10-28 18:06:34 -07:00
Albert Krewinkel
6f29e1c9c1
T.P.Lua: rename runPandocLua
to runLua
(API change)
2018-10-28 12:08:52 -07:00
Albert Krewinkel
7f54f76e8b
T.P.Lua: merge runLuaFilter into T.P.Filter.Lua (API change)
...
The function `runLuaFilter` was only used in Text.Pandoc.Filter.Lua, use
apply from the that module instead.
2018-10-28 12:08:52 -07:00
John MacFarlane
e96bb43ceb
Man reader: allow block-level content in table cells.
...
Closes #5028 .
2018-10-27 23:37:18 -07:00
Alexander Krotov
f8ca36525d
Muse: Make tables round-trip
2018-10-28 03:52:35 +03:00
Alexander Krotov
e34a0703f5
Muse reader: try to parse lists before trying to parse table
...
This ensures that tables inside lists are parsed correctly.
2018-10-28 03:52:25 +03:00
Alexander Krotov
d8135b2e67
Remove misleading comment from Muse reader tests
...
pandoc follows Text::Amuse rules instead of being bug compatible with Emacs Muse
2018-10-27 23:43:23 +03:00
Alexander Krotov
d28dca57db
Muse reader: forbid whitespace after opening and before closing markup elements
...
See https://github.com/melmothx/text-amuse/issues/44 for discussion on these rules
2018-10-27 23:35:11 +03:00