John MacFarlane
3b710b6fa7
Man reader: minor refactoring.
2018-10-19 20:56:00 -07:00
John MacFarlane
4333556bcf
stack.yaml - use latest cmark-gfm, pandoc-citeproc.
2018-10-19 20:28:35 -07:00
John MacFarlane
7a3380381c
Man reader: Nicer looking "skipped content" report.
...
Just give the macro name, which users will recognize,
rather than the internal token.
2018-10-19 16:24:30 -07:00
John MacFarlane
574f9250a7
Man reader: got rid of MUnknownMacro and simplified code.
2018-10-19 16:09:56 -07:00
John MacFarlane
31821451f0
Man reader: remove algebraic type for MacroKind.
...
Instead, just use a String for the literal macro.
This makes the code easier to follow and yields better
info messages for ignored content.
Closes #4980 .
2018-10-19 16:03:12 -07:00
John MacFarlane
2451d38147
Use man reader for files with extension dot + digit.
2018-10-19 16:02:05 -07:00
John MacFarlane
790ada8946
Man reader: Added more tests for escapes.
...
Closes #4983 .
2018-10-19 15:36:43 -07:00
John MacFarlane
56c4a11f97
Man reader: minor improvements.
...
use `trimInlines` for Para content to avoid leading and
trailing spaces.
Fix handling of \" in middle of line.
Add more tests for escapes.
2018-10-19 15:17:53 -07:00
John MacFarlane
e6772360f6
More man reader test updates.
2018-10-19 14:59:11 -07:00
John MacFarlane
2ee9cdcc60
Update tests for last change to man reader.
2018-10-19 14:27:13 -07:00
John MacFarlane
f61d35fd5a
Man reader: generate Space elements correctly.
...
Closes #4979 .
2018-10-19 14:19:44 -07:00
John MacFarlane
400e87df1d
Update man reader tests.
2018-10-18 23:54:13 -07:00
John MacFarlane
a49cd34983
Man reader: improve list parsing.
...
We now handle all kinds of ordered list markers.
We also avoid having an extra bullet character
in bullet list contents.
2018-10-18 23:54:13 -07:00
John MacFarlane
b59ba39e1a
Man reader: remove final newline in code blocks.
...
This is consistent with other readers.
2018-10-18 23:54:13 -07:00
John MacFarlane
e9c422649d
Man reader: use report instead of logMessage.
2018-10-18 23:54:13 -07:00
John MacFarlane
e15b5b360f
Man reader: improved parsing of groff escapes.
...
We now handle all the named escapes, plus combining accents
and unicode escapes.
2018-10-18 23:54:13 -07:00
John MacFarlane
7d5b25d6d6
GroffChar: fixed interpretation of \-
.
...
It is the ascii - sign, not the unicode hyphen.
2018-10-18 23:54:13 -07:00
Albert Krewinkel
00b0c4a57b
Lua filter doc: merge type references into main document
2018-10-19 08:14:10 +02:00
John MacFarlane
94c73e84d5
Merge branch 'Yanpas-groff_reader'
2018-10-18 20:58:46 -07:00
John MacFarlane
465f11833f
Remove tag on pandoc-citeproc in cabal.project.
2018-10-18 20:45:20 -07:00
John MacFarlane
62467c6e46
Bump upper bound for QUickCheck.
2018-10-18 20:44:45 -07:00
John MacFarlane
9d852df615
Bump upper bound for binary.
2018-10-18 20:43:18 -07:00
John MacFarlane
2cd8f1f155
cabal.project - add tag for pandoc-citeproc.
2018-10-18 17:01:56 -07:00
John MacFarlane
19d9afcae6
Revert "cabal.project - removed git repo for pandoc-citeproc."
...
This reverts commit 29ea3e734d
.
2018-10-18 16:58:47 -07:00
John MacFarlane
29ea3e734d
cabal.project - removed git repo for pandoc-citeproc.
...
Released version is okay.
2018-10-18 16:43:36 -07:00
John MacFarlane
8c4a3e859e
appveyor - --verbose to diagnose problem.
...
Why is text-icu being built?
2018-10-18 16:41:16 -07:00
Albert Krewinkel
e3b85517d6
Lua filters doc: fix and add more links to types
2018-10-18 22:27:14 +02:00
John MacFarlane
5935718628
Remove unneeded import.
2018-10-18 10:57:46 -07:00
John MacFarlane
3fbbdd92fb
linux Dockerfile - use released static build of stack.
2018-10-18 10:31:16 -07:00
John MacFarlane
efbb329f1a
Groff escaping changes.
...
- `--ascii` is now turned on automatically for man output, for
portability. All man output will be escaped to ASCII.
- In T.P.Writers.Groff, `escapeChar`, `escapeString`, and
`escapeCode` now take a boolean parameter that selects
ascii-only output. This is used by the Ms writer for
`--ascii`, instead of doing an extra pass after writing
the document.
- In ms output without `--ascii`, unicode is used whenever
possible (e.g. for double quotes).
- A few escapes are changed: e.g. `\[rs]` instead of `\\` for
backslash, and `\ga]` instead of `` \` `` for backtick.
2018-10-18 10:21:34 -07:00
John MacFarlane
bbd94eae2b
Add Text.Pandoc.GroffChar.
...
This will hold common escaping data for groff characters.
2018-10-18 09:39:55 -07:00
John MacFarlane
24f388e1a7
man/ms writers: use \[at]
for escaped @
.
2018-10-17 17:39:42 -07:00
John MacFarlane
ebdb2deb0d
Updated version bounds for containers and haddock-library.
...
Allow haddock-library 1.7 and containers 0.6.*.
Closes #4974 .
2018-10-17 17:30:14 -07:00
John MacFarlane
f48960b75f
Move common groff functions to Text.Pandoc.Writers.Groff
...
(unexported module). These are used in both the man and ms
writers.
Moved groffEscape out of Text.Pandoc.Writers.Shared [cancels earlier
API change from adding it, which was after last release].
This fixes strong/code combination on man (should be `\f[CB]` not
`\f[BC]`), mentioned in #4973 .
Updated tests.
Closes #4975 .
2018-10-17 17:26:37 -07:00
Alexander Krotov
b3feaba6af
Man writer: use \f[R] instead of \f[] to reset font
...
Fixes #4973
2018-10-17 18:29:07 +03:00
Alexander Krotov
6fc812485e
Muse reader: allow examples to be indented with tabs
2018-10-17 18:17:30 +03:00
Alexander Krotov
1071732719
Muse reader: remove indentation from examples indicated by {{{ and }}}
2018-10-17 13:57:05 +03:00
John MacFarlane
5c42101ee9
Merge branch 'groff_reader' of https://github.com/Yanpas/pandoc into Yanpas-groff_reader
2018-10-16 18:39:20 -07:00
Yan Pas
2c4e8941a7
update cabal, add man-reader
2018-10-17 01:34:12 +03:00
Yan Pas
7741cdbf04
added old-style test
2018-10-17 00:21:52 +03:00
John MacFarlane
63b3886bfe
Added note to customizing-pandoc.
2018-10-16 10:42:48 -07:00
John MacFarlane
a552af612e
customizing-pandoc: add suggestion about 'pandoc -t native'.
2018-10-16 09:57:10 -07:00
John MacFarlane
e32220ef4f
Revised customizing-pandoc.md and included TODOs.
2018-10-16 09:54:59 -07:00
Alexander Krotov
7f814c5339
Muse reader: simplify "atStart"
2018-10-16 19:26:54 +03:00
Mauro Bieg
a5fc46cb8f
add docs about customizing pandoc ( #4972 )
...
closes #3288
2018-10-16 09:10:34 -07:00
Alexander Krotov
d2262122d3
Muse reader: code cleanup
2018-10-16 18:40:52 +03:00
Alexander Krotov
50aa7bfddc
Muse reader: simplify "commonPrefix" implementation
2018-10-16 16:23:59 +03:00
Alexander Krotov
d3ba2fc3d8
Muse reader: simplify emphasis parsing
2018-10-16 15:56:07 +03:00
Albert Krewinkel
b831bd9fc1
Lua filter docs: extend description of table fields
2018-10-16 08:01:59 +02:00
John MacFarlane
885cbfd420
Only override --quickcheck-tests=N if N is not default value (100).
...
Some of the round-trip tests are set to do a maximum of 25
trials when the default value is given.
Closes #4956 .
2018-10-15 22:15:43 -07:00