aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
AgeCommit message (Collapse)AuthorFilesLines
2012-11-01LaTeX reader: Avoid include loops.John MacFarlane1-8/+17
2012-11-01Revert "LaTeX reader: Added code to handleIncludes to avoid inf loops."John MacFarlane1-14/+8
This reverts commit da87837318cf035be407136b39c5ec6a0009adb4. Reason: The code was overzealous and would rule out some things we want to be able to do, like include the same file multiple times.
2012-11-01LaTeX reader: Added code to handleIncludes to avoid inf loops.John MacFarlane1-8/+14
e.g. when one file includes another which includes it.
2012-11-01LaTeX reader: Improved handling of included files.John MacFarlane1-11/+24
* `\input` now works, as well as `\include`. * TEXINPUTS is used. * We now look recursively into included files for more included files.
2012-10-28Removed citationSuppressParens.John MacFarlane1-1/+0
Makefile: Use citeproc-0.3.6 release.
2012-10-22LaTeX reader: Initialize citationSuppressParens field.John MacFarlane1-0/+1
2012-10-21Revert "LaTeX reader: Use new suppressParens option for footnote citations."John MacFarlane2-72/+69
This reverts commit 7499499b68934ae6f3418940328c7fc2bd9fcadd. Conflicts: src/Text/Pandoc/Readers/LaTeX.hs
2012-10-15LaTeX reader: Basic \enquote support.John MacFarlane1-0/+9
2012-10-15LaTeX reader: Use new suppressParens option for footnote citations.John MacFarlane2-69/+72
Also changed Biblio, Markdown reader, and LaTeX reader tests because of new citationSuppressParens field in Citation.
2012-10-14LaTeX reader: Use normal citations, not author-in-text, for fn cites.John MacFarlane1-4/+4
Eventually it would be nice to use a "suppress outer parens" variant, if citeproc-hs provides one.
2012-10-13Moved bibliography processing into readers.John MacFarlane2-4/+13
Previously this was done in src/pandoc.hs, which made it difficult for library users. * Removed readerCitations in ReaderOptions. * Added readerReferences and readerCitationStyle to ReaderOptions. * Moved use of processBiblio from main program to the markdown and LaTeX readers.
2012-10-13Textile reader: Fixed bug with list items containing line breaks.John MacFarlane1-9/+15
Now pandoc correctly handles hard line breaks inside list items. Previously they broke list parsing. Thanks to Pablo Rodríguez for pointing out the problem.
2012-10-11LaTeX reader: Made rawLaTeXInline more flexible.John MacFarlane1-4/+2
Now it will also try to parse block commands. This is usually what we want, given how rawLaTeXInline is used in the markdown and textile readers. If a block-level LaTeX command is used in the middle of a paragraph (e.g. `\subtitle` inside a title), we can treat it as raw inline LaTeX.
2012-10-11LaTeX reader: Make `\noindent` inline rather than block.John MacFarlane1-2/+1
2012-10-10LaTeX reader: Better support for citation commands.John MacFarlane1-7/+11
* Make `\cite` etc. an AuthorInText. * Make `\footcite` etc. into citations in notes.
2012-10-06RST reader: Don't create empty definition list for metadata field lists.John MacFarlane1-3/+3
Previously a field list consisting only of metadata fields (author, title, date) would be parsed as an empty DefinitionList, which is not legal in LaTeX and not needed in any format. This patch fixes the problem, which I learned of from http://stackoverflow.com/questions/12762767/modify-variable-in-rst-with-pandoc.
2012-10-05Textile reader: Implemented comment blocks.John MacFarlane1-0/+7
2012-09-30RST reader: Removed 'plain' in blocks, since 'para' includes it.John MacFarlane1-1/+0
2012-09-30RST reader: Consolidate super/subscript, math into interpretedRole.John MacFarlane1-35/+26
2012-09-30RST reader: Renamed 'image' to 'subst', since it now handles more.John MacFarlane1-4/+3
2012-09-30Ignore unknown interpreted roles.John MacFarlane1-3/+12
The contents are treated as rst, not literal, which will sometimes be wrong.
2012-09-30RST reader: Removed requirement that directives begin at left margin.John MacFarlane1-3/+0
This was (correctly) not in earlier releases; docutils doesn't make the requirement.
2012-09-30RST reader: Require whitespace after field list field names.John MacFarlane1-1/+1
2012-09-30RST reader: Consolidated rawBlock into directive.John MacFarlane1-15/+1
2012-09-30RST reader: Handle replace:: and unicode:: substitutions.John MacFarlane1-8/+77
2012-09-29RST reader: Make directive labels case-insensitive.John MacFarlane1-1/+3
2012-09-29RST reader: Folded figureBlock into directive.John MacFarlane1-14/+10
2012-09-29RST reader: Made comments a separate parser.John MacFarlane1-6/+17
2012-09-29RST reader: Folded image block handling into directive.John MacFarlane1-41/+36
2012-09-29RST reader: Folded code block parsers into directive.John MacFarlane1-18/+15
2012-09-29RST reader: Folded default-role parser into directive.John MacFarlane1-21/+8
2012-09-29Renamed removedLeadingTrailingSpace to trim.John MacFarlane3-23/+20
Also removeLeadingSpace to triml, removeTrailingSpace to trimr.
2012-09-29RST reader: Consolidated math block parsers into directive.John MacFarlane1-29/+9
2012-09-29RST reader: Refactored directive parser.John MacFarlane1-83/+105
We now also hander container, compound, epigraph, rubric, highligts, pull-quote.
2012-09-29Markdown reader: Worked around some sepBy's.John MacFarlane1-8/+11
2012-09-28Textile reader: Avoid parsing dashes as strikeout.John MacFarlane1-1/+1
Previously the input text-- text-- text-- text-- would be parsed with strikeouts rather than dashes. This fixes the problem by requiring that a strikeout delimiting - not be followed by a -. Closes #631.
2012-09-28Textile reader: Fixed bug affected words ending in hyphen.John MacFarlane1-2/+5
Note: sepBy1 doesn't work quite as I expected. It gives odd results if sep succeeds but not p.
2012-09-28Textile: Improvements to surround and symbol.John MacFarlane1-2/+2
2012-09-28RST reader: Support ".. code::".John MacFarlane1-1/+5
2012-09-28RST reader: Combine para/plain.John MacFarlane1-9/+10
2012-09-28RST reader: Made para parser slightly more efficient.John MacFarlane1-12/+19
2012-09-27RST reader: Use Text.Pandoc.Builder.John MacFarlane1-174/+180
This will give us more flexibility in the future. It also gives built-in normalization. Performance slightly better.
2012-09-27Shared: Export compactify', formerly in Markdown reader.John MacFarlane1-21/+7
2012-09-27Removed nullBlock.John MacFarlane1-1/+1
Don't use nullBlock in Textile reader. Better to know about parsing problems than to skip stuff when we get stuck.
2012-09-27RST reader: Support :target: on image substitutions.John MacFarlane1-26/+26
2012-09-27Added stateSubstitutions to ParserState, use for RST substitutions.John MacFarlane1-12/+18
2012-09-27Removed Ext_monospace_autolinks.John MacFarlane1-6/+2
2012-09-27Added Ext_autolink_urls.John MacFarlane1-0/+9
2012-09-27Renamed Ext_autolink_code_spans to Ext_monospace_autolinks.John MacFarlane1-1/+1
2012-09-26RST reader: Support :target: on .. image:: blocks.John MacFarlane1-4/+8
Still not supported on substitution definitions.