aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
AgeCommit message (Collapse)AuthorFilesLines
2013-01-10Ext_header_identifiers -> Ext_auto_identifiers.John MacFarlane1-1/+1
2013-01-09Added Attr field to Header.John MacFarlane4-18/+31
Previously header ids were autogenerated by the writers. Now they are generated (unless supplied explicitly) in the markdown parser, if the `header_identifiers` extension is selected. In addition, the textile reader now supports id attributes on headers.
2013-01-08Added / to the list of letters that can occur in a citation key.John MacFarlane1-1/+1
2013-01-06Don't put the text of an autolink in Code font.John MacFarlane3-6/+6
2013-01-06Mediawiki reader: interpret HTML in verbatim contexts as text.John MacFarlane1-2/+1
Thanks to Jeff Runningen for reporting that mediawiki works this way.
2013-01-04Markdown reader: Warn about duplicate note references.John MacFarlane1-1/+6
Closes #375.
2013-01-04Markdown reader: Warn about duplicate link references.John MacFarlane1-1/+12
2013-01-04Markdown reader: Export readMarkdownWithWarnings.John MacFarlane1-1/+14
Note: This is not yet used, and the parser does not yet generate any warnings.
2013-01-03Implemented `Ext_header_identifiers`, `Ext_implicit_header_references`.John MacFarlane1-143/+163
Now by default pandoc will act as if link references have been defined for all headers. So, you can do this: # My header Link to [My header]. Another link to [it][My header]. Closes #691.
2012-12-12LaTeX reader: Make command macros work everywhere, including non-math.John MacFarlane1-6/+10
Environment macros still not supported.
2012-11-06Textile reader/writer: Fixed autolinks.John MacFarlane1-11/+5
Previously the textile reader and writer incorrectly implented RST-style autolinks for URLs and email addresses. This has been fixed. Now an autolink is done this way: "$":http://myurl.com
2012-11-06Textile parser: Expanded list of stringBreakers.John MacFarlane1-1/+1
This fixes a bug on input like "(_hello_)" which should be a parenthesized emphasized "hello". The new list is taken from the PHP source of textile 2.4.
2012-11-05LaTeX reader: skip comments in handleIncludes.John MacFarlane1-0/+2
2012-11-05Textile reader: Allow newlines before pipes in table.John MacFarlane1-1/+2
Closes #654.
2012-11-02DocBook reader: Support title in "figure" element.John MacFarlane1-6/+21
Closes #650.
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