aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
AgeCommit message (Collapse)AuthorFilesLines
2014-09-29Don't wrap lines in rST line blocks.John MacFarlane1-1/+1
Closes #1656. Fixing pandoc to wrap the lines but insert spaces would be much more complicated. This at least makes the output semantically correct.
2014-09-27Merge pull request #1601 from jkr/windowsfixJohn MacFarlane1-1/+1
Fix path-slashes inside archive for windows
2014-09-27Merge pull request #1589 from mszep/masterJohn MacFarlane1-7/+17
Add function to sanitize ConTeXt labels
2014-09-27Org Reader: Parse multi-inline terms correctly in definition listMatthew Pickering1-1/+1
Closes #1649
2014-09-26Fix 'Ext_lists_without_preceding_blankline' bug.Artyom1-2/+9
* Fixes #1636. * Adds a test.
2014-09-25HTML Reader: Recognise <br> tags inside <pre> blocksmpickering1-1/+6
Closes #1620
2014-09-25HTML Writer: Don't double render when email-obfuscation=nonempickering1-5/+5
Closes #1625
2014-09-25Add support for KaTeX HTML mathmpickering2-0/+20
Closes #1626
2014-09-25HTML Writer: MathML now outputted with tex annotation.mpickering1-1/+15
Closes #1635
2014-09-25Shared: Make collapseFilePath OS-agnosticmpickering1-5/+9
2014-09-25MediaBag: Fixes Windows specific path problemsmpickering1-5/+5
Changes the internal representation to fix the problem. I haven't tested this on windows. Closes #1597
2014-09-18ConTeXt writer: add function toLabelMark Szepieniec1-7/+17
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.
2014-09-11Docx writer: Renumber header and footer relationships to avoid collisions.Jesse Rosenthal1-12/+56
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.
2014-09-09LaTeX writer: Protect graphics in headers.Jesse Rosenthal1-6/+15
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.
2014-09-06Docx Reader: Remove header class properly in other langsJesse Rosenthal1-4/+4
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.
2014-09-05Docx reader: Use polyglot header list.Jesse Rosenthal1-7/+7
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.
2014-09-05Docx Reader: Start list of polyglot section headers.Jesse Rosenthal1-0/+7
2014-09-04Org reader: Added state changing blanklines.Jesse Rosenthal1-1/+8
This allows us to emphasize at the beginning of a new paragraph (or, in general, after blank lines).
2014-09-04Docx reader: Rewrite rewriteLink to work with new headers.Jesse Rosenthal1-9/+4
There could be new top-level headers after making lists, so we have to rewrite links after that.
2014-09-04Docx reader: Single-item headers in ordered lists are headers.Jesse Rosenthal1-4/+6
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.
2014-09-02Docx reader: Fix window path for image lookup.Jesse Rosenthal1-1/+1
Don't use os-sensitive "combine", since we always want the paths in our zip-archive to use forward-slashes.
2014-09-01EPUB writer: Don't include nav node in spine unless --toc was requested.John MacFarlane1-4/+2
Previously we included it in the spine with `linear="no"`, leading to odd results in some readers. Closes #1593.
2014-09-01LaTeX writer: Avoid using reserved characters as \lstinline delimiters.John MacFarlane1-1/+3
Closes #1595.
2014-09-01EPUB writer: Fixed typo.John MacFarlane1-1/+1
2014-08-31Merge pull request #1594 from jkr/itemFixJohn MacFarlane1-2/+12
Item fix
2014-08-31EPUB writer: Extract title even from structured title.John MacFarlane1-7/+21
Added docTitle'.
2014-08-31LaTeX writer: Put `~` before header in item text.Jesse Rosenthal1-2/+12
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.
2014-08-31Markdown reader: better handling of paragraph in div.John MacFarlane1-0/+7
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.
2014-08-31EPUB writer: Don't use opf:title-type for epub2.John MacFarlane1-2/+2
It is not supported and epubcheck complains.
2014-08-31Shared: Moved import of toChunks outside of conditional.John MacFarlane1-1/+1
Closes #1590.
2014-08-30DokuWiki writer: Make tables prettier by aligning columns.John MacFarlane1-40/+22
Also cleaned up crufty code and added tests.
2014-08-30DokuWiki writer: Handle table cell alignments.John MacFarlane1-27/+19
Closes #1566.
2014-08-30Textile reader: Improved table support.John MacFarlane1-4/+13
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.
2014-08-30PDF: Catch errors in conversion of images and display message.John MacFarlane1-8/+14
See #1582.
2014-08-30Merge branch 'mime' of https://github.com/Aelve/John into Aelve-mimeJohn MacFarlane8-51/+67
Conflicts: src/Text/Pandoc/Writers/Docx.hs
2014-08-30Merge pull request #1580 from jkr/stringCellDokuWikiJohn MacFarlane1-10/+36
DokuWiki writer: Backslash newlines in table cells
2014-08-30DokuWiki writer: Use backslash newlines in table cells.Jesse Rosenthal1-10/+36
Write out strings in table cells with backslash linebreaks in place of newlines. We also want to remove the first two spaces of an indent in lists.
2014-08-29Merge pull request #1574 from jlduran/latex-horizontal-ruleJohn MacFarlane1-1/+1
LaTeX writer: Make Horizontal Rules more flexible
2014-08-29Merge branch 'ugly-tables' of https://github.com/jlduran/pandoc into ↵John MacFarlane1-5/+13
jlduran-ugly-tables
2014-08-29LaTeX writer: Add `\strut` to fix multiline tablesJose Luis Duran1-1/+2
See: http://tex.stackexchange.com/questions/34971
2014-08-28Docx Reader: Read single para in table cell as plainJesse Rosenthal1-1/+12
This makes to docx reader's native output fit with the way the markdown reader understands its markdown output. Ie, as far as table cells go: docx -> native == docx -> native -> markdown -> native (This identity isn't true for other things outside of table cells, of course).
2014-08-28LaTeX writer: Make Horizontal Rules more flexibleJose Luis Duran1-1/+1
Currently, pandoc has hard-coded the following in order to make horizontal rules in LaTeX: ```hs "\\begin{center}\\rule{3in}{0.4pt}\\end{center}" ``` Which is fine, but does not allow customizations. It also does not take into consideration the current line width. I'm proposing this change: ```diff @@ In Writers/LaTeX.hs: -"\\begin{center}\\rule{3in}{0.4pt}\\end{center}" +"\\begin{center}\\rule{0.5\\linewidth}{\\linethickness}\\end{center}" ```
2014-08-28LaTeX writer: Fix tablesJose Luis Duran1-4/+11
- [x] Fix a bug introduced in 66378062b622b0815a1a2ddce5d557e3ad13330c, which causes the table caption to repeat across all pages - [x] Address the issues discussed [here](https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J) regarding the extra vertical space. - [ ] NOTE: This will cause multiline table cells to appear unpadded. See http://tex.stackexchange.com/questions/34971 - [x] Use [`\tabularnewline`](http://tex.stackexchange.com/questions/78796) instead of `\\`.
2014-08-27DokuWiki Writer: Refactor to use Reader monadMatthew Pickering1-47/+56
2014-08-27DokuWiki Writer: Hlint cleanupMatthew Pickering1-27/+27
2014-08-27DokuWiki Writer: Qualified all importsMatthew Pickering1-5/+10
2014-08-26Merge pull request #1564 from jkr/trackChangesWriterJohn MacFarlane1-11/+57
Docx writer: write track changes.
2014-08-26Fixed exampleLine parser to accept example lines which have indentation at ↵Calvin Beck1-1/+1
the start of the line.
2014-08-26Docx writer: Accomodate GHC 7.4 (no lookupEnv)Jesse Rosenthal1-1/+1
2014-08-25Docx writer: Default to user login and time of change if not given.Jesse Rosenthal1-6/+21