John MacFarlane
2e20129903
Ms. writer: links: use footnote only for absolute URIs.
2017-03-25 10:35:05 +01:00
John MacFarlane
980cc50aff
Ms writer: Got figures with ps and eps images working.
2017-03-25 10:12:10 +01:00
John MacFarlane
c13cfe8f5d
Ms writer: Use indented paragraphs after first in section.
...
Note that the current indentation setting is 0; see the
settings in the template.
2017-03-24 23:32:28 +01:00
Albert Krewinkel
1e13e98ecf
Ensure compatibility with hslua 0.5.*
...
The 0.5.0 release of hslua fixes problems with lua C modules on linux.
The signature of the `loadstring` function changed, so a compatibility
wrapper is introduced to allow both 0.4.* and 0.5.* versions to be used.
2017-03-24 21:31:35 +01:00
John MacFarlane
a7ae4b1ee2
Ms writer: support --toc, date, abstract.
2017-03-24 17:25:09 +01:00
John MacFarlane
438e8686cf
Markdown writer: don't emit a simple table if simple_tables
disabled.
...
Closes #3529 .
2017-03-24 16:11:56 +01:00
John MacFarlane
9945f9129f
Ms writer: changed some names and comments, man -> ms.
2017-03-24 10:13:33 +01:00
John MacFarlane
4248231a7e
Ms writer: fixed rawblock/inline to accept "ms" format.
2017-03-24 09:56:40 +01:00
John MacFarlane
718254340f
Recognize .roff extension as ms format.
2017-03-24 09:40:13 +01:00
John MacFarlane
2251d9cb73
Ms writer: Use custom .HRULE macro for horizontal rule.
2017-03-24 09:23:19 +01:00
John MacFarlane
c964898899
Ms writer: warning for non-rendered raw content.
2017-03-24 08:52:35 +01:00
John MacFarlane
f0abbe7533
Allow creation of pdf via groff ms and pdfroff.
...
pandoc -t ms -o output.pdf input.txt
2017-03-23 21:24:01 +01:00
John MacFarlane
ffd699385a
Ms writer: improved definition lists.
...
Use standard .IP macro.
Also properly escape ".
2017-03-23 17:29:26 +01:00
John MacFarlane
6c07e43112
Ms writer: use .IP for more standard definition lists.
2017-03-23 17:20:06 +01:00
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
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
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
Mauro Bieg
b010a8c5e7
docx writer: lang meta, see #1667 ( #3515 )
2017-03-20 10:06:24 +01:00
John MacFarlane
38c3a68346
LaTeX/Beamer writer: allow hyperlinks to frames.
...
Previously you could link to a header above or below slide
level but not TO slide level. This commit changes that.
Hypertargets are inserted inside frame titles; technically
the reference is to just after the title, but in normal
use (where slides are viewed full screen in a slide show),
this does not matter.
Closes #3220 .
2017-03-16 10:15:14 +01:00
John MacFarlane
482e5b78a0
OpenDocument writer: use more widely available bullet characters.
...
The old characters weren't available in some font sets.
These seem to work well on Windows and Linux versions of LibreOffice.
Closes #1400 .
2017-03-15 17:19:28 +01:00
John MacFarlane
0b4ae3af66
Removed unused symbol.
2017-03-13 22:21:50 +01:00
John MacFarlane
4de4816b99
RST writer: convert to PandocMonad, report on unrendered raw items.
2017-03-13 21:32:58 +01:00
John MacFarlane
db37b71d9a
Highlighting: highlighting now returns an Either rather than Maybe.
...
This allows us to display error information returned by the
skylighting library.
Display a warning if the highlighting library throws an error.
2017-03-13 11:38:19 +01:00
John MacFarlane
efcb51bcb0
Put TEI writer inside PandocMonad. Added warnings for omitted raw elements.
...
Also added identifiers on `<div>` elements. These were commented
out before, not sure why?
2017-03-13 11:08:17 +01:00
John MacFarlane
1012e668cf
Converted DokuWiki writer to use PandocMonad.
2017-03-12 23:15:22 +01:00
John MacFarlane
df7a443f67
MediaWiki writer: use PandocMonad.
2017-03-12 23:09:00 +01:00
John MacFarlane
d66b046c8a
Markdown writer: fixed bugs in simple/multiline list output.
...
* Previously we got overlong lists with `--wrap=none`. This is fixed.
* Previously a multiline list could become a simple list (and would
always become one with `--wrap=none`).
Closes #3384 .
2017-03-11 23:24:14 +01:00
John MacFarlane
ac15b0443f
ConTeXt writer: converted to use PandocMonad.
2017-03-10 20:54:52 +01:00
John MacFarlane
ba78b75146
Removed normalizeSpaces from Text.Pandoc.Shared.
...
Rewrote functions in RST reader and writer to avoid the need
for it.
Closes #1530 .
2017-03-10 20:45:21 +01:00
Alexander Krotov
d037c5019d
Add Muse writer ( #3489 )
...
* Add Muse writer
* Advertise new Muse writer
* Muse writer: add regressions tests
2017-03-10 10:16:27 +01:00
John MacFarlane
1e78aec88e
HTML writer: info message if 'lang' is unspecified.
...
Closes #3486 .
2017-03-09 10:21:11 +01:00
John MacFarlane
239a17a986
HTML writer: fallback to basename rather than Untitled.
2017-03-09 09:41:22 +01:00
John MacFarlane
fd35661646
Remove space at beginning/end of RST code span.
...
Otherwise we get invalid RST. There seems to be no
way to escape the space.
Closes #3496 .
2017-03-08 19:06:32 +01:00
John MacFarlane
bcfb77e2ab
Markdown writer: Avoid spurious blanklines at end of document...
...
after tables and list, for example.
2017-03-08 12:47:39 +01:00
John MacFarlane
b6e7bfaf1d
Markdown writer: ensure space before list at top level.
...
Closes #3487 .
2017-03-08 12:42:01 +01:00
John MacFarlane
2645ce7aca
Markdown writer: escape unordered list markers at beginning of paragraph
...
to avoid false interpretation as a list.
Also handle `|`, and refactor code for escaping `%`.
Closes #3497 .
2017-03-08 12:06:08 +01:00