aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2013-01-28Fixed latex macro parsing.John MacFarlane3-6/+6
Now latex macro definitions are preserved when output is latex, and applied when it is another format, as originally intended. Partially addresses #730. \providecommand is still not supported. For this we need changes to texmath.
2013-01-28LaTeX writer: Avoid extra space at start/end of table cell.John MacFarlane1-1/+3
Thanks to Nick Bart for the suggestion of using @{}.
2013-01-28Markdown writer: Set title, author, date variables as before.John MacFarlane1-0/+3
These are no longer used in the default template, since we use titleblock, but we set them anyway for nondefault template users.
2013-01-28Merge pull request #733 from jrunningen/masterJohn MacFarlane1-1/+1
Mediawiki reader: Don't require blanklines after tables.
2013-01-27Markdown/RST reader: Skip blank lines.John MacFarlane2-1/+3
This fixes a subtle regression involving grid tables with empty cells. Closes #732. Also added test for grid table with empty cells.
2013-01-27Mediawiki reader: Don't require blanklines after tables.Jeff Runningen1-1/+1
2013-01-26RST writer: Use `.. code:: language` for code blocks with language.John MacFarlane1-1/+6
Closes #721. Also fixed whitespace in lhs tests.
2013-01-26Markdown writer: Use autolink when link text matches url.John MacFarlane1-3/+3
Previously we also checked for a null title, but this test fails for links produced by citeproc-hs in bibliographies. So, if the link has a title, it will be lost on conversion to an autolink, but that seems okay.
2013-01-25Markdown reader: Simplified and sped up str parser.John MacFarlane1-15/+9
We no longer needed the smart quote complexity, because of improvements to singleQuoteStart and singleQuoteEnd. And we were able to move the check for intraword underscore to the emphasis parser.
2013-01-25RST reader: Allow anonymous form of explicit links.John MacFarlane1-0/+1
`hello <url>`__ Closes #724.
2013-01-25Changed copyright date range on Markdown reader.John MacFarlane1-1/+1
2013-01-25Minor code cleanup.John MacFarlane1-7/+6
2013-01-25Markdown reader: Moved guardEnabled to definitionList.John MacFarlane1-1/+1
From definitionListItem. Slight performance improvement.
2013-01-25Markdown reader: Performance improvement in str parser.John MacFarlane1-3/+6
Moved a guardEnabled out of an inner loop.
2013-01-25Use anyLine everywhere instead of 'manyTill anyChar newline'.John MacFarlane3-11/+11
2013-01-25Parsing: More improvements of anyLine parser.John MacFarlane1-6/+8
2013-01-25More anyLine tweaks: Use incSourceLine.John MacFarlane1-1/+1
2013-01-25anyLine: Set position properly.John MacFarlane1-0/+3
2013-01-25Markdown reader: More efficient version of scanForPipe.John MacFarlane1-1/+5
2013-01-25Parsing: Much faster new version of anyLine.John MacFarlane1-1/+8
Not only faster but uses less memory.
2013-01-23Use hsb2hs preprocessor instead of TH for embed_data_files.John MacFarlane1-3/+3
This should work on Windows, unlike the TH solution with file-embed.
2013-01-23Added Text.Pandoc.Data (non-exported) if embed_data_files selected.John MacFarlane2-7/+9
This module just exports the association list of embedded data files, which is used by Shared.
2013-01-23Fixed regressions in fenced code blocks.John MacFarlane1-16/+6
* 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.
2013-01-22Another fix to the CPP macro in EPUB writer.John MacFarlane1-1/+1
2013-01-22Fixed MIN_VERSION - need to sub _ for - in blaze-html.John MacFarlane1-1/+1
2013-01-21Markdown reader: Try lhsCodeBlock before rawTeXBlock.John MacFarlane1-1/+1
Otherwise \begin{code}...\end{code} isn't handled properly in markdown+lhs. Thanks to Daniel Miot for noticing the bug and suggesting the fix.
2013-01-22EPUB: condition Blaze Utf8 module name import on blaze-html versionJens Petersen1-0/+4
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
2013-01-21Use proportional font for email autolinks with obfuscation.John MacFarlane1-1/+1
Closes #714.
2013-01-21Markdown reader: Fixed bug with headerless grid tables.John MacFarlane1-2/+2
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.
2013-01-20Fixed bug in uri parser.John MacFarlane1-1/+1
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.
2013-01-20Fixed bug with escaped % in LaTeX reader.John MacFarlane1-0/+2
Also added tests. Closes #710.
2013-01-18Add data-cites field to citations in HTML5.John MacFarlane1-2/+6
This contains a space-separated list of citation IDs.
2013-01-18RTF writer: Added writeRTFWithEmbeddedImages.John MacFarlane2-3/+9
* RTF writer: Export writeRTFWithEmbeddedImages instead of rtfEmbedImage. * Text.Pandoc: Use writeRTFWithEmbeddedImages for RTF. * Moved code for embedding images in RTF out of pandoc.hs.
2013-01-17Convert highlighting-kate language to listings languageJohn MacFarlane1-19/+63
if --listings is used. Closes #704.
2013-01-17MIME: Support vs and fs as text/plain.John MacFarlane1-0/+2
These are used in revealjs css.
2013-01-17Revert "Markdown reader: Be less restrictive about class attributes."John MacFarlane1-1/+1
This reverts commit b158b3fb2182b5c8a6f03759277f4f73cdc24797.
2013-01-16Markdown reader: Be less restrictive about class attributes.John MacFarlane1-1/+1
This allows attributes like `C++`. Any nonspace and non-}.
2013-01-16Fixed problem with duplicate ids in epub.John MacFarlane1-12/+4
2013-01-16Implemented Ext_link_attributes in markdown reader.John MacFarlane2-31/+28
Also simplified source URL and link title parsers.
2013-01-16Implemented Ext_mmd_header_identifiers in markdown writer.John MacFarlane1-0/+2
2013-01-16Implemented Ext_mmd_header_identifiers in markdown reader.John MacFarlane2-4/+23
2013-01-16Options: Added multimarkdownExtensions.John MacFarlane2-2/+21
Also added 'markdown_mmd' as input/output option.
2013-01-15LaTeX writer: Prevent paragraphs containing only linebreaks or spaces.John MacFarlane1-4/+9
2013-01-15Added `writerHtmlQTags` and `--html-q-tags` option.John MacFarlane2-1/+3
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.
2013-01-15Changed Ext_autolink_urls -> Ext_autolink_bare_uris.John MacFarlane3-5/+8
Added tests.
2013-01-15Case-insensitive parsing of URI schemes.John MacFarlane1-1/+1
2013-01-15Parsing: Improve oneOfStrings, export oneOfStringsCI.John MacFarlane1-7/+20
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.
2013-01-15Revised URI parser.John MacFarlane1-27/+50
* 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.
2013-01-15Use 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane14-27/+27
Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
2013-01-14Implemented Ext_implicit_figures.John MacFarlane14-18/+45
* 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.