summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Merge pull request #2412 from frerich/reader/docbook/xref_supportJohn MacFarlane2015-10-10
|\ | | | | Added support for <xref> tag in DocBook reader
| * Improve text generated for <xref> by employing docbook-xsl heuristicsFrerich Raabe2015-09-24
| | | | | | | | | | | | | | docbook-xsl, a set of XSLT scripts to generate HMTL out of DocBook, tries harder to generate a nice xref text. Depending on the element being linked to, it looks at the title or other descriptive child elements. Let's do that, too.
| * Added proper support for DocBook 'xref' elementsFrerich Raabe2015-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | 'xref' is used to create cross references to other parts of the document. It is an empty element - the cross reference text depends on various attributes. Quoting 'DocBook: The Definitive Guide': 1. If the endterm attribute is specified on xref, the content of the element pointed to by endterm will be used as the text of the cross-reference. 2. Otherwise, if the object pointed to has a specified XRefLabel, the content of that attribute will be used as the cross-reference text.
| * Pass the parsed DocBook content along the state of readDocBookFrerich Raabe2015-09-23
| | | | | | | | | | | | | | | | | | | | | | Having access to the entire document will be needed when handling elements which refer to other elements. This is needed for e.g. <xref> or <link>, both of which reference other elements (by the 'id' attribute) for the label text. I suppose that in practice, the [Content] returned by parseXML always only contains one 'Elem' value -- the document element. However, I'm not totally sure about it, so let's just pass all the Content along.
| * Minor refactoring to readDocBookFrerich Raabe2015-09-23
| | | | | | | | | | | | I plan to use the parsed and normalized XML tree read in readDocBook in other places - prepare that commit by factoring this code out into a separate, shared, definition.
* | Merge pull request #2441 from mb21/polyglossia-langJohn MacFarlane2015-10-10
|\ \ | | | | | | Change variable to polyglossia-lang.name and .options
| * | Change variable to polyglossia-lang.name and .optionsmb212015-10-07
| | | | | | | | | | | | closes #2437
* | | Re-export pandocVersions from Text.Pandoc.John MacFarlane2015-10-10
| | | | | | | | | | | | | | | The actual definition has been moved to Text.Pandoc.Shared, but to avoid breaking changes we reexport it here.
* | | Merge pull request #2426 from alexvong1995/better-man-writerJohn MacFarlane2015-10-10
|\ \ \ | | | | | | | | Better man writer (revised)
| * | | Set the template variable $pandoc-version$ to pandocVersion by default.Alex Vong2015-10-01
| | | | | | | | | | | | | | | | * src/Text/Pandoc/Writers/Man.hs: Set $pandoc-version$ to be pandocVersion.
| * | | Move the variable pandocVersion from `src/Text/Pandoc.hs` toAlex Vong2015-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `src/Text/Pandoc/Shared.hs`, so that all Writers can access this variable without importing `src/Text/Pandoc.hs`, preventing circular import. * pandoc.hs: Import pandocVersion from `Text.Pandoc.Shared`. * src/Text/Pandoc.hs: Remove the definition of pandocVersion and relevant import. * src/Text/Pandoc/Shared.hs: Add the definition of pandocVersion and relevant import.
| * | | Set the template variable $hyphenate$ to true by defaultAlex Vong2015-10-01
| | | | | | | | | | | | | | | | * src/Text/Pandoc/Writers/Man.hs: Set $hyphenate$ to be true.
* | | | LaTeX reader: don't eat excess whitespace after macros.John MacFarlane2015-10-09
| | | | | | | | | | | | | | | | Really close #2446.
* | | | LaTeX reader: don't eat whitespace after macro with only opt arg.John MacFarlane2015-10-09
| |/ / |/| | | | | | | | Closes #2446.
* | | Docx Reader: Parse soft, no-break hyphen elementsOphir Lifshitz2015-10-04
| | |
* | | FIxed typo: Ext_superscript, Ext_subscript.John MacFarlane2015-10-03
| | |
* | | For markdown_mmd, add: implicit_figures, superscripts, subscripts.John MacFarlane2015-10-03
|/ / | | | | | | See #2401.
* | Removed unneeded imports.John MacFarlane2015-09-26
| |
* | MediaBag: ensure that / is always used as path separator.John MacFarlane2015-09-26
| |
* | Merge pull request #2419 from mb21/bidiJohn MacFarlane2015-09-26
|\ \ | | | | | | Support bidirectional text output with XeLaTeX, ConTeXt and HTML
| * | Support bidirectional text output with XeLaTeX, ConTeXt and HTMLmb212015-09-26
| |/ | | | | | | closes #2191
* | Removed unneeded import.John MacFarlane2015-09-26
| |
* | Correctly recognize book documentclass in metadata.John MacFarlane2015-09-25
| | | | | | | | Closes #2395.
* | Markdown reader: handle 'id' and 'class' in parsing key/value attrs.John MacFarlane2015-09-25
| | | | | | | | | | | | | | | | | | | | # Header {id="myid" class="foo bar"} is now equivalent to # Header {#myid .foo .bar} Closes #2396.
* | LaTeX reader: support longtable.John MacFarlane2015-09-23
|/ | | | Closes #2411.
* Merge pull request #2369 from mb21/language-variablesJohn MacFarlane2015-09-22
|\ | | | | `lang` variable is now in BCP47 format
| * `lang` variable is now in BCP47 formatmb212015-08-20
| | | | | | | | strings are converted for LaTeX and ConTeXt output, closes #1614
* | Merge pull request #2406 from tarleb/org-verse-fixJohn MacFarlane2015-09-20
|\ \ | | | | | | Make sure verse blocks can contain empty lines
| * | Make sure verse blocks can contain empty linesAlbert Krewinkel2015-09-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous verse parsing code made the faulty assumption that empty strings are valid (and empty) inlines. This isn't the case, so lines are changed to contain at least a newline. It would generally be nicer and faster to keep the newlines while splitting the string. However, this would require more code, which seems unjustified for a simple (and fairly rare) block as *verse*. This fixes #2402.
* | | [RST Writer] Don't normalize heading levels below input minimumNikolay Yakimov2015-09-19
|/ /
* | Markdown writer: in TOC, add links to headers.John MacFarlane2015-09-17
| | | | | | | | Closes #829.
* | Use user data directory for reference docx archive.John MacFarlane2015-09-09
| | | | | | | | | | This allows the test suite to work without installing pandoc first. It also brings the docx writer in line with the odt writer.
* | Merge pull request #2364 from gbataille/bugDocJohn MacFarlane2015-08-17
|\ \ | |/ |/| [BUG] Haddock : * and ^ to be escaped in docs
| * [BUG] Haddock : * and ^ to be escaped in docsGrégory Bataille2015-08-17
| |
* | RST reader: better handling of indirect roles.John MacFarlane2015-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the parser failed on this kind of case .. role:: indirect(code) .. role:: py(indirect) :language: python :py:`hi` Now it currectly recognizes `:py:` as a code role. The previous test for this didn't work, because the name of the indirect role was the same as the language defined its parent, os it didn't really test for this behavior. Updated test.
* | Merge pull request #2360 from jg/issue-2354John MacFarlane2015-08-15
|\ \ | | | | | | Org reader: add auto identifiers if not present on headers
| * | Org reader: add auto identifiers if not present on headersJuliusz Gonera2015-08-15
| | | | | | | | | | | | | | | | | | | | | Refs #2354 This should also fix the table of contents (--toc) when generating a html file from org input
* | | RST writer: ensure that `\ ` is inserted when needed...John MacFarlane2015-08-13
| | | | | | | | | | | | | | | ...before Cite and Span elements that begin with a "complex" element. Closes jgm/pandoc-citeproc#157.
* | | RST writer: Don't insert `\ ` when complex expression in matched pairs.John MacFarlane2015-08-12
| | | | | | | | | | | | E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
* | | EPUB TOC: replace literal "<br/>" with space.John MacFarlane2015-08-10
| | | | | | | | | | | | Closes #2105.
* | | EPUB reader: stop mangling external URLs.John MacFarlane2015-08-10
| | | | | | | | | | | | | | | | | | | | | Closes #2284. Note the changes to the test suite. In each case, a mangled external link has been fixed, so these are all positive.
* | | Docx writer: Moved invalid character stripping to `formattedString`.John MacFarlane2015-08-10
|/ / | | | | | | | | | | | | | | This avoids an inefficient generic traversal. Updates f3aa03e. Closes #2356.
* | Text.Pandoc: disable auto_identifiers for epub.John MacFarlane2015-08-08
| | | | | | | | | | The epub writer inserts its own auto identifiers; this is more complex due to splitting into "chapter" files.
* | MediaWiki reader: handle unquoted table attributes.John MacFarlane2015-08-08
| | | | | | | | Closes #2355.
* | HTML reader: add auto identifiers if not present on headers.John MacFarlane2015-08-08
| | | | | | | | | | | | | | | | This makes TOC linking work properly. The same thing needs to be done to the org reader to fix #2354; in addition, `Ext_auto_identifiers` should be added to the list of default extensions for org in Text.Pandoc.
* | DocBook reader: handle informalexample.John MacFarlane2015-08-08
| | | | | | | | | | | | It is parsed into a Div with class `informalexample`. Closes #2319.
* | LaTeX reader: Implement \Cite.John MacFarlane2015-08-08
| | | | | | | | See #2335.
* | Merge pull request #2327 from hftf/list-styleJohn MacFarlane2015-08-07
|\ \ | |/ |/| HTML Reader: Correctly parse inline list-style(-type) for <ol>
| * HTML Reader: Detect font-variant with pickStyleAttrPropsOphir Lifshitz2015-07-27
| |
| * HTML Reader: Parse <ol> type, class, and inline list-style(-type) CSSOphir Lifshitz2015-07-24
| |