aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)AuthorFilesLines
2013-04-15Fixed footnote numbers in LaTeX/PDF tables.John MacFarlane1-17/+4
This fixes a bug wherein notes were numbered incorrectly in tables. Closes #827. Now that we are using longtable, we can just use regular `\footnote` commands for notes, which simplifies the code considerably.
2013-04-14Markdown/RST writers: Only autolink absolute URIs.John MacFarlane2-4/+8
This fixes a regression and closes #830. $ echo '<a href="x">x</a>' | pandoc -f html -t markdown <x>
2013-04-14Haddock reader improvements.John MacFarlane1-10/+6
- Correctly handle ghci sessions. - Fixed spacing issues. - Simplified code.
2013-04-14Added `Text.Pandoc.Writers.Custom`, `--print-custom-lua-writer`.John MacFarlane2-2/+237
pandoc -t data/sample.lua will load the script sample.lua and use it as a custom writer. data/sample.lua is provided as an example. Added `--print-custom-lua-writer` option to print the sample script.
2013-04-10Added comment/todo to SelfContained.John MacFarlane1-0/+1
2013-04-09Man writer: use one decimal place for column widths.John MacFarlane1-1/+1
This, I hope, will fix test failures on GHC 7.6 due to (presumably) different rounding or floating point multiplication.
2013-04-09Removed unnecessary OPTIONS flag in Haddock/Parse.y.John MacFarlane1-1/+0
2013-04-09Fixed Haddock reader bugs with list item spaces and examples.John MacFarlane1-10/+8
Closes #824.
2013-04-08Markdown writer: Put multiple authors on separate lines in titleblock.John MacFarlane1-1/+1
Also, don't wrap long author entries, as new lines get treated as new authors.
2013-04-04Haddock reader: leaving Space alone in @...@ seems more semantically correct.David Lazar1-1/+0
2013-04-04Haddock reader: derive Show for Token, making debugging easier.David Lazar1-1/+1
2013-03-31LaTeX reader: Support `\textasciitilde`, `\textasciicircum`.John MacFarlane1-0/+2
Closes #810.
2013-03-30Docx writer: Use Compact style for Plain block elements.John MacFarlane1-2/+8
This differentiates between tight and loose lists. Closes #775.
2013-03-29Haddock reader: make clearer which production the comment refers to.David Lazar1-2/+3
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-28Add reader for Haddock markup based on Haddock's own lexer/parser.David Lazar4-0/+390
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 MacFarlane1-5/+17
without preceding or following blank line.
2013-03-28Mediawiki: Fixed regression for `<ref>URL</ref>`.John MacFarlane1-1/+1
`<` 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 MacFarlane1-4/+0
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-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-24Added syntax for "pauses" in beamer or reaveljs slide shows.John MacFarlane2-0/+10
This gives . . . a pause.
2013-03-23Reveal.js improvements.John MacFarlane3-2/+3
Changed name to revealjs (from reveal_js). Set revealjs-url template variable to 'reveal.js' by default.
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. Olson4-16/+20
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-20Added OPML template, tests.John MacFarlane1-4/+13
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-19Added Text.Pandoc.Writers.OPML.John MacFarlane3-1/+92
TODO: * Document in README * Add tests * Add template (and add template to cabal file)
2013-03-19Merge branch 'opml'John MacFarlane2-0/+98
2013-03-19Added Text.Pandoc.Readers.OPML, exporting readOPML.John MacFarlane2-0/+98
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-17Markdown writer: New approach for citations.John MacFarlane2-15/+5
* 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-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 MacFarlane2-10/+4
This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.
2013-03-16Fixed numbering mismatch between TOC and sections in HTML.John MacFarlane1-1/+2
Also made `--number-offset` affect TOC numbering as well as section numbering, as it should have all along. Closes #789.
2013-03-15Fixed regression in ODT writer.John MacFarlane1-2/+2
This was due to a change in the Show instance for Text.Pandoc.Pretty.Doc, which led 1.11 to produce corrupt ODTs. Closes #780.
2013-03-13Markdown reader: don't lose parentheses in URLs.John MacFarlane1-3/+7
Added tests. This fixes a regression from 1.10.x. Closes #786.