aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Markdown.hs
AgeCommit message (Collapse)AuthorFilesLines
2013-01-17Revert "Markdown reader: Be less restrictive about class attributes."John MacFarlane1-1/+1
This reverts commit b158b3fb2182b5c8a6f03759277f4f73cdc24797.
2013-01-16Markdown reader: Be less restrictive about class attributes.John MacFarlane1-1/+1
This allows attributes like `C++`. Any nonspace and non-}.
2013-01-16Implemented Ext_link_attributes in markdown reader.John MacFarlane1-31/+26
Also simplified source URL and link title parsers.
2013-01-16Implemented Ext_mmd_header_identifiers in markdown reader.John MacFarlane1-4/+22
2013-01-15Changed Ext_autolink_urls -> Ext_autolink_bare_uris.John MacFarlane1-1/+1
Added tests.
2013-01-15Use 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane1-2/+2
Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
2013-01-14Implemented Ext_implicit_figures.John MacFarlane1-6/+16
* In markdown reader, add a '\1' character to the beginning of the title of an image that is alone in its paragraph, if implicit_figures extension is selected. * In writers, check for Para [Image alt (src,'\1':tit)] and treat it as a figure if possible. * Updated tests. This is a bit of a hack, but it allows us to make implicit_figures an extension of the markdown reader, rather than the writers.
2013-01-14Removed some cruft.John MacFarlane1-10/+0
2013-01-13Markdown reader: Support RST-style line blocks.John MacFarlane1-1/+13
This depends on the new Ext_line_blocks extension.
2013-01-10Implemented Ext_header_attributes.John MacFarlane1-12/+20
This allows explicit attributes to be put on headers, using a syntax like that for code blocks: {#id .class .class k=v k=v}
2013-01-10Ext_header_identifiers -> Ext_auto_identifiers.John MacFarlane1-1/+1
2013-01-09Added Attr field to Header.John MacFarlane1-8/+14
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 MacFarlane1-2/+2
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-10-21Revert "LaTeX reader: Use new suppressParens option for footnote citations."John MacFarlane1-16/+14
This reverts commit 7499499b68934ae6f3418940328c7fc2bd9fcadd. Conflicts: src/Text/Pandoc/Readers/LaTeX.hs
2012-10-15LaTeX reader: Use new suppressParens option for footnote citations.John MacFarlane1-14/+16
Also changed Biblio, Markdown reader, and LaTeX reader tests because of new citationSuppressParens field in Citation.
2012-10-13Moved bibliography processing into readers.John MacFarlane1-3/+8
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-09-29Renamed removedLeadingTrailingSpace to trim.John MacFarlane1-9/+9
Also removeLeadingSpace to triml, removeTrailingSpace to trimr.
2012-09-29Markdown reader: Worked around some sepBy's.John MacFarlane1-8/+11
2012-09-27Shared: Export compactify', formerly in Markdown reader.John MacFarlane1-21/+7
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-22Markdown reader: Fixed link parser to avoid exponential slowdowns.John MacFarlane1-8/+12
Previously the parser would hang on input like this: [[[[[[[[[[[[[[[[[[hi We fixed this by making the link parser parser characters between balanced brackets (skipping brackets in inline code spans), then parsing the result as an inline list. One change is that [hi *there]* bud](/url) is now no longer parsed as a link. But in this respect pandoc behaved differently from most other implementations anyway, so that seems okay. All current tests pass. Added test for this case. Closes #620.
2012-09-12Added basic mediawiki reader.John MacFarlane1-2/+0
Text.Pandoc.Readers.MediaWiki module, tests/mediawiki-reader.{txt,native}.
2012-09-12Export 'nested' in Parsing.John MacFarlane1-12/+0
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 MacFarlane1-3/+9
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-08Changes to literate haskell options.John MacFarlane1-1/+1
- 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.