Commit graph

1140 commits

Author SHA1 Message Date
John MacFarlane
17e70940a0 LaTeX reader: Require non-letter after certain commands.
Previously "\opening" was rendered as "\248pening".
The "\o" should not be parsed as a control sequence.
Partially addresses #393.
2012-01-29 22:27:37 -08:00
John MacFarlane
f437827b0c Remove dependency on old-time. 2012-01-28 16:04:35 -08:00
John MacFarlane
3a0b3df007 Put date in YYYY-MM-DD format if possible for HTML, docx metadata.
Added normalizeDate to Text.Pandoc.Shared.
2012-01-28 15:54:34 -08:00
John MacFarlane
98e5b61703 Removed an unnecessary many spaceChar. 2012-01-28 13:12:52 -08:00
John MacFarlane
0487eae7ee Markdown reader: Fixed bug in code block attribute parser.
Previously the ID attribute got lost if it didn't come first.
Now attributes can come in any order.
2012-01-28 12:36:51 -08:00
John MacFarlane
d1ded4b026 Support github syntax for fenced code blocks.
You can now write

    ```ruby
    x = 2
    ```

instead of

    ~~~ {.ruby}
    x = 2
    ~~~~
2012-01-28 12:25:24 -08:00
John MacFarlane
d0e70cbc29 XML: Added toEntities. 2012-01-28 11:43:27 -08:00
John MacFarlane
8abe08d6d4 Made beamer an output format, removed pdf as output format.
Removed `--beamer` option; instead, use `beamer` as output format.
There is no longer a `pdf` output format; instead, pandoc tries
to produce a pdf if the output file has a `.pdf` extension.
(The output format can be latex -- the default for pdf output,
latex+lhs, or beamer.)

This seems more consistent with the way pandoc currently works
(e.g. we have an `html5` output format, not an `--html5` option).
2012-01-28 11:41:26 -08:00
John MacFarlane
513af8dd1b LaTeX writer: escape # in href URLs. Closes #359. 2012-01-27 13:44:17 -08:00
John MacFarlane
5b3c0a1081 Made charWidth in Text.Pandoc.Pretty complete.
Used the unicode spec EastAsianWidth.txt.
All characters marked W or F get width 2.

Closes #377.
2012-01-27 13:30:47 -08:00
John MacFarlane
663cfc2fbd Docbook writer: Use sect1, sect2, etc. instead of section. 2012-01-27 11:32:02 -08:00
John MacFarlane
bd7918da4c Finished implementing --atx-headers in markdown writer. 2012-01-27 01:19:20 -08:00
John MacFarlane
ff93a8e789 Fixed table parsing with wide or combining characters.
Closes #348.  Closes #108.
2012-01-27 00:39:00 -08:00
John MacFarlane
4321e27bfd Removed some unused code. 2012-01-27 00:38:47 -08:00
John MacFarlane
ad33a22a22 Shared: Added splitStringWithIndices.
This is like splitWithIndices, but it is sensitive to distinctions
between wide, combining, and regular characters.
2012-01-27 00:37:46 -08:00
John MacFarlane
5fc6669be6 Added --atx-headers option. 2012-01-26 23:55:37 -08:00
John MacFarlane
1ce7c38bc4 LaTeX reader: Handle \@. 2012-01-26 11:52:25 -08:00
John MacFarlane
f70dfe4d3d Pretty: Export realLength and use it in calculating offsets.
This should help fix setext headers and tables containing
asian wide characters and combining characters.
2012-01-25 23:30:21 -08:00
John MacFarlane
0c11d94e70 Pretty: Added charWidth function. 2012-01-25 23:15:18 -08:00
John MacFarlane
60bf741d68 Added --slide-level option to override default.
This allows users to select a slide level below the first
header level with content.

Note that content under sections above the slide level will not appear
in slides (either in beamer or in HTML slide shows).

This is primarily useful for creating documents that can be made
into both slides and handouts (which contain additional content
outside the slides).
2012-01-25 17:51:52 -08:00
John MacFarlane
4ffff62097 Fixed regression in HTML writer: all headers level 1! 2012-01-25 11:30:12 -08:00
John MacFarlane
3a8afc119a Depend on highlighting-kate 0.5.
This uses styleToCss instead of styleToHtml.
2012-01-25 11:29:42 -08:00
John MacFarlane
6fde073eb5 LaTeX/beamer: --chapters causes level 1 to be \part{..}. 2012-01-25 10:47:22 -08:00
John MacFarlane
f7ed8d5ddc Doc fixes in Text.Pandoc. 2012-01-24 20:49:05 -08:00
John MacFarlane
8aa3d1cccc Text.Pandoc: Added ToFilter instance for a -> [a] types. 2012-01-24 11:50:35 -08:00
John MacFarlane
92885dd7ef HTML writer: Use h1 for all slide titles. 2012-01-24 10:51:15 -08:00
John MacFarlane
13b6990139 Slides: Fixed bug in prepSlides. 2012-01-24 10:50:56 -08:00
John MacFarlane
4d2f9128b7 HTML writer: Use new common system for slides. 2012-01-24 10:15:41 -08:00
John MacFarlane
2e62ec096f Added ToJsonFilter class, deprecated old jsonFilter function. 2012-01-24 09:06:19 -08:00
John MacFarlane
0fd0dc2344 Slides: New approach, using hierarchicalize.
This will work better with the HTML slideshows.
2012-01-23 23:02:18 -08:00
John MacFarlane
228c76bb89 Slides: Better error message. 2012-01-23 21:05:43 -08:00
John MacFarlane
05cf164edf LaTeX beamer: Only add [fragile] to slide if it contains verbatim.
Closes #385.
2012-01-23 21:03:10 -08:00
John MacFarlane
97af576729 Use Slides in LaTeX writer for beamer. 2012-01-23 13:25:55 -08:00
John MacFarlane
a8046ea969 Got slide creation working. 2012-01-22 23:53:19 -08:00
John MacFarlane
09882364ce Added to Slides. 2012-01-22 21:31:10 -08:00
John MacFarlane
64de5194b7 Added Text.Pandoc.Slides. 2012-01-22 19:58:45 -08:00
John MacFarlane
e721c7428e Removed beamer output format; added --beamer option. 2012-01-21 14:49:26 -08:00
John MacFarlane
e6e4311ddd pandoc: Better error checking. 2012-01-21 14:18:36 -08:00
John MacFarlane
d7b67f48cd PDF: Use string instead of special TeXProgram type. 2012-01-20 21:36:04 -08:00
John MacFarlane
b4a6c02343 PDF: Better error message. 2012-01-20 19:52:56 -08:00
John MacFarlane
ce3653e39d pandoc: Output to pdf now works. 2012-01-20 19:39:18 -08:00
John MacFarlane
f519f0a1ad PDF: Export TeXProgram type. 2012-01-20 19:13:47 -08:00
John MacFarlane
c9c78344b1 PDF: Removed TeXError type, just return a bytestring. 2012-01-20 19:11:35 -08:00
John MacFarlane
50e16e6855 Fixed -Wall errors in PDF module. 2012-01-20 19:04:08 -08:00
John MacFarlane
9d1118ac1f Added Text.Pandoc.PDF - converts latex to PDF. 2012-01-20 18:57:16 -08:00
John MacFarlane
6c75843422 Docx: Put display math on separate line. 2012-01-20 14:05:14 -08:00
John MacFarlane
e3fd1cd108 Docx writer: Fixed styles in footnotes.
Previously a footnote in a list item would be a list item, etc.!
2012-01-20 13:32:56 -08:00
John MacFarlane
fbbff22f06 Docx: Adjusted list spacing for less cramped number markers. 2012-01-20 13:17:40 -08:00
John MacFarlane
525881ee52 Docx writer: Start bullet lists with solid bullet. 2012-01-20 13:07:14 -08:00
John MacFarlane
2a84e748a9 Docx writer: Don't indent first level of lists. 2012-01-20 13:03:47 -08:00