John MacFarlane
e10d5b3d5b
Change 'groff' -> 'roff'.
...
These formats (man, ms) are not groff-specific.
2018-11-01 16:46:43 -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
5350ce26b4
Text.Pandoc.XML: add toHtml5Entities.
...
[API change]
2018-11-01 15:59:59 -07:00
Mauro Bieg
614b1c0c61
MANUAL: clarify LaTeX image dimensions output
2018-11-01 14:15:09 -07:00
John MacFarlane
2f579193ae
getting-started.md: Added title to test1.md to avoid warning.
2018-11-01 11:49:49 -07:00
Alexander Krotov
bd59f8b708
Remove unnecessary hiding in Class.hs
2018-11-01 19:09:59 +03:00
Alexander Krotov
0d6a606d32
Remove Monad constraint implied by Stream
2018-11-01 19:02:24 +03:00
Alexander Krotov
72b5878dcb
hlint Parsing.hs
2018-11-01 18:45:15 +03:00
Alexander Krotov
5cffd6bc77
LaTeX writer: remove unused local bind
2018-11-01 13:38:24 +03:00
Alexander Krotov
512732db7b
Make uri
accept any stream with Char tokens
2018-11-01 13:12:59 +03:00
Alexander Krotov
3b9d4edcfc
Rewrite "uri" without "withRaw"
2018-11-01 12:49:28 +03:00
John MacFarlane
65614a85bc
Work around HXT limitation for --syntax-definition with windows drive.
...
Closes #4836 .
2018-10-31 23:37:37 -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
ffd3aa4f09
Roff reader: rename RoffToken constructors so they're shorter.
2018-10-30 18:16:44 -07:00
John MacFarlane
c46593304c
Roff reader: renamed constructors for RoffToken...
...
to more closely match nomenclature from man 7 groff.
2018-10-30 17:43:51 -07:00
John MacFarlane
e9130b8e52
Roff reader: removed MacroKind alias.
2018-10-30 15:59:34 -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
Alexander Krotov
e874bc2c28
Generalize gridTableWith to any streams with Char tokens
2018-10-31 00:16:58 +03:00
Alexander Krotov
51685cafde
Generalize parseFromString'
2018-10-31 00:09:55 +03:00
Alexander Krotov
6f6e4c0d84
Generalize parseFromString to any streams with Char token
2018-10-31 00:06:05 +03: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
9e3a2b61ec
Roff reader: improved escape parsing.
...
Closes #5032 .
This also removes the FontSize constructor from LinePart.
We don't need this yet.
2018-10-29 21:51:49 -07:00
John MacFarlane
39f026298d
Roff tokenizer: allow \*~
etc.
2018-10-28 21:58:31 -07:00
John MacFarlane
eb13f76dec
Roff tokenizer: handle e.g. \*n
.
2018-10-28 21:49:27 -07:00
John MacFarlane
8d55dc10cd
Roff tokenizer: better handling of escapes.
2018-10-28 21:37:57 -07:00
John MacFarlane
7a30eae693
Roff reader: introduce normal/copy mode distinction.
2018-10-28 21:03:07 -07:00
John MacFarlane
6b8e595e72
Roff reader: use escapeArg in macroArg.
2018-10-28 20:41:17 -07:00
John MacFarlane
b1e7101393
Roff tokenizer: refactor escString.
2018-10-28 18:11: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
John MacFarlane
53d89d7eab
Roff tokenizer: abstract out patterns: escapeArg, quoteArg.
2018-10-28 17:23:09 -07:00
John MacFarlane
3cb8a3f397
Roff tokenizer: allow space before ( in table options.
2018-10-28 17:22:20 -07:00
John MacFarlane
7c9ff8461f
small wording change
2018-10-28 16:18:11 -07:00
mb21
7e6f13cf81
EPUB writer: use metadata field css
instead of stylesheet
...
closes #4990
2018-10-28 16:18:11 -07:00
Albert Krewinkel
8ef995cfc0
T.P.Filter: centralize filter path expansion
2018-10-28 12:08:52 -07:00
Albert Krewinkel
f612421307
T.P.Lua: expose more useful internals (API change)
...
Newly exported from Text.Pandoc.Lua:
- `runFilterFile` to run a Lua filter from file;
- data type `Global` and its constructors; and
- `setGlobals` to add globals to a Lua environment.
This module also contains `Pushable` and `Peekable` instances required
to get pandoc's data types to and from Lua. Low-level Lua operation
remain hidden in Text.Pandoc.Lua.
2018-10-28 12:08:52 -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
Albert Krewinkel
0531a4653a
API change: expose module Text.Pandoc.Filter
...
The module is likely to be useful to library users.
2018-10-28 12:08:52 -07:00
John MacFarlane
fd672f9722
Man reader: improved code blocks as continuation in list items.
2018-10-28 12:00:25 -07:00
John MacFarlane
26a7583209
Man reader: allow both .in and .IP to indent code block.
2018-10-28 11:50:09 -07:00
John MacFarlane
07647f05f0
Man reader: skip .in used for indentation of code.
2018-10-28 11:44:41 -07:00
John MacFarlane
8de8313ca1
Man reader: .PP in code blocks as blank line.
2018-10-28 11:40:15 -07:00
John MacFarlane
2d785c1e37
Man reader: handle inline macros like .BI in code blocks.
...
The font changes are discarded, but at least we keep the text.
2018-10-28 11:31:48 -07:00
John MacFarlane
fdce771a4e
Hlint changes.
2018-10-28 10:46:45 -07:00
John MacFarlane
fe73707ab1
Roff tokenizer: better handling of table format strings.
...
Particularly f and m, which require a space after their
argument. Also, allow space before numerical arguments, as
in his example from stty.1:
```
.TS
center tab(@) box;
cB cB | cB cB | cB cB
lf5 2 l 6 | lf5 2 l 6 | lf5 2 l.
\&^c@Value@^c@Value@^c@Value
```
2018-10-28 10:41:24 -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