aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)AuthorFilesLines
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.
2013-10-11LaTeX reader: Ensure that preamble doesn't contribute to text of doc.John MacFarlane1-8/+8
2013-10-11RST writer: Skip spaces after display math.John MacFarlane1-2/+8
Otherwise we get indentation problems, and part of the next paragraph may be rendered as part of the math.
2013-10-11LaTeX reader: Fixed character escaping in \url{}.John MacFarlane1-3/+1
Previously `\~` wasn't handled properly, among others.
2013-10-06Removed code that forces MathJax to typeset.John MacFarlane1-2/+1
Closes #1012. Reopens #966. A better solution for #966 will just affect slideous, not the other slide writers.
2013-09-28LaTeX reader: Parse {groups} as Span.John MacFarlane1-1/+10
This is needed for accurate conversion of bibtex titles, since we need to know what was protected from titlecase conversions.
2013-09-24OpenDocument writer: don't use font-face-decls variable.John MacFarlane1-7/+0
2013-09-25src/Text/Pandoc/Writers/OpenDocument.hs: Fix formatting of strikeout code.Václav Zeman1-4/+15
2013-09-19Markdown reader: small code improvement.John MacFarlane1-5/+5
2013-09-19LaTeX writer: Don't print biblio if --natbib or --biblatex option used.John MacFarlane1-10/+17
2013-09-19DOCX writer: Add missing settings.xml to the zip container.John MacFarlane1-1/+3
Closes #990.
2013-09-18Fixed reference slides.John MacFarlane1-1/+6
The Div container around references messed up the procedure for carving a document into slides. So we now remove the surrounding Div in prepSlides.
2013-09-14Markdown reader: unresolved citations fall back to original text.John MacFarlane1-11/+14
Not ???. Reason: Less surprising, especially for people using @ as in twitter.
2013-09-12Markdown writer: Print references if output is 'plain'.John MacFarlane1-1/+2
2013-09-12HTML writer: Ensure proper escaping in header metadata.John MacFarlane1-4/+5
2013-09-11Mediawiki: Parse an image + caption in a para by itself as a figure.John MacFarlane1-2/+2
2013-09-09Markdown: don't parse citation right after alphanumeric.John MacFarlane1-0/+5
An `@` after an alphanumeric is probably an email address.
2013-09-08Made . . . for pause work in all slide show formats except slideous.John MacFarlane1-7/+15
2013-09-08Templates: more consistent behavior of `$for$`.John MacFarlane1-1/+1
When `foo` is not a list, `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$. So if `foo` resolves to "", no output should be produced. See pandoc-templates#39.