aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
AgeCommit message (Collapse)AuthorFilesLines
2014-02-15Enhanced Pandoc's support for rST roles.Merijn Verstraaten1-10/+81
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-04Slight code reorganization in endline.John MacFarlane1-5/+3
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-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-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-01HTML reader: Parse name/content pairs from meta tags as metadata.John MacFarlane1-1/+10
Closes #1106.
2013-12-19HLint: use fromMaybeHenry de Valence4-10/+12
Replace uses of `maybe x id` with `fromMaybe x`.
2013-12-19HLint: redundant parensHenry de Valence2-2/+2
Remove parens enclosing a single element.
2013-12-19HLint: use `elem` and `notElem`Henry de Valence2-7/+6
Replaces long conditional chains with calls to `elem` and `notElem`.
2013-12-17LaTeX reader: Support babel-style quoting: `` "`..."' ``.John MacFarlane1-0/+2
2013-12-16Docbook reader: Avoid failure if tbody contains no tr or row elements.John MacFarlane1-1/+3
2013-12-15Properly handle script blocks in strict mode.John MacFarlane1-1/+3
(That is, markdown-markdown_in_html_blocks.) Previously a spurious `<p>` tag was being added. Closes #1093.
2013-12-13LaTeX reader: add support for Verb macroJeff Arnold1-0/+1
2013-12-12Markdown reader: Fixed regression in title blocks.John MacFarlane1-4/+4
If author field was empty, date was being ignored. Closes #1089.
2013-12-07Another small performance improvement.John MacFarlane1-3/+5
2013-12-07Small performance improvement in list parsing.John MacFarlane1-2/+3
2013-12-07Markdown reader: Fixed bug with literal `</div>` in lists.John MacFarlane1-3/+4
Closes #1078.
2013-12-06HTML reader: Parse LaTeX math if appropriate options are set.John MacFarlane3-35/+10
* Moved inlineMath, displayMath from Markdown reader to Parsing. * Export them from Parsing. (API change.) * Generalize their types.
2013-12-04Stop parsing "list lines" when we hit a block tag.John MacFarlane1-1/+3
This fixes exponential slowdown in certain input, e.g. a series of lists followed by `</div>`.
2013-11-22Fixed bug with intraword emphasis.John MacFarlane1-1/+2
Closes #1066.
2013-11-18LaTeX reader: Parse contents of curly quotes or matched `"` as quotes.John MacFarlane1-7/+17
2013-11-17LaTeX reader: Support `\textnormal` as span with class "nodecor".John MacFarlane1-0/+1
This is needed for pandoc-citeproc.
2013-11-17MediaWiki reader: Add automatic header identifiers.John MacFarlane1-2/+20
2013-11-07recognize svg tag in HTML ReaderMinRK1-1/+1
avoids adding lots of `<p>` tags in embedded SVG content, for instance in markdown to HTML.
2013-11-03Markdown reader: Correctly handle empty bullet list items.John MacFarlane1-4/+5
For example: - one - - two This should NOT be parsed as a setext header followed by a list.
2013-11-03HTML reader: Use pandoc Div and Span for raw "<div>", "<span>".John MacFarlane1-10/+25
Only if --parse-raw.
2013-11-01TexMath: Export readTeXMath', which attends to display/inline.John MacFarlane1-5/+19
Deprecate readTeXMath, and use readTeXMath' in all the writers. Require texmath >= 0.6.5.
2013-10-29Markdown reader: Yaml block must start immediately after `---`.John MacFarlane1-0/+1
If there's a blank line after `---`, we interpreted it as a horizontal rule.
2013-10-22DocBook reader: Handle numerical attributes starting with decimal.John MacFarlane1-6/+7
Also use safeRead instead of read.
2013-10-21LaTeX reader: Improved citation parsing.John MacFarlane1-6/+13
This fixes a run-time error that occured with `\citet{}` (empty list of keys). It also ensures that empty keys don't get produced.
2013-10-18MediaWiki reader: Trim contents of `<math>` tags.John MacFarlane1-5/+5
Otherwise we get problems when converting to markdown. Closes #1027.
2013-10-11LaTeX reader: Ensure that preamble doesn't contribute to text of doc.John MacFarlane1-8/+8
2013-10-11LaTeX reader: Fixed character escaping in \url{}.John MacFarlane1-3/+1
Previously `\~` wasn't handled properly, among others.
2013-09-28LaTeX reader: Parse {groups} as Span.John MacFarlane1-1/+10
This is needed for accurate conversion of bibtex titles, since we need to know what was protected from titlecase conversions.
2013-09-14Markdown reader: unresolved citations fall back to original text.John MacFarlane1-11/+14
Not ???. Reason: Less surprising, especially for people using @ as in twitter.
2013-09-11Mediawiki: Parse an image + caption in a para by itself as a figure.John MacFarlane1-2/+2
2013-09-09Markdown: don't parse citation right after alphanumeric.John MacFarlane1-0/+5
An `@` after an alphanumeric is probably an email address.
2013-09-08markdown+list_without_preceding_blankline:+Interpret text before list as ↵John MacFarlane1-3/+5
paragraph.
2013-09-08Markdown: Allow backtick code blocks not to be preceded by blank line.John MacFarlane1-0/+3
Closes #975.
2013-09-07MedaWiki reader: Implement some mathjax extensions.John MacFarlane1-4/+15
* `:<math>` for display math * `\(..\)` for inline math * `\[..\]` for display math We omit the `$` forms as the heuristics are harder.
2013-09-07Added support for LaTeX style literate Haskell code blocks in rST.Merijn Verstraaten1-6/+17
2013-09-07Added `lists_without_preceding_blankline` extension.John MacFarlane1-0/+1
* Added `Ext_lists_without_preceding_blankline` to `Extension` in `Options`. Added this option to `githubMarkdownExtensions`. * Made markdown reader sensitive to this. * Closes #972.
2013-09-06MediaWiki reader: Allow Image: for images.John MacFarlane1-1/+1
Closes #971.
2013-09-01Markdown reader: Don't autolink a bare URI that is followed by `</a>`.John MacFarlane1-0/+1
Closes #937.
2013-09-01Use registerHeader in Textile reader.John MacFarlane1-1/+3
This produces automatic header identifiers, unless `auto_identifiers` extension is disabled. Closes #967.
2013-09-01Use registerHeader in RST and LaTeX readers.John MacFarlane2-5/+7
This will give automatic unique identifiers, unless `-auto_identifiers` is specified.
2013-09-01Factored out registerHeader from markdown reader, added to Parsing.John MacFarlane1-28/+2
Text.Pandoc.Parsing now exports registerHeader, which can be used in other readers.
2013-08-28LaTeX reader: allow spaces in alignment spec in tables.John MacFarlane1-2/+3
E.g. `{ l r c }`.