summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Parsing: fixed `inlineMath` so it handles `\text{..}` containing `$`.John MacFarlane2014-10-19
| | | | For example: `$x = \text{the $n$th root of $y$}`. Closes #1677.
* Markdown reader: allow `startnum` to work without `fancy_lists`.John MacFarlane2014-10-18
| | | | | Formerly `pandoc -f markdown-fancy_lists+startnum` did not work properly.
* Merge pull request #1680 from shelf/masterJohn MacFarlane2014-10-18
|\ | | | | Respect indent when parsing Org bullet lists
| * Fix indent issue for definition listsTimothy Humphries2014-10-17
| | | | | | | | | | Tidy up fix for #1650, #1698 as per comments in #1680. Fix same issue for definition lists with the same method.
| * Respect indent when parsing Org bullet listsTimothy Humphries2014-10-12
| | | | | | | | | | | | | | | | | | | | Fixes issue with top-level bullet list parsing. Previously we would use `many1 spaceChars` rather than respecting the list's indent level. We also permitted `*` bullets on unindented lists, which should unambiguously parse as `header 1`. Combined, this meant headers at a different indent level were being unwittingly slurped into preceding bullet lists, as per Issue #1650.
* | Merge pull request #1700 from tarleb/org-emphasis-fixJohn MacFarlane2014-10-18
|\ \ | | | | | | Org reader: fix rules for emphasis recognition
| * | Org reader: fix rules for emphasis recognitionAlbert Krewinkel2014-10-18
| |/ | | | | | | | | | | | | | | Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised strings. This is wrong, as `,` and `'` are forbidden border chars and may not occur on the inner border of emphasized text. This patch enables the reader to matches the reference implementation in that it reads the above strings as plain text.
* / Org reader: Drop COMMENT document treesAlbert Krewinkel2014-10-18
|/ | | | | | | | Document trees under a header starting with the word `COMMENT` are comment trees and should not be exported. Those trees are dropped silently. This closes #1678.
* Merge pull request #1674 from freiric/masterJohn MacFarlane2014-10-08
|\ | | | | fix inDirectory to reset to the original directory in case an exception ...
| * fix inDirectory to reset to the original directory in case an exception occursFreiric Barral2014-10-08
| |
* | EPUB reader: Further URI handling improvements.John MacFarlane2014-10-08
| | | | | | | | | | | | | | | | | | | | Now we outsource most of the work to `fetchItem'`. Also, do not include queries in file extensions. Improves fix to #1671. It is possible that this will have some unexpected effects, so further testing would be good.
* | EPUB writer: correctly resolve relative URIs. (Closes #1671.)John MacFarlane2014-10-08
| |
* | Fixed absolute URI detection in EPUB writer. Closes #1672.John MacFarlane2014-10-08
|/
* EPUB writer: Don't add sourceURL to absolute URIs!John MacFarlane2014-10-08
| | | | | | | | | | | | | | | | | | | | | | | Closes #1669. If there are further issues, please open a new, targeted issue on the tracker. Some notes on the further issues you gestured at: Data URIs are indeed dereferenced, but why is this a problem? (The function being used to fetch from URLs is used for many different formats. Preserving data URIs would make sense in EPUBs, but not for e.g. PDF output. And by dereferencing we can get a smaller, more efficient EPUB, with the data stored as bytes in a file rather than encoded in textual representation.) "absolute uris are not recognized" -- I assume that is the problem just fixed. If not, please open a new issue. "relative uris are resolved (wrongly) like file paths" -- can you give an example? `<base>` tag is ignored. Yes. I didn't know about the base tag. Could you open a new issue just for this?
* add mime type for WebVTTJason Ronallo2014-10-04
|
* Added `track` to list of tags treated by `--self-contained`.John MacFarlane2014-10-04
| | | | Closes #1664.
* RST writer: Wrap line blocks with spaces before continuations.John MacFarlane2014-09-30
| | | | Improves on fix to #1656.
* Don't wrap lines in rST line blocks.John MacFarlane2014-09-29
| | | | | | | | Closes #1656. Fixing pandoc to wrap the lines but insert spaces would be much more complicated. This at least makes the output semantically correct.
* Merge pull request #1601 from jkr/windowsfixJohn MacFarlane2014-09-27
|\ | | | | Fix path-slashes inside archive for windows
| * Docx reader: Fix window path for image lookup.Jesse Rosenthal2014-09-02
| | | | | | | | | | Don't use os-sensitive "combine", since we always want the paths in our zip-archive to use forward-slashes.
* | Merge pull request #1589 from mszep/masterJohn MacFarlane2014-09-27
|\ \ | | | | | | Add function to sanitize ConTeXt labels
| * | ConTeXt writer: add function toLabelMark Szepieniec2014-09-18
| | | | | | | | | | | | | | | | | | | | | | | | This function can be used to sanitize reference labels so that they do not contain any of the illegal characters \#[]",{}%()|= . Currently only Links have their labels sanitized, because they are the only Elements that use passed labels.
* | | Org Reader: Parse multi-inline terms correctly in definition listMatthew Pickering2014-09-27
| | | | | | | | | | | | Closes #1649
* | | HTML Reader: Recognise <br> tags inside <pre> blocksmpickering2014-09-25
| | | | | | | | | | | | Closes #1620
* | | HTML Writer: Don't double render when email-obfuscation=nonempickering2014-09-25
| | | | | | | | | | | | Closes #1625
* | | Add support for KaTeX HTML mathmpickering2014-09-25
| | | | | | | | | | | | Closes #1626
* | | HTML Writer: MathML now outputted with tex annotation.mpickering2014-09-25
| | | | | | | | | | | | Closes #1635
* | | Shared: Make collapseFilePath OS-agnosticmpickering2014-09-25
| | |
* | | MediaBag: Fixes Windows specific path problemsmpickering2014-09-25
| | | | | | | | | | | | | | | | | | | | | | | | Changes the internal representation to fix the problem. I haven't tested this on windows. Closes #1597
* | | Docx writer: Renumber header and footer relationships to avoid collisions.Jesse Rosenthal2014-09-11
| | | | | | | | | | | | | | | | | | We previously took the old relationship names of the headers and footer in secptr. That led to collisions. We now make a map of availabl names in the relationships file, and then rename in secptr.
* | | LaTeX writer: Protect graphics in headers.Jesse Rosenthal2014-09-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed. This adds a state value and manually turns it on before every invocation of `sectionHeader` and manually turns it off after. Using a writer value and applying `local` would probably be cleaner, but this fits with the current style.
* | | Docx Reader: Remove header class properly in other langsJesse Rosenthal2014-09-06
| | | | | | | | | | | | | | | | | | When we encounter one of the polyglot header styles, we want to remove that from the par styles after we convert to a header. To do that, we have to keep track of the style name, and remove it appropriately.
* | | Docx reader: Use polyglot header list.Jesse Rosenthal2014-09-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're just keeping a list of header formats that different languages use as their default styles. At the moment, we have English, German, Danish, and French. We can continue to add to this. This is simpler than parsing the styles file, and perhaps less error-prone, since there seems to be some variations, even within a language, of how a style file will define headers.
* | | Docx Reader: Start list of polyglot section headers.Jesse Rosenthal2014-09-05
| | |
* | | Org reader: Added state changing blanklines.Jesse Rosenthal2014-09-04
| | | | | | | | | | | | | | | This allows us to emphasize at the beginning of a new paragraph (or, in general, after blank lines).
* | | Docx reader: Rewrite rewriteLink to work with new headers.Jesse Rosenthal2014-09-04
| | | | | | | | | | | | | | | There could be new top-level headers after making lists, so we have to rewrite links after that.
* | | Docx reader: Single-item headers in ordered lists are headers.Jesse Rosenthal2014-09-04
| | | | | | | | | | | | | | | When users number their headers, Word understands that as a single item enumerated list. We make the assumption that such a list is, in fact, a header.
* | | EPUB writer: Don't include nav node in spine unless --toc was requested.John MacFarlane2014-09-01
| | | | | | | | | | | | | | | | | | | | | Previously we included it in the spine with `linear="no"`, leading to odd results in some readers. Closes #1593.
* | | LaTeX writer: Avoid using reserved characters as \lstinline delimiters.John MacFarlane2014-09-01
| | | | | | | | | | | | Closes #1595.
* | | EPUB writer: Fixed typo.John MacFarlane2014-09-01
| |/ |/|
* | Merge pull request #1594 from jkr/itemFixJohn MacFarlane2014-08-31
|\ \ | | | | | | Item fix
| * | LaTeX writer: Put `~` before header in item text.Jesse Rosenthal2014-08-31
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Because of the built-in line skip, LaTeX can't handle a section header as the first element in a list item. (To be precise, it can't handle it if the list immediately follows a section header, but the instance is rare enough that we can afford to be a bit more general). This puts a non-breaking space before the header to solve this problem. We won't see this space, since the header skips a line before printing anyway. The output is ugly in LaTeX and this structure seems like it should probably be avoided. But it is valid HTML and native pandoc, so we should have some sort of typesettable representation in LaTeX.
* | EPUB writer: Extract title even from structured title.John MacFarlane2014-08-31
| | | | | | | | Added docTitle'.
* | Markdown reader: better handling of paragraph in div.John MacFarlane2014-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously text that ended a div would be parsed as Plain unless there was a blank line before the closing div tag. Test case: <div class="first"> This is a paragraph. This is another paragraph. </div> Closes #1591.
* | EPUB writer: Don't use opf:title-type for epub2.John MacFarlane2014-08-31
| | | | | | | | It is not supported and epubcheck complains.
* | Shared: Moved import of toChunks outside of conditional.John MacFarlane2014-08-31
|/ | | | Closes #1590.
* DokuWiki writer: Make tables prettier by aligning columns.John MacFarlane2014-08-30
| | | | Also cleaned up crufty code and added tests.
* DokuWiki writer: Handle table cell alignments.John MacFarlane2014-08-30
| | | | Closes #1566.
* Textile reader: Improved table support.John MacFarlane2014-08-30
| | | | | | | | We can now handle all different alignment types, for simple tables only (no captions, no relative widths, cell contents just plain inlines). Other tables are still handled using raw HTML. Addresses #1585 as far as it can be addresssed, I believe.
* PDF: Catch errors in conversion of images and display message.John MacFarlane2014-08-30
| | | | See #1582.