aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2013-09-08Made . . . for pause work in all slide show formats except slideous.John MacFarlane1-7/+15
2013-09-06Markdown writer: Fixed bugs in YAML header output.John MacFarlane1-3/+3
2013-09-01Mathjax in HTML slide shows: include explicit "Typeset" instruction.John MacFarlane1-1/+2
This seems to be needed for some formats (e.g. slideous) and won't hurt in others. Closes #966.
2013-08-28Implement definition lists in dokuwiki writer (#386) - credit: James Smaldon claremacrae1-31/+24
2013-08-25Merge pull request #961 from nougad/add_latex_listings_labelJohn MacFarlane1-2/+6
Write id for code block to label attr in latex when listing is used
2013-08-24Removed dependency on citeproc-hs.John MacFarlane1-6/+2
Going forward we'll use pandoc-citeproc, as an external filter. The `--bibliography`, `--csl`, and `--citation-abbreviation` fields have been removed. Instead one must include `bibliography`, `csl`, or `csl-abbrevs` fields in the document's YAML metadata. The filter can then be used as follows: pandoc --filter pandoc-citeproc The `Text.Pandoc.Biblio` module has been removed. Henceforth, `Text.CSL.Pandoc` from pandoc-citations can be used by library users. The Markdown and LaTeX readers now longer format bibliographies and citations. That must be done using `processCites` or `processCites'` from Text.CSL.Pandoc. All bibliography-related fields have been removed from `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`, `readerReferences`, `readerCitationStyle`. API change.
2013-08-22Write id for code block to label attr in latex when listing is usedFlorian Eitel1-2/+6
The code: ~~~{#test} asdf ~~~ gets compiled to html: <pre id="test"> asdf </pre> So it is possible to link to the identifier `test` But this doesn't happen on latex When using the listings package (`--listings`) it is possible to set the identifier using the `label=test` property: \begin{lstlisting}[label=id] hi \end{lstlisting} And this is exactly what this patch is doing. Modified LaTeX Reader/Writer and added tests for this.
2013-08-20Merge branch 'altcite'John MacFarlane1-14/+21
2013-08-20Create Cite element even if no matching reference in the biblio.John MacFarlane1-14/+21
* Add ??? as fallback text for non-resolved citations. * Biblio: Put references (including a header at the end of the document, if one exists) inside a Div with class "references". This gives some control over styling of references, and allows scripts to manipulate them. * Markdown writer: Print markdown citation codes, and disable printing of references, if `citations` extension is enabled. NOTE: It would be good to improve what citeproc-hs does for a nonexistent key.
2013-08-19Scale LaTeX tables so they don't exceed columnwidth.John MacFarlane1-1/+5
2013-08-19Fix some warnings in dokuwiki writer (#386)claremacrae1-2/+2
2013-08-19Bullet and ordered lists now always simple in dokuwiki writer (#386)claremacrae1-3/+2
2013-08-19Removed unnecessary line-break after hard break in dokuwiki writer (#386)claremacrae1-1/+1
2013-08-18Adjusted writers and tests for change in parsing of div/span.John MacFarlane7-14/+58
Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers.
2013-08-18Stop plain text ** and __ becoming formatting in dokuwiki writer (#386)claremacrae1-1/+1
2013-08-18Stop plain text // becoming an italic marker in dokuwiki writer (#386)claremacrae1-3/+2
When the original document had text containing //, this was previously included, unchanged, in the dokuwiki output, and this interacted badly with later, intended, formating text.
2013-08-18Treat inline code blocks like <code> instead of <tt> in dokuwiki writer (#386)claremacrae1-1/+10
Done because I noticed that in the Autolinks section of writer.dokuwiki, the URL in inlined code was getting auto-linked, when it wasn't supposed to. This also meant that any inline code examples that had text that looked like dokuwiki syntax could break the formatting of later text.
2013-08-17Nasty hack to stop C comments in inline code becoming italics in dokuwiki ↵claremacrae1-1/+6
writer (#386)
2013-08-17Fixed inlined code in dokuwiki writer (#386)claremacrae1-6/+1
2013-08-17Don't add entities in <code> blocks in dokuwiki writer (#386)claremacrae1-1/+1
2013-08-17Implement <code> blocks in dokuwiki writer (#386)claremacrae1-2/+1
2013-08-17Implement table headings in dokuwiki writer (#386)claremacrae1-2/+19
2013-08-16LaTeX writer: Avoid problem with footnotes in unnumbered headers.John MacFarlane1-6/+7
Closes #940. Added test case.
2013-08-14Updated for removed unMeta, unFormat in pandoc-types.John MacFarlane1-2/+2
2013-08-11ODT/OpenDocument writer: Minor changes for ODF 1.2 conformance.John MacFarlane2-7/+16
See #939. We leave the nonconforming contextual-spacing attribute, which is provided by LibreOffice itself and seems to be supported.
2013-08-11Options: Changed `writerSourceDir` to `writerSourceURL` (now a Maybe).John MacFarlane3-21/+12
Previously we used to store the directory of the first input file, even if it was local, and used this as a base directory for finding images in ODT, EPUB, Docx, and PDF. This has been confusing to many users. It seems better to look for images relative to the current working directory, even if the first file argument is in another directory. writerSourceURL is set to 'Just url' when the first command-line argument is an absolute URL. (So, relative links will be resolved in relation to the first page.) Otherwise, 'Nothing'. The ODT, EPUB, Docx, and PDF writers have been modified accordingly. Note that this change may break some existing workflows. If you have been assuming that relative links will be interpreted relative to the directory of the first file argument, you'll need to make that the current directory before running pandoc. Closes #942.
2013-08-11Initial implementation of tables in dokuwiki writer (#386)claremacrae1-22/+17
Todo: alignment, and headings
2013-08-10Use walk, walkM in place of bottomUp, bottomUpM when possible.John MacFarlane7-20/+24
They are significantly faster.
2013-08-10Use query instead of queryWith.John MacFarlane2-5/+6
2013-08-10Adjustments for new Format newtype.John MacFarlane14-66/+95
2013-08-08Preliminary support for new Div and Span elements in writers.John MacFarlane17-0/+56
Currently these are "transparent" containers, except in HTML, where they produce div and span elements with attributes.
2013-08-08Added Text.Pandoc.Compat.Monoid.John MacFarlane1-1/+1
This allows pandoc to compile with base < 4.5, where Data.Monoid doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
2013-08-06Added support for MetaBool.John MacFarlane2-0/+3
2013-08-06Implement strikeout in dokuwiki writer (#386)claremacrae1-1/+1
2013-08-04Remove CPP from default-extensions; add pragmas to modules as needed.John MacFarlane1-5/+1
2013-08-03MediaWiki writer: Use native mediawiki tables instead of HTML.John MacFarlane1-44/+39
Closes #720.
2013-07-28Implement footnotes in dokuwiki writer (#386)claremacrae1-3/+3
2013-07-28Removed incorrect entity conversion in dokuwiki writer (#386)claremacrae1-4/+3
2013-07-28Implemented linebreaks in dokuwiki writer (#386)claremacrae1-1/+1
2013-07-26Added another todo - dokuwiki writer (#386)claremacrae1-0/+1
2013-07-26Added some todos to dokuwiki writer (#386)Clare Macrae1-0/+15
2013-07-26Beamer: add allowframebreaks to slide if set in header classes.John MacFarlane1-8/+11
It's recommended that your bibliography slide have this attribute: # References {.allowframebreaks} This causes multiple slides to be created if necessary, depending on the length of the bibliography.
2013-07-26Convert bullet and numbered lists in dokuwiki writer (#386)Clare Macrae1-6/+25
2013-07-25LaTeX writer: Change `\` to `/` in paths.John MacFarlane1-2/+4
`/` works even on Windows in LaTeX. `\` will cause major problems if unescaped.
2013-07-18Fixed warning.John MacFarlane1-1/+1
2013-07-18Improved fetching of external resources.John MacFarlane3-8/+12
* In Shared, openURL and fetchItem now return an Either, for better error handling. (API change.) * Better error message when fetching a URL fails with `--self-contained`. * EPUB writer: If resource not found, skip it, as in Docx writer. * Closes #916.
2013-07-16Text.Pandoc.ImageSize: Handle EPS.John MacFarlane1-0/+1
Closes #903. This change will make EPS images properly sized on conversion to Word.
2013-07-15Implement conversion of images in dokuwiki writer (#386)Clare Macrae1-4/+5
2013-07-15Weak implementation of hyperlinks for dokuwiki (#386)Clare Macrae1-1/+1
TODO Simplify the code
2013-07-14Fixing wrong numbered-list indentation in open document formatAlexander Kondratskiy1-5/+7