aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Markdown.hs
AgeCommit message (Collapse)AuthorFilesLines
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.
2011-01-20Markdown writer: Avoid printing excess spaces at end if no notes/refs.John MacFarlane1-1/+2
2011-01-06Markdown writer: blank line after delimited code block.John MacFarlane1-2/+2
2010-12-26Markdown writer: Fixed bug in Image.John MacFarlane1-1/+1
URI was getting unescaped twice!
2010-12-24Use functions from Text.Pandoc.Generic instead of processWith(M).John MacFarlane1-3/+4
2010-12-20Markdown writer: use \ for newline instead of two spaces at eol.John MacFarlane1-1/+4
(Unless --strict.)
2010-12-20Markdown writer: Use delimited code block if there are attributes.John MacFarlane1-2/+21
(Unless in strict mode.)
2010-12-20Plain writer: set stateStrictMarkdown automatically.John MacFarlane1-3/+4
2010-12-17Added new prettyprinting module.John MacFarlane1-135/+157
* Added Text.Pandoc.Pretty. This is better suited for pandoc than the 'pretty' package. One advantage is that we now get proper wrapping; Emph [Inline] is no longer treated as a big unwrappable unit. Previously we only got breaks for spaces at the "outer level." We can also more easily avoid doubled blank lines. Performance is significantly better as well. * Removed Text.Pandoc.Blocks. Text.Pandoc.Pretty allows you to define blocks and concatenate them. * Modified markdown, RST, org readers to use Text.Pandoc.Pretty instead of Text.PrettyPrint.HughesPJ. * Text.Pandoc.Shared: Added writerColumns to WriterOptions. * Markdown, RST, Org writers now break text at writerColumns. * Added --columns command-line option, which sets stColumns and writerColumns. * Table parsing: If the size of the header > stColumns, use the header size as 100% for purposes of calculating relative widths of columns.
2010-12-13Added option to write citation markup in markdown writer.Nathan Gass1-1/+29
2010-07-20Made spacing at end of output more consistent.John MacFarlane1-1/+1
Previously some of the writers added spurious whitespace. This has been removed, resolving Issue #232. NOTE: If your application combines pandoc's output with other text, for example in a template, you may need to add spacing. For example, a pandoc-generated markdown file will not have a blank line after the final block element. If you are inserting it into another markdown file, you will need to make sure there is a blank line between it and the next block element.
2010-07-11Merge branch 'atlists'. Added auto-numbered example lists.John MacFarlane1-3/+3