summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Use 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane2013-01-15
| | | | Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
* Implemented Ext_implicit_figures.John MacFarlane2013-01-14
| | | | | | | | | | | | * 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.
* Removed some cruft.John MacFarlane2013-01-14
|
* Parsing: Fixed uri -- escape unicode URLs.John MacFarlane2013-01-14
| | | | | Otherwise Network.URI.parseURI fails on e.g. Chinese URLs. Changed an incorrect test in markdown-reader-more.
* Added Ext_implicit_figures.John MacFarlane2013-01-14
| | | | No code to hook this in yet.
* Parsing: Simplified and improved singleQuoteStart.John MacFarlane2013-01-14
| | | | | | | | | This makes 's', 'l', etc. parse properly. Formerly we had some English-centric heuristics, but they are no longer needed now that we keep track of the last 'Str' position in state. Closes #698.
* Makefile: make prep now handles updates to pandoc-types.John MacFarlane2013-01-14
|
* RST writer: Fixes bug with links with duplicate text.John MacFarlane2013-01-13
| | | | | | | | | We now (a) use anonymous links for links with inline URLs, and (b) use an inline link instead of a reference link if the reference link would require a label that has already been used for a different link. Closes #511.
* RST writer: Properly handle images with no alt text.John MacFarlane2013-01-13
| | | | Closes #678.
* README: Cosmetic change in headerless table example.John MacFarlane2013-01-13
| | | | Closes #696.
* Documented line blocks in README.John MacFarlane2013-01-13
|
* Added tests for markdown line blocks and explicit header attributes.John MacFarlane2013-01-13
|
* Markdown reader: Support RST-style line blocks.John MacFarlane2013-01-13
| | | | This depends on the new Ext_line_blocks extension.
* Moved lineBlockLines to Parsing.John MacFarlane2013-01-13
| | | | This will be used by both RST and markdown readers.
* RST reader: Refactored line block parser.John MacFarlane2013-01-13
|
* RST writer: Allow soft breaks w continuations in line blocks.John MacFarlane2013-01-13
|
* RST reader: Line block improvements.John MacFarlane2013-01-13
| | | | | | * Use nonbreaking spaces for initial indent (otherwise lost in HTML and LaTeX). * Allow multiple paragraphs in a single line block.
* Use line block in RST writer when a paragraph contains linebreaks.John MacFarlane2013-01-13
| | | | | Previously linebreaks weren't supported in RST, since RST has no native linebreak construct.
* Markdown writer: Support Ext_auto_identifiers and Ext_header_attributes.John MacFarlane2013-01-12
|
* HTML reader: Added html5 tags to list of block-level tags.John MacFarlane2013-01-12
|
* Escape `|` as `\vert` in LaTeX math.John MacFarlane2013-01-12
| | | | | | This avoids a clash with highlighting-kate's macros, which redefine | as a short verbatim delimiter. Thanks to Björn Peemöller for raising this issue.
* Fixed/simplified diff output for tests.John MacFarlane2013-01-12
|
* Changed hspace in last commit to 0.333em.John MacFarlane2013-01-11
| | | | This seems to match the spacing of ~ exactly.
* LaTeX writer: Use `\hspace*` for nonbreaking space after line break.John MacFarlane2013-01-11
| | | | | Since `~` spaces after a line break are just ignored. Closes #687.
* Revised EPUB writer given changes in header attributes.John MacFarlane2013-01-11
| | | | | | We need to ensure that all headers have attributes, since this is no longer guaranteed by hierarchicalize. Explicitly given headers remain the same.
* EPUB writer: Download images at URLs.John MacFarlane2013-01-11
|
* Refactoring:John MacFarlane2013-01-11
| | | | | | | * Shared now exports fetchItem (instead of getItem) and openURL * fetchItem has different parameters than getItem and includes some logic formerly in the ODT and Docx writers * getItem still used in SelfContained
* ODT, Docx writers: Properly handle URL refs for images.John MacFarlane2013-01-11
| | | | | | These images are now downloaded instead of being ignored (as used to happen in the docx reader) or causing an error (as used to happen in the odt reader).
* pandoc.hs: Fix writerSourceDirectory when a URL is provided.John MacFarlane2013-01-11
| | | | It should be the URL up to the path.
* ImageSize: Remove no longer exported readImageSize.John MacFarlane2013-01-11
|
* Improvements to docx writer.John MacFarlane2013-01-11
| | | | Avoid reading image files again when we've already processed them.
* Docx writer: Preliminary improvements.John MacFarlane2013-01-11
| | | | | | * Use getItem to fetch images, so we can get them over the net if they have absolute URLs. * Added TODO notes for cleaning up the logic.
* ImageSize: Use strict, not lazy bytestrings.John MacFarlane2013-01-11
|
* Move getItem from SelfContained to Share; export getItem.John MacFarlane2013-01-11
|
* Options: Added githubMarkdownExtensions.John MacFarlane2013-01-11
| | | | Added github_markdown as input/output option.
* Added markdown_phpextra as writer option.John MacFarlane2013-01-10
|
* Options: Added phpMarkdownExtraExtensions.John MacFarlane2013-01-10
| | | | And added markdown_phpextra input/output format.
* Implemented Ext_header_attributes.John MacFarlane2013-01-10
| | | | | | | This allows explicit attributes to be put on headers, using a syntax like that for code blocks: {#id .class .class k=v k=v}
* Ext_header_identifiers -> Ext_auto_identifiers.John MacFarlane2013-01-10
|
* More improvements in emailAddress parser.John MacFarlane2013-01-09
|
* Made email parser more correct.John MacFarlane2013-01-09
| | | | | Now it's based on RFC 822, though it still doesn't implement quoted strings in email addresses.
* Fixed regression in example lists.John MacFarlane2013-01-09
| | | | This was associated with e1be934dc2ff061e5200017d6503280686983e1f.
* Added Attr field to Header.John MacFarlane2013-01-09
| | | | | | | | | | 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.
* Biblio: Make sure mvPunc and deNote run on metadata too.John MacFarlane2013-01-08
| | | | This fixed a bug with notes on titles using footnote styles.
* Added / to the list of letters that can occur in a citation key.John MacFarlane2013-01-08
|
* Updated tests for tight/loose lists.John MacFarlane2013-01-07
| | | | | | Taking into account new context/latex output, and fixing some bugs in the test suite Tests.Helpers and Tests.Writers.ConTeXt. (We had the wrong order of expected/actual in the diff output.)
* Implemented tight lists in context, latex writers.John MacFarlane2013-01-07
|
* Shared: export isTightList.John MacFarlane2013-01-07
|
* Don't put the text of an autolink in Code font.John MacFarlane2013-01-06
|
* Mediawiki reader: interpret HTML in verbatim contexts as text.John MacFarlane2013-01-06
| | | | | Thanks to Jeff Runningen for reporting that mediawiki works this way.