aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2013-11-30Markdown writer: Fix rendering of tight sublists.John MacFarlane1-1/+8
E.g. - foo - bar - baz Previously a spurious blank line was included before the last item. Closes #1050.
2013-11-30ODT writer: Add `draw:name` attribute to `draw:frame` elements.John MacFarlane1-2/+8
This is reported to be necessary to avoid an error from recent versions of Libre Office when files contain more than one image. Closes #1069. Thanks to wmanley for reporting and diagnosing the problem.
2013-11-30ConTeXt writer: Don't hardcode figure/table placement.John MacFarlane1-4/+4
Instead, let this be set in the template, using `\setupfloat`. Thanks to Aditya Mahajan for the suggestion.
2013-11-30Fixed `cover-image` in EPUB YAML metadata.John MacFarlane1-1/+2
2013-11-30Allow specification of epub-cover-image in YAML metadata.John MacFarlane1-9/+8
2013-11-30EPUB writer: Improved metadata handling.John MacFarlane1-51/+591
* Metadata may now be included in YAML blocks in a markdown document. For example, --- title: - type: main text: My Book - type: subtitle text: An investigation of metadata creator: - role: author text: John Smith - role: editor text: Sarah Jones identifier: - scheme: DOI text: doi:10.234234.234/33 publisher: My Press rights: (c) 2007 John Smith, CC BY-NC ... * Metadata may still be provided using `--epub-metadata`; it will be merged with the metadata in YAML blocks. * meta tags are used instead of opf attributes for EPUB3.
2013-11-24MediaWiki reader: Accept image links in more languagesJaime Marquínez Ferrándiz1-1/+5
In some of the Wikipedia versions the local version of 'File' is used (for example 'Archivo' in Spanish)
2013-11-23Docx writer: Implemented csl flipflopping spans.John MacFarlane1-1/+6
2013-11-23LaTeX writer: Handle csl flipflopping spans (csl-no-emph, etc.)John MacFarlane1-1/+10
2013-11-23HTML writer: Handle csl flipflopping spans (csl-no-emph, etc.)John MacFarlane1-2/+16
2013-11-22EPUB writer: Don't include node for cover.xhtml if no cover!John MacFarlane1-2/+3
2013-11-22EPUB writer: Ensure that same identifier is used throughout.John MacFarlane1-9/+13
If dc:identifier is given in metadata, we use that; otherwise we use a random uuid. Closes #1044.
2013-11-22ConTeXt writer: Use setupcaption to separate style from content.John MacFarlane1-1/+1
Instead of adding 'nunumber' every time we place a figure... Closes #1067.
2013-11-22Fixed bug with intraword emphasis.John MacFarlane1-1/+2
Closes #1066.
2013-11-19Docx writer: Use mime type info returned by fetchItem.John MacFarlane1-11/+13
2013-11-19Shared: Fixed bug in openURL with data: URIs.John MacFarlane1-1/+2
Previously the base-64 encoded bytestring was returned. We now decode it so it's a proper image! This should fix parsing of data: URLs.
2013-11-19MIME: In looking up extensions, drop the encoding info.John MacFarlane1-1/+2
E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
2013-11-19Docbook writer: Hierarchicalize block content in metadata.John MacFarlane1-2/+3
Previously headers just disappeared from block-level metadata when it was used in templates. Now we apply the 'hierarchicalize' transformation. Note that a block headed by a level-2 header will turn into a `<sect1>` element.
2013-11-19Merge pull request #1061 from heurist/epub_coverLinearJohn MacFarlane1-2/+5
Epub Writer: Refactor unnecessary list ++
2013-11-19Epub Writer: Add cover reference to guide element (v2)Shaun Attfield (shaun@victor)1-4/+5
Avoiding an unnecessary list concatenation. Fixes an issue with calibre http://calibre-ebook.com/ putting the cover at the end of the book if the spine has linear="no". Apparently this is best practice for other converters as well. http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6
2013-11-18LaTeX reader: Parse contents of curly quotes or matched `"` as quotes.John MacFarlane1-7/+17
2013-11-18Epub Writer: Add cover reference to guide elementShaun Attfield (shaun@victor)1-2/+4
Fixes an issue with calibre http://calibre-ebook.com/ putting the cover at the end of the book if the spine has linear="no". Apparently this is best practice for other converters as well. http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6
2013-11-17LaTeX reader: Support `\textnormal` as span with class "nodecor".John MacFarlane1-0/+1
This is needed for pandoc-citeproc.
2013-11-17MediaWiki reader: Add automatic header identifiers.John MacFarlane1-2/+20
2013-11-17Parsing: Generalized type of registerHeader, using new typeclasses.John MacFarlane1-12/+42
New type classes HasReadeOptions, HasIdentifierList, HasHeaderMap. These allow certain common functions to be reused even in parsers that use custom state (instead of ParserState), such as the MediaWiki reader. Minor API bump.
2013-11-16OpenDocument: Skip raw HTML.John MacFarlane1-2/+2
Previously it was erroneously included as verbatim text. Closes #1035.
2013-11-16LaTeX writer: Properly escape pdftitle, pdfauthor.John MacFarlane1-2/+4
Closes #1059.
2013-11-12HTML/EPUB footnotes: Put `<sup>` tag inside `<a>` tags.John MacFarlane1-4/+4
This allows better control of formatting, since the `<a>` tags have a distinguishing class. Closes #1049.
2013-11-07recognize svg tag in HTML ReaderMinRK1-1/+1
avoids adding lots of `<p>` tags in embedded SVG content, for instance in markdown to HTML.
2013-11-07Docx writer: fixed core metadata.John MacFarlane1-4/+5
- Don't create empty date nodes if no date given. - Don't create multiple dc:creator nodes; instead separate by semicolons. Closes #1046.
2013-11-06Docx writer: Fix URL for core-properties in `_rels/.rels`.John MacFarlane1-1/+1
Partially addresses #1046.
2013-11-06Don't print `<span>` tags in 'plain' output.John MacFarlane1-1/+4
2013-11-03Markdown reader: Correctly handle empty bullet list items.John MacFarlane1-4/+5
For example: - one - - two This should NOT be parsed as a setext header followed by a list.
2013-11-03HTML reader: Use pandoc Div and Span for raw "<div>", "<span>".John MacFarlane1-10/+25
Only if --parse-raw.
2013-11-01TexMath: Export readTeXMath', which attends to display/inline.John MacFarlane8-17/+32
Deprecate readTeXMath, and use readTeXMath' in all the writers. Require texmath >= 0.6.5.
2013-10-29Markdown reader: Yaml block must start immediately after `---`.John MacFarlane1-0/+1
If there's a blank line after `---`, we interpreted it as a horizontal rule.
2013-10-29Slides: Preserve `<div class="references">` in references slide.John MacFarlane1-2/+2
2013-10-26Text.Pandoc.Writer.Shared: fixed bug in tagWithAttrs.John MacFarlane1-3/+2
A space was omitted before key-value attributes, leading to invalid HTML.
2013-10-22DocBook reader: Handle numerical attributes starting with decimal.John MacFarlane1-6/+7
Also use safeRead instead of read.
2013-10-21Fix definition lists with internal links in terms (closes #1032).John MacFarlane1-1/+8
This fix puts braces around a term that contains an internal link, to avoid problems with square brackets.
2013-10-21Templates: Changed how array variables are resolved.John MacFarlane1-1/+2
Previously if `foo` is an array (which might be because multiple values were set on the command line), `$foo$` would resolve to the concatenation of the elements of foo. This is rarely useful behavior. It has been changed so that the first value is rendered. Of course, you can still iterate over the values using `$for(foo)$`. This has the result that you can override earlier settings using -V by putting new values later on the command line. That's useful for many purposes.
2013-10-21LaTeX reader: Improved citation parsing.John MacFarlane1-6/+13
This fixes a run-time error that occured with `\citet{}` (empty list of keys). It also ensures that empty keys don't get produced.
2013-10-20Fixed '. . .' (pause) on HTML slide formats. Closes #1029.John MacFarlane1-3/+2
The old version caused a pause to be inserted before the first material on a slide. This has been fixed.
2013-10-18MediaWiki reader: Trim contents of `<math>` tags.John MacFarlane1-5/+5
Otherwise we get problems when converting to markdown. Closes #1027.
2013-10-17LaTeX writer: Specially escape non-ascii characters in labels.John MacFarlane1-6/+14
Otherwise we can get compile errors and other bugs when compiled with pdflatex. Closes #1007. Thanks to begemotv2718 for the fix.
2013-10-17PDF: Minor code cleanup.John MacFarlane1-2/+2
2013-10-17LaTeX writer: Add link anchors for code blocks with identifiers.John MacFarlane1-5/+11
Closes #1025.
2013-10-16Use isURI instead of isAbsoluteURI.John MacFarlane7-15/+15
It allows fragments identifiers.
2013-10-13Treat div with class "notes" as speaker notes in slide formats.John MacFarlane2-3/+15
Currently beamer goes to `\note{}`, revealjs to `<aside class="notes">`, and the notes are simply suppressed in other formats. Closes #925.
2013-10-13HTML writer: Insert command to typeset mathjax for slideous output.John MacFarlane1-1/+5
Closes #966.