aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Markdown.hs
AgeCommit message (Collapse)AuthorFilesLines
2013-02-03Citation changes.John MacFarlane1-1/+3
* Citations will work in markdown even if `--biblio` isn't specified. Note: this may cause unexpected behavior for people who use strings of the form `@foo` that are not citations! * If `--biblio` isn't used, the markdown writer will write markdown citations rather than CSL-rendered citations. * This means, for example, that you can do `pandoc -f latex -t markdown` and convert biblatex or natbib citations into pandoc citations.
2013-01-28Markdown writer: Set title, author, date variables as before.John MacFarlane1-0/+3
These are no longer used in the default template, since we use titleblock, but we set them anyway for nondefault template users.
2013-01-26Markdown writer: Use autolink when link text matches url.John MacFarlane1-3/+3
Previously we also checked for a null title, but this test fails for links produced by citeproc-hs in bibliographies. So, if the link has a title, it will be lost on conversion to an autolink, but that seems okay.
2013-01-16Implemented Ext_mmd_header_identifiers in markdown writer.John MacFarlane1-0/+2
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-0/+3
* 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-12Markdown writer: Support Ext_auto_identifiers and Ext_header_attributes.John MacFarlane1-13/+23
2013-01-09Added Attr field to Header.John MacFarlane1-1/+1
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-06Don't put the text of an autolink in Code font.John MacFarlane1-2/+2
2013-01-05Implemented --toc-depth for markdown writer.John MacFarlane1-7/+7
2012-09-25Make --id-prefix affect footnote IDs in markdown writer.John MacFarlane1-4/+4
Closes #614.
2012-09-15Markdown writer: Made sensitive to Ext_hard_line_breaks.John MacFarlane1-4/+8
2012-08-21Implemented Ext_backtick_code_blocks.John MacFarlane1-6/+14
This is the variant github prefers.
2012-08-21Added Ext_fenced_code_attributes.John MacFarlane1-2/+4
2012-08-21Changed nomenclature, delimited -> fenced code blocks.John MacFarlane1-3/+3
2012-08-12Implemented Ext_mmd_title_block in markdown reader & writer.John MacFarlane1-6/+29
2012-08-11Implemented tex_math extensions in markdown writer.John MacFarlane1-4/+18
2012-08-11Implemented Ext_markdown_attribute in markdown writer.John MacFarlane1-2/+19
2012-08-08Changes to literate haskell options.John MacFarlane1-6/+3
- 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-05Markdown writer: Tables now sensitive to table extension options.John MacFarlane1-21/+42
Ext_simple_table, Ext_multiline_tables, Ext_pipe_tables. Simple tables are preferred over pipe tables when both are enabled. If no appropriate table style is available, a raw HTML table is used. So far there is no option for output of grid tables.
2012-08-05Started making markdown table writer sensitive to options.John MacFarlane1-32/+49
So far incomplete.
2012-08-02Don't use escaped line breaks in plain output.John MacFarlane1-1/+3
2012-08-02Made markdown writer sensitive to Ext_subscript/superscript/strikeout.John MacFarlane1-3/+9
HTML is used if these are disabled.
2012-08-02Made markdown writer sensitive to Ext_definition_lists.John MacFarlane1-8/+13
IF not set, definition lists will be rendered as regular paragraphs, with the term set off by a line break.
2012-08-02Made markdown writer sensitive to Ext_startnum, Ext_fancy_lists.John MacFarlane1-1/+5
2012-08-02Made markdown reader sensitive to Ext_raw_tex.John MacFarlane1-2/+3
2012-08-02Made markdown writer sensitive to Ext_table_captions.John MacFarlane1-1/+1
2012-08-02Made markdown writer sensitive to Ext_pandoc_title_blocks.John MacFarlane1-1/+2
2012-08-02Made markdown writer sensitive to Ext_footnotes.John MacFarlane1-4/+10
If footnotes not enabled, footnotes are formatted like normal markdown paragraphs, with a marker like [3].
2012-07-27Replaced writerStrict with writerExtensions in WriterOptions.John MacFarlane1-16/+20
Still have not implemented individual tests for all the extensions in the markdown writer.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane1-0/+1
2012-07-26Fixed whitespace errors.John MacFarlane1-20/+20
2012-07-20Use Parser as type synonym for Parsec.John MacFarlane1-1/+1
2012-07-20Text.Pandoc.Parsing: Export all Parsec functions used in pandoc code.John MacFarlane1-2/+1
No other module directly imports Parsec. This will make it easier to change the parsing backend in the future, if we want to.
2012-07-20Use Text.Parsec instead of Text.ParserCombinators.Parsec.John MacFarlane1-2/+2
2012-05-19Markdown Use a nonzero space to prevent false recognition of list marker.John MacFarlane1-1/+1
This addresses #516, but in a rather hackish way. There ought to be a better solution.
2012-05-16Markdown writer: Improved definition lists.John MacFarlane1-2/+2
* Use `:` form instead of `~`, for better compatibility with other markdown implementations. * Don't wrap the term, because it breaks definition lists.
2012-04-15Mardkown writer: escape < and $.John MacFarlane1-1/+1
2012-04-11Markdown writer: don't force delimited code blocks to be flush left.John MacFarlane1-1/+1
Fixes bug with delimited code blocks inside lists etc.
2012-04-03Markdown writer: don't replace empty alt in image with "image".John MacFarlane1-3/+3
Previously `<img src="empty.png" alt=""/>` would be translated as `![image](empty.png)`; now it becomes `![](empty.png)` as one might naturally expect.
2012-02-08Don't wrap headers in markdown or rst.John MacFarlane1-1/+2
2012-01-31Don't let autolinks create reference links.John MacFarlane1-1/+1
Previously we got bad results with -t markdown --reference-links if the input contained autolinks like <http://yahoo.com>.
2012-01-27Finished implementing --atx-headers in markdown writer.John MacFarlane1-2/+5
2011-12-27Replaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.John MacFarlane1-4/+0
2011-12-02Shared: Removed unescapeURI, modified escapeURI.John MacFarlane1-2/+1
escapeURI now only escapes space characters, leaving unicode characters as they are, instead of converting them to octets and URL-encoding them, as before. This gives more readable URIs. User agents now do the percent-encoding themselves. URIs are no longer unescaped at all on conversion to markdown, asciidoc, rst, org. Closes #349.
2011-11-24Markdown writer: Use setext headers for levels 1-2.John MacFarlane1-11/+9
2011-06-06Markdown writer: Insert HTML comment btw list and indented code block.John MacFarlane1-1/+13
This prevents the code block from being interpreted as part of the list.
2011-01-26Add support for attributes in inline Code.John MacFarlane1-20/+28
Additional related changes: * URLs in Code in autolinks now use class "url". * Require highlighting-kate 0.2.8.2, which omits the final <br/> tag, essential for inline code.
2011-01-26Adjusted writers to use "tex".John MacFarlane1-2/+3
2011-01-26Bumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane1-9/+11
The old TeX, HtmlInline and RawHtml elements have been removed and replaced by generic RawInline and RawBlock elements. All modules updated to use the new raw elements.