aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)AuthorFilesLines
2014-03-25Parsing: Added HasMacros, simplified other typeclasses.John MacFarlane2-30/+24
Removed updateHeaderMap, setHeaderMap, getHeaderMap, updateIdentifierList, setIdentifierList, getIdentifierList.
2014-03-25Whitespace change, and note:John MacFarlane1-0/+1
Contrary to the previous commit message, there was no API change, since Text.Pandoc.Parsing is not an exposed module.
2014-03-25API changes to HasReaderOptions, HasHeaderMap, HasIdentifierList.John MacFarlane2-39/+47
Previously these were typeclasses of monads. They've been changed to be typeclasses of states. This ismplifies the instance definitions and provides more flexibility. This is an API change! However, it should be backwards compatible unless you're defining instances of HasReaderOptions, HasHeaderMap, or HasIdentifierList. The old getOption function should work as before (albeit with a more general type). The function askReaderOption has been removed. extractReaderOptions has been added. getOption has been given a default definition. In HasHeaderMap, extractHeaderMap and updateHeaderMap have been added. Default definitions have been given for getHeaderMap, putHeaderMap, and modifyHeaderMap. In HasIdentifierList, extractIdentifierList and updateIdentifierList have been added. Default definitions have been given for getIdentifierList, putIdentifierList, and modifyIdentifierList. The ultimate goal here is to allow different parsers to use their own, tailored parser states (instead of ParserState) while still using shared functions.
2014-03-25LaTeX reader: Better handling of "table" environment.John MacFarlane1-0/+1
Positioning options no longer rendered verbatim. Partially addresses #1204.
2014-03-24RTF writer: Fixed tables cells containing paragraphs.John MacFarlane1-1/+1
This moves \intbl after \pard.
2014-03-24Merge pull request #1068 from jaimeMF/mw-images-langsJohn MacFarlane1-1/+5
MediaWiki reader: Accept image links in more languages
2014-03-24Parsing: Make F an instance of Applicative. Closes #1138.John MacFarlane1-2/+2
2014-03-24Markdown reader: Fixed regression on line breaks in strict mode.John MacFarlane1-1/+1
Closes #1203.
2014-03-19PDF: Changes to error reporting, to handle non-UTF8 error output.John MacFarlane1-3/+2
2014-03-14EPUB writer: Handle files linked in raw img tags.John MacFarlane1-1/+1
See #1170.
2014-03-14EPUB writer: Handle media in audio source tags.John MacFarlane1-27/+28
This should resolve the rest of #1170, but it needs extensive testing. Note that we now use a 'media' directory rather than 'images'.
2014-03-14EPUB writer: Incorporate files linked in <video> tags.John MacFarlane2-10/+47
src and poster will both be incorporated into content.opf and the epub container. This partially address #1170. Still need to do something similar for <audio>.
2014-03-14RST writer: Avoid stack overflow with certain tables.John MacFarlane1-2/+6
Closes #1197. Note that there are still problems with the formatting of the tables inside tables with output produced from the input file in the original bug report. But this fixes the stack overflow problem.
2014-03-12Man writer: Ensure that terms in definition lists aren't line wrapped.John MacFarlane1-1/+1
Closes #1195.
2014-03-10PDF: Use / as path separators in latex input onlyTim Lin1-12/+15
Fixes compile error on Windows for 5040f3e Reverted back to canonical file separators </> in all places except for arguments to the LaTeX builder and in TEXINPUTS See #1151. Note: Temporary directories still fail to be removed in Windows due to call of ByteString.Lazy.readFile creating process ownership of the compiled pdf file.
2014-03-10PDF: Use / as path separators in tempdir on Windows.John MacFarlane1-3/+11
This is needed for texlive. Note that the / is used only in the body of withTempDir, so when the directory is deleted, the original separators will be used. See #1151.
2014-03-09PDF: Use / as path separators even on Windows.John MacFarlane1-2/+3
This seems to be necessary for texlive. Closes #1151 (again!).
2014-03-05HTML writer: Add colgroup around col tags.John MacFarlane1-5/+10
Also affects EPUB writer. Closes #877.
2014-03-05SelfContained: Handle "poster" attribute in "video" tags.John MacFarlane1-8/+10
Closes #1188.
2014-03-05Templates: YAML objects resolve to "true" in conditionals.John MacFarlane1-0/+1
Closes #1133. Note: If address is a YAML object and you just have $address$ in your template, the word "true" will appear, which may be unexpected. (Previously nothing would appear.)
2014-03-04Merge branch 'master' of https://github.com/mb21/pandoc into mb21-masterJohn MacFarlane2-0/+528
2014-03-04Add a simple Emacs Org-mode readerAlbert Krewinkel2-0/+555
The basic structure of org-mode documents is recognized; however, org-mode features like todo markers, tags etc. are not supported yet.
2014-02-28InDesign ICML Writermb212-0/+528
2014-02-26Markdown reader: Improved parsing of nested divs.John MacFarlane1-0/+2
Formerly a closing div tag would be missed if it came right after other block-level tags.
2014-02-26Markdown parser: avoid backtracking when closing `</div>` not found.John MacFarlane1-6/+13
2014-02-26Markdown reader: small efficiency improvement.John MacFarlane1-1/+1
Switched `notFollewdBy' rawHtmlBlocks` -> `notFollowedBy' (htmlTag isBlockTag)`, which is more efficient.
2014-02-25Added readerTrace to ReaderOptions, --trace command line opt.John MacFarlane2-1/+13
This is to debug backtracking-related parsing bugs. So far it is only implemented for markdown, but it would be good to extend it to latex and html readers.
2014-02-23PDF: Use ; for TEXINPUTS separator on Windows.John MacFarlane1-1/+6
Closes #1151, I hope. Testing needed.
2014-02-21Fixed bug in reference link parsing in markdown_mmd.John MacFarlane1-1/+1
The bug was triggered by: Link to [Google][]. Link to [twitter][]. [Google]: http://google.com [twitter]: http://twitter.com
2014-02-19Make rst figures true figures. Closes #1168.John MacFarlane1-1/+1
Thanks to CasperVector.
2014-02-17Merge pull request #1145 from wilx/en-dash-ligature-avoidanceJohn MacFarlane1-1/+1
Use \/ to avoid en-dash ligature instead of -{}-.
2014-02-17HTML writer: Fixed bug with unnumbered section headings.John MacFarlane1-1/+2
Unnumbered section headings (with class 'unnumbered') were getting numbers. This commit fixes the bug.
2014-02-15Clarified field values in RstCustomRoles.Merijn Verstraaten1-0/+4
2014-02-15Enhanced Pandoc's support for rST roles.Merijn Verstraaten2-10/+83
rST parser now supports: - All built-in rST roles - New role definition - Role inheritance Issues/TODO: - Silently ignores illegal fields on roles - Silently drops class annotations for roles - Only supports :format: fields with a single format for :raw: roles, requires a change to Text.Pandoc.Definition.Format to support multiple formats. - Allows direct use of :raw: role, rST only allows indirect (i.e., inherited use of :raw:).
2014-02-09Merge remote-tracking branch 'origin/master' into en-dash-ligature-avoidance.Vaclav Zeman30-378/+1424
2014-02-08Use \/ to avoid en-dash ligature instead of -{}-.Vaclav Zeman1-1/+1
This is to fix LuaLaTeX output. The -{}- sequence does not avoid the ligature with LuaLaTeX but \/ does.
2014-02-06Removed RenderState datatype context.Merijn Verstraaten1-2/+1
Reasoning: - It's not Haskell2010 - It breaks some tools - Doesn't actually do anything - RenderState doesn't even have a Monoid instance
2014-02-04Slight code reorganization in endline.John MacFarlane1-5/+3
2014-01-24ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6.John MacFarlane1-4/+5
Closes #1124.
2014-01-22Fixed mediawiki ordered list parsing.John MacFarlane1-10/+15
Closes #1122.
2014-01-20HTML reader: Fixed bug reading inline math with `$$`.John MacFarlane1-2/+2
See #225.
2014-01-16Merge pull request #974 from merijn/masterJohn MacFarlane1-6/+17
Added support for LaTeX style literate Haskell code blocks in rST.
2014-01-14Allow binary 0.5. Version bump to 1.12.3.1.John MacFarlane1-3/+6
2014-01-09Minor improvement to exif parser.John MacFarlane1-2/+2
2014-01-09Markdown parser: be more permissive about citation keys.John MacFarlane1-3/+4
Keys may now start with an underscore as well as a letter. Underscores do not count as internal punctuation, but are treated like alphanumerics, so "key:_2008" will work, as it did not before. (This change was necessary to use keys generated by zotero.) Closes #1111, closes #1011.
2014-01-09Better exif parsing, including image resolution.John MacFarlane1-15/+210
This introduces a dependency on binary >= 0.6, but we depend on binary >= 0.5 via zip-archive anyway. Closes #976.
2014-01-08Text.Pandoc.ImageSize: Parse EXIF format JPGs.John MacFarlane1-6/+28
Note: For now we just assign them all 72 dpi. It wasn't clear to me how to extract the resolution information. At least the aspect ratio will be right, and 72 dpi is the most common setting. Closes #976.
2014-01-08fetchItem: Handle image URLs beginning with '//'.John MacFarlane1-4/+9
2014-01-07Markdown reader: Allow hard line breaks in table cells.John MacFarlane1-3/+3
The \-newline form must be used; the two-space+newline form won't work, since in a table cell nearly every line ends with two spaces.
2014-01-07Added wmf and emf mime types.John MacFarlane1-0/+2