aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
AgeCommit message (Collapse)AuthorFilesLines
2012-09-12MediaWiki reader: Improvements to list parsing and HTML tag handling.John MacFarlane1-2/+16
2012-09-12MediaWiki reader: Support skipped level in lists.John MacFarlane1-2/+18
For example: # one # two ### skip! ### skip
2012-09-12MediaWiki reader: Fixed charsInTags parser to use innerText.John MacFarlane1-3/+1
2012-09-12Minor fixes to MediaWiki reader.John MacFarlane1-2/+2
2012-09-12Added basic mediawiki reader.John MacFarlane2-2/+311
Text.Pandoc.Readers.MediaWiki module, tests/mediawiki-reader.{txt,native}.
2012-09-12Export 'nested' in Parsing.John MacFarlane1-12/+0
2012-09-09LaTeX reader: Better error messages for environments.John MacFarlane1-1/+3
Now it should tell you that it was looking for \end{env}, instead of giving "unknown parse error."
2012-09-09LaTeX reader: guard against "begin"/"end" in blockCommand.John MacFarlane1-0/+1
2012-09-09LaTeX reader: Guard against "begin", "end" in inlineCommand.John MacFarlane1-2/+1
Removed these from list of inline commands.
2012-09-09HTML reader: Handle nested `<q>` tags properly.John MacFarlane1-1/+9
2012-09-09HTML reader: Parse <q> as Quoted DoubleQuote.John MacFarlane1-0/+4
2012-09-08RST reader: Allow dashes as separator in simple tables.John MacFarlane1-1/+1
Closes #555.
2012-09-06LaTeX reader: Support obeylines environment.John MacFarlane1-0/+3
Closes #604.
2012-09-06LaTeX reader: Use curly quotes for bare straight quotes.John MacFarlane1-13/+9
2012-09-06LaTeX reader: Fixed parsing of paragraphs beginning with a group.John MacFarlane1-1/+1
Previously a paragraph beginning ``` {``}hello{''} ``` would be parsed as two paragraphs. Closes #606.
2012-09-06Textile reader: Improved speed of hyphenedWords.John MacFarlane1-4/+6
This speeds up the textile reader by about a factor of 4. But the reader is still very slow, compared to others readers.
2012-09-06Removed obsolete comment.John MacFarlane1-1/+0
2012-09-06Fixed footnotes bug in textile.John MacFarlane1-2/+3
This affected notes occuring before punctuation, e.g. `foo[1].`. Closes #518.
2012-09-04LaTeX reader: Handle \slash command.John MacFarlane1-0/+1
Closes #605.
2012-08-29Allow any char but ':' in names of field lists in RST readerDenis Laxalde1-1/+1
2012-08-29Fix RST reader for field lists items with body beginning after a new lineDenis Laxalde1-1/+1
2012-08-21Implemented Ext_backtick_code_blocks.John MacFarlane1-15/+23
This is the variant github prefers.
2012-08-21Added Ext_fenced_code_attributes.John MacFarlane1-4/+6
2012-08-21Changed nomenclature, delimited -> fenced code blocks.John MacFarlane1-4/+4
2012-08-19Added Ext_abbrevations for PHP markdown style abbreviation keys.John MacFarlane1-4/+15
Note: pandoc does not have an abbreviation element (yet) and so currently when this extension is enabled, it just causes pandoc to skip the abbrevation keys.
2012-08-15Moved renderTags' from HTML reader & SelfContained to Shared.John MacFarlane2-16/+10
Improved removal of markdown="1" attribute in Markdow reader.
2012-08-15Tweaks on markdown="1" handling.John MacFarlane1-14/+22
2012-08-13Markdown: Prevent parse failure on HTML blocks with -raw_html.John MacFarlane1-1/+2
2012-08-12Added Ext_raw_html extension.John MacFarlane1-3/+6
Closes #556 -- you can now specify markdown-raw_html as your input format. (Read: markdown minus raw_html.)
2012-08-12Implemented Ext_mmd_title_block in markdown reader & writer.John MacFarlane1-3/+25
2012-08-11Mardkown reader: Implemented Ext_markdown_attribute.John MacFarlane1-14/+23
2012-08-11Revert "Implemented Ext_markdown_attribute."John MacFarlane1-10/+1
This reverts commit 78d3a0fb9d3f862d5e2b61bd45434f7af9cd9f18.
2012-08-11Implemented Ext_markdown_attribute.John MacFarlane1-1/+10
This adds markdown=1 to block tags.
2012-08-10Implemented Ext_tex_math_single_backslash, Ext_tex_math_double_backslash.John MacFarlane1-20/+28
2012-08-10Changed Ext_tex_math to Ext_tex_math_dollars.John MacFarlane1-2/+2
2012-08-10Markdown: Allow pipe tables created by emacs orgtbl-mode to work.John MacFarlane1-4/+8
The difference is the + separators. Note: only simple org-tables work, with no bottom line. This just allows you to use org-mode's nice table editor to create regular pipe tables. In particular, org-mode's method for determining column alignments implicitly is not enabled. You must put in :s to specify alignments, as stated in the documentation.
2012-08-09Use safeRead instead of using reads directly (various modules).John MacFarlane1-15/+16
2012-08-08Changes to literate haskell options.John MacFarlane3-4/+4
- Removed writerLiterateHaskell from WriterOptions. - Removed readerLiterateHaskell from ReaderOptions. - Added Ext_literate_haskell to Extensions. Test for this instead of the above. - Removed failUnlessLHS from Shared. Note: At this point, +lhs and .lhs extension no longer has any effect. Need to fix.
2012-08-07Markdown reader: Modified to use Builder from pandoc-types 1.10.*.John MacFarlane1-5/+3
2012-08-06Support hard_line_breaks markdown extension.John MacFarlane1-1/+2
* Added Ext_hard_line_breaks. * Added section in README on non-pandoc extensions. * Exported pandocExtensions and strictExtensions in Text.Pandoc.Options. Closes #514.
2012-08-05Started making markdown table writer sensitive to options.John MacFarlane1-1/+1
So far incomplete.
2012-08-04Markdown reader: look for raw html/latex blocks before tables.John MacFarlane1-2/+2
Otherwise the following gets parsed as a table: \begin{code} -------------- -- My comment. \end{code} Closes #578.
2012-08-02Markdown reader: Import <> from Text.Pandoc.Builder.John MacFarlane1-2/+2
This way the module will work with versions of Data.Monoid that don't export <>.
2012-08-02Made F a newtype, moved definitions to Parser.John MacFarlane1-20/+14
Parser now exports F(..), askF, asksF, runF.
2012-08-01Improved implementation of pipe tables.John MacFarlane1-25/+14
2012-08-01Parsing: removed duplication of Key and Key'.John MacFarlane2-18/+23
Now we just use the former Key' (string contents), renamed Key. lookupKeySrc and fromKey are no longer eport. Key', toKey' and KeyTable' have become Key, toKey, and KeyTable.
2012-08-01Major rewrite of markdown reader.John MacFarlane2-392/+555
* Use Builder's Inlines/Blocks instead of lists. * Return values in the reader monad, which are then run (at the end of parsing) against the final parser state. This allows links, notes, and example numbers to be resolved without a second parser pass. * An effect of using Builder is that everything is normalized automatically. * New exports from Text.Pandoc.Parsing: widthsFromIndices, NoteTable', KeyTable', Key', toKey', withQuoteContext, singleQuoteStart, singleQuoteEnd, doubleQuoteStart, doubleQuoteEnd, ellipses, apostrophe, dash * Updated opendocument tests. * Don't derive Show for ParserState. * Benchmarks: markdown reader takes 82% of the time it took before. Markdown writer takes 92% of the time (here the speedup is probably due to the fact that everything is normalized by default).
2012-07-27Markdown reader: Added sensitivity to Ext_example_lists.John MacFarlane1-1/+3
2012-07-27Markdown reader: Check fancy_lists and startnum extensions.John MacFarlane1-2/+6
2012-07-27Replaced writerStrict with writerExtensions in WriterOptions.John MacFarlane1-5/+7
Still have not implemented individual tests for all the extensions in the markdown writer.