summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Use hsb2hs preprocessor instead of TH for embed_data_files.John MacFarlane2013-01-23
| | | | | This should work on Windows, unlike the TH solution with file-embed.
* Added Text.Pandoc.Data (non-exported) if embed_data_files selected.John MacFarlane2013-01-23
| | | | | This module just exports the association list of embedded data files, which is used by Shared.
* Fixed regressions in fenced code blocks.John MacFarlane2013-01-23
| | | | | | | | | | | | | | | | | | * Tilde code fences can again take bare language. So ~~~ haskell is okay, not just ~~~ {.haskell} * Backtick code blocks can take the bracketed attributes. * Backtick code blocks don't require a language. * Consolidated code for the two kinds of fenced code blocks. Closes #722.
* Another fix to the CPP macro in EPUB writer.John MacFarlane2013-01-22
|
* Fixed MIN_VERSION - need to sub _ for - in blaze-html.John MacFarlane2013-01-22
|
* Markdown reader: Try lhsCodeBlock before rawTeXBlock.John MacFarlane2013-01-21
| | | | | | | | Otherwise \begin{code}...\end{code} isn't handled properly in markdown+lhs. Thanks to Daniel Miot for noticing the bug and suggesting the fix.
* EPUB: condition Blaze Utf8 module name import on blaze-html versionJens Petersen2013-01-22
| | | | | | blaze-html/blaze-markup-0.5 has Text.Blaze.Html.Renderer.Utf8 whereas blaze-html-0.4 has Text.Blaze.Renderer.Utf8. So this needs to be conditional on the version for pandoc still be with blaze-html-0.4.x
* Use proportional font for email autolinks with obfuscation.John MacFarlane2013-01-21
| | | | Closes #714.
* Markdown reader: Fixed bug with headerless grid tables.John MacFarlane2013-01-21
| | | | | | | | | The 1.10 code assumed that each table header cell contains exactly one block. That failed for headerless tables (0) and also for tables with multiple blocks in a header cell. The code is fixed and tests provided. Thanks to Andrew Lee for pointing out the bug.
* Fixed bug in uri parser.John MacFarlane2013-01-20
| | | | | | | The bug prevented an autolink at the end of a string (e.g. at the end of a line block line) from counting as a link. Closes #711.
* Fixed bug with escaped % in LaTeX reader.John MacFarlane2013-01-20
| | | | Also added tests. Closes #710.
* Add data-cites field to citations in HTML5.John MacFarlane2013-01-18
| | | | This contains a space-separated list of citation IDs.
* RTF writer: Added writeRTFWithEmbeddedImages.John MacFarlane2013-01-18
| | | | | | | * RTF writer: Export writeRTFWithEmbeddedImages instead of rtfEmbedImage. * Text.Pandoc: Use writeRTFWithEmbeddedImages for RTF. * Moved code for embedding images in RTF out of pandoc.hs.
* Convert highlighting-kate language to listings languageJohn MacFarlane2013-01-17
| | | | | | if --listings is used. Closes #704.
* MIME: Support vs and fs as text/plain.John MacFarlane2013-01-17
| | | | These are used in revealjs css.
* Revert "Markdown reader: Be less restrictive about class attributes."John MacFarlane2013-01-17
| | | | This reverts commit b158b3fb2182b5c8a6f03759277f4f73cdc24797.
* Markdown reader: Be less restrictive about class attributes.John MacFarlane2013-01-16
| | | | This allows attributes like `C++`. Any nonspace and non-}.
* Fixed problem with duplicate ids in epub.John MacFarlane2013-01-16
|
* Implemented Ext_link_attributes in markdown reader.John MacFarlane2013-01-16
| | | | Also simplified source URL and link title parsers.
* Implemented Ext_mmd_header_identifiers in markdown writer.John MacFarlane2013-01-16
|
* Implemented Ext_mmd_header_identifiers in markdown reader.John MacFarlane2013-01-16
|
* Options: Added multimarkdownExtensions.John MacFarlane2013-01-16
| | | | Also added 'markdown_mmd' as input/output option.
* LaTeX writer: Prevent paragraphs containing only linebreaks or spaces.John MacFarlane2013-01-15
|
* Added `writerHtmlQTags` and `--html-q-tags` option.John MacFarlane2013-01-15
| | | | | | | | | | The previous default was to use `<q>` tags in HTML5. But `<q>` tags are also valid HTML4, and they are not very robust in HTML5. Some user agents don't support them, and some CSS resets prevent pandoc's quotes CSS from working properly (e.g. bootstrap). It seems a better default just to insert quote characters, but the option is provided for those who have gotten used to using `<q>` tags.
* Changed Ext_autolink_urls -> Ext_autolink_bare_uris.John MacFarlane2013-01-15
| | | | Added tests.
* Case-insensitive parsing of URI schemes.John MacFarlane2013-01-15
|
* Parsing: Improve oneOfStrings, export oneOfStringsCI.John MacFarlane2013-01-15
| | | | | | oneOfStrings will now take the longest match it can in a list of strings, so if 'foo' and 'foobar' are both included, 'foobar' will match even if 'foo' is first in the list.
* Revised URI parser.John MacFarlane2013-01-15
| | | | | | | | * It no longer uses Network.URIs URI parser, which is too restrictive (not allowing unicode URIs unless encoded). * It allows many more schemes. * It better handles punctuation so as to avoid capturing trailing punctuation in bare URLs.
* Use 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane2013-01-15
| | | | Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
* Implemented Ext_implicit_figures.John MacFarlane2013-01-14
| | | | | | | | | | | | * In markdown reader, add a '\1' character to the beginning of the title of an image that is alone in its paragraph, if implicit_figures extension is selected. * In writers, check for Para [Image alt (src,'\1':tit)] and treat it as a figure if possible. * Updated tests. This is a bit of a hack, but it allows us to make implicit_figures an extension of the markdown reader, rather than the writers.
* Removed some cruft.John MacFarlane2013-01-14
|
* Parsing: Fixed uri -- escape unicode URLs.John MacFarlane2013-01-14
| | | | | Otherwise Network.URI.parseURI fails on e.g. Chinese URLs. Changed an incorrect test in markdown-reader-more.
* Added Ext_implicit_figures.John MacFarlane2013-01-14
| | | | No code to hook this in yet.
* Parsing: Simplified and improved singleQuoteStart.John MacFarlane2013-01-14
| | | | | | | | | This makes 's', 'l', etc. parse properly. Formerly we had some English-centric heuristics, but they are no longer needed now that we keep track of the last 'Str' position in state. Closes #698.
* RST writer: Fixes bug with links with duplicate text.John MacFarlane2013-01-13
| | | | | | | | | We now (a) use anonymous links for links with inline URLs, and (b) use an inline link instead of a reference link if the reference link would require a label that has already been used for a different link. Closes #511.
* RST writer: Properly handle images with no alt text.John MacFarlane2013-01-13
| | | | Closes #678.
* Markdown reader: Support RST-style line blocks.John MacFarlane2013-01-13
| | | | This depends on the new Ext_line_blocks extension.
* Moved lineBlockLines to Parsing.John MacFarlane2013-01-13
| | | | This will be used by both RST and markdown readers.
* RST reader: Refactored line block parser.John MacFarlane2013-01-13
|
* RST writer: Allow soft breaks w continuations in line blocks.John MacFarlane2013-01-13
|
* RST reader: Line block improvements.John MacFarlane2013-01-13
| | | | | | * Use nonbreaking spaces for initial indent (otherwise lost in HTML and LaTeX). * Allow multiple paragraphs in a single line block.
* Use line block in RST writer when a paragraph contains linebreaks.John MacFarlane2013-01-13
| | | | | Previously linebreaks weren't supported in RST, since RST has no native linebreak construct.
* Markdown writer: Support Ext_auto_identifiers and Ext_header_attributes.John MacFarlane2013-01-12
|
* HTML reader: Added html5 tags to list of block-level tags.John MacFarlane2013-01-12
|
* Escape `|` as `\vert` in LaTeX math.John MacFarlane2013-01-12
| | | | | | This avoids a clash with highlighting-kate's macros, which redefine | as a short verbatim delimiter. Thanks to Björn Peemöller for raising this issue.
* Changed hspace in last commit to 0.333em.John MacFarlane2013-01-11
| | | | This seems to match the spacing of ~ exactly.
* LaTeX writer: Use `\hspace*` for nonbreaking space after line break.John MacFarlane2013-01-11
| | | | | Since `~` spaces after a line break are just ignored. Closes #687.
* Revised EPUB writer given changes in header attributes.John MacFarlane2013-01-11
| | | | | | We need to ensure that all headers have attributes, since this is no longer guaranteed by hierarchicalize. Explicitly given headers remain the same.
* EPUB writer: Download images at URLs.John MacFarlane2013-01-11
|
* Refactoring:John MacFarlane2013-01-11
| | | | | | | * Shared now exports fetchItem (instead of getItem) and openURL * fetchItem has different parameters than getItem and includes some logic formerly in the ODT and Docx writers * getItem still used in SelfContained