Commit graph

2477 commits

Author SHA1 Message Date
John MacFarlane
1561d51cc5 Renamed to AsciiDoc. Fixed display math and escapes.
AsciiDoc does not seem to have consistent escaping rules.
2011-11-18 21:09:49 -08:00
John MacFarlane
1a3b7abd18 Spelling correction. 2011-11-18 19:57:29 -08:00
John MacFarlane
d01c632055 Added asciidoc output to README. 2011-11-18 19:56:58 -08:00
John MacFarlane
c552aa24cf Merge branch 'asciidoc' 2011-11-18 19:53:56 -08:00
John MacFarlane
679e94e53d Updated tests for correct col width. 2011-11-18 19:50:45 -08:00
John MacFarlane
4c122be58a Updated asciidoc test.
The test output still contains some mistakes.
2011-11-18 19:46:12 -08:00
John MacFarlane
c1710f9bde Skip raw HTML blocks in asciidoc. 2011-11-18 19:44:15 -08:00
John MacFarlane
457571e0c8 Fixed continuations in asciidoc definition lists. 2011-11-18 19:38:00 -08:00
John MacFarlane
f5af4903df Removed link title in asciidoc.
Apparently it is not supported.
2011-11-18 18:31:32 -08:00
John MacFarlane
965c9415b0 Ensure blank line before html passthrough. 2011-11-18 18:22:09 -08:00
John MacFarlane
11f6177670 Implemented ordered lists in asciidoc. 2011-11-18 18:19:47 -08:00
John MacFarlane
40c7d096cc Implemented bullet lists in asciidoc writer. 2011-11-18 17:50:41 -08:00
John MacFarlane
a9a4e24d29 Added fields to track list levels. 2011-11-18 17:01:38 -08:00
John MacFarlane
43c6c1d845 Updated ieee.csl and mhra.csl in test directory. 2011-11-18 13:41:40 -08:00
John MacFarlane
5ba1e92440 Updated chicago-author-date.csl.
The old version did not work properly for edited volumes
with no author.
2011-11-18 13:36:27 -08:00
John MacFarlane
e8e5ad210f Added comment about limitations of asciidoc conversion. 2011-11-18 13:23:09 -08:00
John MacFarlane
f6a0e75389 Supported tables in asciidoc, added table tests. 2011-11-18 13:19:22 -08:00
John MacFarlane
23c26bbc65 Pretty: Added chomp combinator. 2011-11-18 13:19:22 -08:00
John MacFarlane
823c0bcda9 Indicate when a multiblock footnote is omitted. 2011-11-17 23:13:29 -08:00
John MacFarlane
fcfbbd2caa Supported definition lists. 2011-11-17 22:35:39 -08:00
John MacFarlane
b7cbd42d07 Use attributes for author/date. 2011-11-17 00:52:45 -08:00
John MacFarlane
fed260439e Updated templates. 2011-11-16 19:17:18 -08:00
John MacFarlane
fc1c17b174 Added an asciidoc writer (partial).
Still TODO:

- documentation in README
- add default.asciidoc to templates/
- lists
- tables
- proper escaping
- footnotes with blank lines - print separately at end?
  currently they are just ignored.
- fix header (date gives weird result on pandoc README)
2011-11-16 19:14:55 -08:00
John MacFarlane
1da1d4ec24 Updated writer tests for new version of texmath. 2011-11-12 13:25:02 -08:00
John MacFarlane
bf4f8ffe55 LaTeX reader: Don't crash on commands like \itemsep.
Closes #314.
2011-11-12 13:20:29 -08:00
John MacFarlane
da57775171 LaTeX reader: Ignore empty groups {}, { }.
Closes #322.
2011-11-12 13:03:11 -08:00
John MacFarlane
8ed33f6662 Add date to EPUB titlepage and metadata.
Closes #323.  Thanks to Ralf Stephan for the patch (slightly modified).
2011-11-12 12:25:43 -08:00
John MacFarlane
9a46d75506 Implemented --citation-abbreviations option.
Mostly due to Andrea Rossato.
2011-11-11 17:54:34 -08:00
John MacFarlane
14620579c0 Changed misleading documentation on markdown2pdf.
markdown2pdf used to create a backup file if the output file
exists; it doesn't any longer, but the documentation still said
it does.
2011-11-10 15:37:52 -08:00
John MacFarlane
fc3826e078 markdown2pdf: Use proper temp directory for latex processing.
Previously /tmp/pandoc was used, which was problematic for
several reasons. Closes #339.
2011-11-10 11:55:09 -08:00
John MacFarlane
5c1c818501 Require citeproc-hs >= 0.3.4. 2011-11-09 13:23:59 -08:00
John MacFarlane
d74e8d14a5 Markdown citations: don't strip off initial space in locator.
Previously `[@item1 and nowhere else]` yielded the locator ", and nowhere
else", or, with the new citeproc-hs, "and nowhere else".
Now it yields " and nowhere else".
2011-11-09 13:18:01 -08:00
John MacFarlane
6a51897f33 Fixed markdown-citations.ieee.txt to use em-dashes for citation ranges.
This is a new feature in citeproc-hs.
2011-11-09 12:57:47 -08:00
John MacFarlane
c2f7ba3b69 TeXMath writer: Use unicode thin spaces for thin spaces.
Partially resolves issue #333.
2011-11-08 18:22:28 -08:00
John MacFarlane
821286a6f3 Update templates to use Content-Style-Type meta tag.
Closes #337.
2011-11-08 11:54:10 -08:00
John MacFarlane
e299f8a853 Updated templates. 2011-11-07 23:06:27 -08:00
John MacFarlane
9bee0498ab Updated templates. 2011-11-07 23:02:40 -08:00
John MacFarlane
4f95aeb6d2 HTML writer: Use <section> for footnotes if html5. 2011-11-07 12:23:05 -08:00
John MacFarlane
fd06f66301 Updated templates. 2011-11-07 12:16:37 -08:00
John MacFarlane
05fa195bf7 Biblio: Fixed mess created by my removing procInlines.
Now I see that procInlines was needed to prevent bottomUp
from acting on sublists.

This should fix the problem where '@item1, @item1' yielded
"Doe (1999), Doe Doe Doe Doe (1999)".
2011-11-07 11:32:08 -08:00
John MacFarlane
1af2ebce43 Biblio - fixed author-in-text citations so they don't double. 2011-11-07 11:03:33 -08:00
John MacFarlane
e95e6f3664 Biblio - Removed redundancy. 2011-11-07 10:31:25 -08:00
John MacFarlane
ca98cd8f18 Biblio: Put whole author-in-text citation in a Cite.
Previously just the date and other info went in the Cite.
2011-11-06 17:28:39 -08:00
John MacFarlane
ca5f4434c2 Further simplification of Biblio. 2011-11-06 16:48:16 -08:00
John MacFarlane
380fa06720 Further cleanup of Biblio. 2011-11-06 16:37:50 -08:00
John MacFarlane
3bf1984df6 Simplified Biblio, removed procInlines, use generics instead. 2011-11-06 16:16:06 -08:00
John MacFarlane
dd6ed88707 Markdown reader: allow punctuation only internally in cite keys.
The characters '.',':',';','$','<','>','~','#','-','_' can
be used only between two letters or digits in a citation key.

This means that '@item1.' will be parsed as a citation, 'item1',
followed by a period, instead of a citation 'item1.', as was the
case previously.

Thanks to David Sanson for alerting us to the problem.
2011-11-06 16:00:23 -08:00
John MacFarlane
e8bfabeeeb Don't add comma+space to prefix if it ends in punctuation.
Patch from Andrea Rossato.
2011-11-04 17:38:18 -07:00
John MacFarlane
195f9045a4 Clarified rule for first line of definition lists.
Closes #310.
2011-10-28 13:24:39 -07:00
John MacFarlane
f4dbd85347 Text.Pandoc.Biblio: Expand citations recursively inside nested inlines.
Closes #331.
2011-10-28 13:18:58 -07:00