aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-03-29Haddock reader: add the "haskell" attribute to code blocks so they areDavid Lazar1-4/+4
highlighted. We reasonably assume that code blocks in Haddock markup wont be used for anything but Haskell code.
2013-03-29Haddock reader: improved error reporting.David Lazar3-6/+9
2013-03-28Parsing: Better error reporting in readWith.John MacFarlane2-5/+15
- Specialize readWith to String input. - On error have it print the line in which the error occurred, with a caret pointing to the column. - This should help diagnose parsing problems in LaTeX especially.
2013-03-28Haddock writer: use 'text' builder instead of 'str'.John MacFarlane1-3/+10
This articulates strings into Str, Space, allowing them to be hard-wrapped intelligently by the writers. This patch also fixes a bug with trailing spaces and newlines. (See #806.)
2013-03-28Allow simple tables to be printed as grid tables.John MacFarlane1-11/+14
if other table options are disabled. This means you can do pandoc -t markdown-pipe_tables-simple_tables-multiline_tables and all tables will render as grid tables.
2013-03-28Modified haddock reader test stubs so they pass, for now.John MacFarlane2-2/+1
2013-03-28Added stubs for haddock reader tests.John MacFarlane4-0/+9
Modify tests/haddock-reader.haddock and tests/haddock-reader.native.
2013-03-28Documented haddock reader in README.John MacFarlane1-5/+7
2013-03-28Mention haddock reader in cabal description.John MacFarlane1-8/+9
2013-03-28Add reader for Haddock markup based on Haddock's own lexer/parser.David Lazar5-1/+395
2013-03-28Parsing: Further improvements to uri parser.John MacFarlane1-2/+4
Don't treat punctuation before percent-encoding as final punctuation. Don't treat '+' as final punctuation.
2013-03-28Mediawiki reader: Fixed | links inside table cells.John MacFarlane1-10/+8
Improved attribute parsing.
2013-03-28Mediawiki reader: Fixed last commit.John MacFarlane1-1/+1
2013-03-28MediaWiki reader: Correctly handle indented preformatted textJohn MacFarlane3-5/+24
without preceding or following blank line.
2013-03-28Mediawiki: Fixed regression for `<ref>URL</ref>`.John MacFarlane3-2/+4
`<` is no longer allowed in URLs, according to the uri parser in Text.Pandoc.Parsing. Added a test case.
2013-03-27mediawiki reader: allow space before table rows.John MacFarlane1-4/+5
2013-03-26Removed blaze_html_0_5 flag, require blaze-html >= 0.5.John MacFarlane2-13/+1
Reason: < 0.5 does not provide a monoid instance for Attribute, which is now needed by the HTML writer. Closes #803.
2013-03-26SelfContained: handle src in embed, audio, source, input tags.John MacFarlane1-9/+4
2013-03-26Shared: openURL now follows redirects.John MacFarlane1-8/+10
Closes #701.
2013-03-25SelfContained: strip off fragment, query of relative URLJohn MacFarlane1-4/+8
before treating as a filename. This fixes `--self-contained` when used with CSS files that include web fonts using the method described here: http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/ Examples from reveal.js themes: "../../lib/font/league_gothic-webfont.eot?#iefix" "../../lib/font/league_gothic-webfont.svg#LeagueGothicRegular" Closes #739.
2013-03-25Slidy: Use slidy.js rather than slidy.js.gz.John MacFarlane4-6/+3022
Reason: some browsers have trouble with the gzipped js file, at least on the local file system. Closes #795.
2013-03-24EPUB writer: Don't put blank title page in reading sequence.John MacFarlane1-1/+4
Set linear="no" if no title block. Addresses #797.
2013-03-24EPUB writer: Add `id="toc-title"` to h1 in nav.xhtml.John MacFarlane1-1/+1
Closes #799.
2013-03-24Fixed typo. Closes #798.John MacFarlane1-1/+1
2013-03-24Added note on nesting of section levels in revealjs.John MacFarlane1-0/+5
2013-03-24Added syntax for "pauses" in beamer or reaveljs slide shows.John MacFarlane3-30/+52
This gives . . . a pause.
2013-03-24revealjs template: include pdf stylesheet by default.John MacFarlane1-7/+5
2013-03-23Documented revealjs in README and pandoc.cabal description.John MacFarlane2-14/+23
2013-03-23Reveal.js improvements.John MacFarlane4-3/+4
Changed name to revealjs (from reveal_js). Set revealjs-url template variable to 'reveal.js' by default.
2013-03-23New revealjs template.John MacFarlane1-6/+6
2013-03-23Added default.revealjs template to cabal file.John MacFarlane1-0/+1
2013-03-22Updated templates to include reveal.js.John MacFarlane1-0/+8
2013-03-21reveal_js: nested vertical stacks used for hierarchical structure.John MacFarlane1-2/+4
Variant of a patch from jamiefolson. Results for more than one level of nesting may be odd. Perhaps this needs revising.
2013-03-21Support incremental slide view for definition lists.John MacFarlane1-11/+12
All slide formats supported. Simplified some list code.
2013-03-21Added basic support for reveal.js.Jamie F. Olson6-23/+21
Support unordered and ordered lists with "fragment" elements. Modified by JGM to remove the --reveal_js-url command-line option. Instead use -V reveal_js-url=... as with slidy and the other slide formats. Also cleaned up the list code in the HTML writer.
2013-03-20EPUB writer: Don't add dc:creator tags if present in epub metadata.John MacFarlane1-1/+1
2013-03-20Updated instructions for submodules to avoid confusion.Jamie F. Olson1-1/+1
2013-03-20Added OPML template, tests.John MacFarlane7-116/+192
Minor fixes to OPML writer. Improved OPML reader tests.
2013-03-20OPML reader: Type attributes are not case sensitive.John MacFarlane1-2/+2
So, `type="link"` or `type="LINK"`.
2013-03-20Documented OPML writer in README.John MacFarlane1-10/+10
2013-03-19Added Text.Pandoc.Writers.OPML.John MacFarlane5-2/+95
TODO: * Document in README * Add tests * Add template (and add template to cabal file)
2013-03-19Merge branch 'opml'John MacFarlane8-4/+268
2013-03-19Added Text.Pandoc.Readers.OPML, exporting readOPML.John MacFarlane8-4/+268
The _note attribute is supported. This is unofficial, but used e.g. in OmniOutliner and supported by multimarkdown. We treat the contents as markdown blocks under a section header. Added to documentation and tests.
2013-03-18Docx writer: Fixed rendering of display math in lists.John MacFarlane1-13/+27
In 1.11 and 1.11.1, display math in lists rendered as a new list item. Now it always appears centered, just as outside of lists, and in proper display math style, no matter how far indented the containing list item is. Closes #784.
2013-03-17Added pandoc-dingus to release checklist.John MacFarlane1-0/+2
2013-03-17Updated changelog.John MacFarlane1-12/+13
2013-03-17Markdown writer: New approach for citations.John MacFarlane3-16/+6
* Reverts 1.11 change that caused citations to be rendered as markdown citations, even if `--biblio` was specified, unless `citation` extension is disabled. Now, formatted citations are always printed if `--biblio` was specified. If you want to reformat markdown keeping pandoc markdown citations intact, just don't specify `--biblio`. * Reverted now unnecessary changes to Text.Pandoc.Biblio adding the raw block to mark the bibliography, and to Text.Pandoc.Writers.Markdown to remove the bibliography if `citations` not specified. * If the content of a `Cite` inline is a `RawInline "latex"`, which means that a LaTeX citation command was parsed and `--biblio` wasn't specified, then render it as a pandoc markdown citation. This means that `pandoc -f latex -t markdown`, without `--biblio`, will convert LaTeX citation commands to pandoc markdown citations.
2013-03-17Updated changelog.John MacFarlane1-14/+6
2013-03-17Markdown writer: Omit bibliography when `citations` enabled.John MacFarlane2-3/+13
In 1.11, citations would be rendered as pandoc markdown citations, but the bibliography would still be printed. We avoid that by adding a `RawBlock "pandoc" "references"` before the references. This allows the markdown writer to find the references and strip them off when `citations` is enabled.
2013-03-17Revert "LaTeX reader: citation handling changes."John MacFarlane7-128/+8
This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.