summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Docx reader: test for nested anchor spans in headerJesse Rosenthal2016-08-29
| | | | | This ensures that anchor spans in header with content (or with other anchor spans inside) will resolve to links to a header id properly.
* Docx reader: update copyright.Jesse Rosenthal2016-08-28
|
* Docx reader: use all anchor spans for header ids.Jesse Rosenthal2016-08-28
| | | | | | | | Previously we only used the first anchor span to affect header ids. This allows us to use all the anchor spans in a header, whether they're nested or not. Along with 62882f97, this closes #3088.
* Docx reader: Let headers use exisiting id.Jesse Rosenthal2016-08-28
| | | | | | Previously we always generated an id for headers (since they wouldn't bring one from Docx). Now we let it use an existing one if possible. This should allow us to recurs through anchor spans.
* Docx reader: Handle anchor spans with content in headers.Jesse Rosenthal2016-08-28
| | | | | | | | | Previously, we would only be able to figure out internal links to a header in a docx if the anchor span was empty. We change that to read the inlines out of the first anchor span in a header. This still leaves another problem: what to do if there are multiple anchor spans in a header. That will be addressed in a future commit.
* Man writer: allow section numbers that are not a single digit.John MacFarlane2016-08-27
| | | | Closes #3089.
* Org writer: translate language identifiersAlbert Krewinkel2016-08-20
| | | | | | | Pandoc and Org-mode use different programming language identifiers. An additional translation between those identifiers is added to avoid unexpected behavior. This fixes a problem where language specific source code would sometimes be output as example code.
* Allow aeson 1.0.*.John MacFarlane2016-08-20
|
* Note in MANUAL that `--katex` works best with `html5`.John MacFarlane2016-08-20
| | | | Closes #3077.
* MANUAL: fix up custom-style documentation.Jesse Rosenthal2016-08-20
| | | | | | | | * Remove nitty-gritty details about custom-style filters (it won't make sense to readers unfamiliar with filters, and would be obvious to users already familiar with them). * Fix a capitalization.
* Merge pull request #3074 from waldyrious/patch-1John MacFarlane2016-08-20
|\ | | | | synchronize spacing of footnotes in help output
| * synchronize spacing of footnotes in help outputWaldir Pimenta2016-08-16
| | | | | | | | - remove a space between `[` and `*` in the list of input formats, to match the list of output formats - add space after the `*`s, for improved readability
* | Merge branch 'org-figure-fix'Albert Krewinkel2016-08-18
|\ \ | |/ |/|
| * Org writer: ensure link targets are paths or URLsAlbert Krewinkel2016-08-18
| | | | | | | | | | | | Org-mode treats links as document internal searches unless the link target looks like a URL or file path, either relative or absolute. This change ensures that this is always the case.
| * Org writer: ensure blank line after figureAlbert Krewinkel2016-08-18
| | | | | | | | | | | | An Org-mode figure should be surrounded by blank lines. The figure would be recognized regardless, but images in the following line would unintentionally be treated as figures as well.
| * Org writer: remove blank line after figure captionAlbert Krewinkel2016-08-18
|/ | | | | Org-mode only treats an image as a figure if it is directly preceded by a caption.
* MANUAL: fix some whitespace issues.Jesse Rosenthal2016-08-15
|
* Docx writer test: comment out function to make compiler happy.Jesse Rosenthal2016-08-15
|
* Docx writer: test for custom styles.Jesse Rosenthal2016-08-15
| | | | | | | | This just tests whether a custom style with a recognizable style (italic etc, defined in a reference.docx) will roundtrip back to that format (i.e., whether `<span custom-style="Emphasized">` will roundtrip to `Emph`). The custom styles are defined in the `custom-style-reference.docx` included in the docx dir.
* Docx writer tests: allow for altered round tripJesse Rosenthal2016-08-15
| | | | | | Sometimes we will want to get back something different than we started with in a round-trip test. This allows for that, and makes the perfect roundtrip a special case.
* Add discussion of custom styles to MANUAL.txt.Jesse Rosenthal2016-08-15
|
* Docx Writer: change dynamic style keyJesse Rosenthal2016-08-15
| | | | | Use "custom-style" instead of "docx-style." This allows it to be used in other formats like ODT in the future.
* Docx writer: Inject text properties as well.Jesse Rosenthal2016-08-15
|
* Docx Writer: Keep track of dynamic text props too.Jesse Rosenthal2016-08-15
|
* Docx writer: Allow dynamic styles on spans.Jesse Rosenthal2016-08-15
| | | | | | This enables dynamic styling on spans. It uses the same prefix as we used on divs ("docx-style" for the moment). It does not yet inject the style into styles.xml.
* Docx writer: Inject new paragraph propertiesJesse Rosenthal2016-08-15
| | | | | This injects new dynamic paragraph properties to be into the style file. Nothing occurs if the prop already exists in the style file.
* StyleMap: export functions on StyleMap instancesJesse Rosenthal2016-08-15
| | | | We're going to want `getMap` in the Docx Writer.
* Docx Writer: Have state keep track of dynamic styles.Jesse Rosenthal2016-08-15
| | | | We want to be able to inject these into our styles.xml.
* Docx Writer: Implement user-defined styles.Jesse Rosenthal2016-08-13
| | | | | Divs with a "docx-style" key in the attributes will apply the corresponding key to the contained blocks.
* Docx parser: Use xml convenience functionsJesse Rosenthal2016-08-13
| | | | | | The functions `isElem` and `elemName` (defined in Docx/Util.hs) make the code a lot cleaner than the original XML.Light functions, but they had been used inconsistently. This puts them in wherever applicable.
* Merge pull request #3048 from tarleb/latex-mini-fixJohn MacFarlane2016-08-11
|\ | | | | LaTeX reader: drop duplicate `*` in bibtexKeyChars
| * LaTeX reader: drop duplicate `*` in bibtexKeyCharsAlbert Krewinkel2016-07-29
| |
* | Added `themeoptions` variable to beamer template (Carsten Gips).John MacFarlane2016-08-11
| |
* | Tell where to get tarball in INSTALL.John MacFarlane2016-08-10
| | | | | | | | See #3062.
* | Merge pull request #3065 from tarleb/org-verse-indentJohn MacFarlane2016-08-09
|\ \ | | | | | | Org reader: preserve indentation of verse lines
| * | Org reader: preserve indentation of verse linesAlbert Krewinkel2016-08-08
| | | | | | | | | | | | | | | | | | | | | Leading spaces in verse lines are converted to non-breaking spaces, so indentation is preserved. This fixes #3064.
* | | Merge pull request #3067 from tarleb/org-figure-bugfixJohn MacFarlane2016-08-09
|\ \ \ | |/ / |/| | Org reader: ensure image sources are proper links
| * | Org reader: ensure image sources are proper linksAlbert Krewinkel2016-08-09
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Image sources as those in plain images, image links, or figures, must be proper URIs or relative file paths to be recognized as images. This restriction is now enforced for all image sources. This also fixes the reader's usage of uncleaned image sources, leading to `file:` prefixes not being deleted from figure images (e.g. `[[file:image.jpg]]` leading to a broken image `<img src="file:image.jpg"/>) Thanks to @bsag for noticing this bug.
* | MediaWiki reader: properly interpret XML tags in pre environments.John MacFarlane2016-08-06
| | | | | | | | | | They are meant to be interpreted as literal text in textile. Closes #3042.
* | Improved mediawiki reader's treatment of verbatim constructions.John MacFarlane2016-08-06
| | | | | | | | | | | | | | | | Previously these yielded strings of alternating Code and Space elements; we now incorporate the spaces into the Code. Emphasis etc. is still possible inside these. Closes #3055.
* | Fix for unquoted attribute values in mediawiki tables.John MacFarlane2016-08-06
| | | | | | | | | | | | | | | | | | Previously an unquoted attribute value in a table row could cause parsing problems. Fixes #3053 (well, proper rowspans and colspans aren't created, but that's a bigger limitation with the current Pandoc document model for tables).
* | Fix out of index error in handleErrorMatthew Pickering2016-08-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the latex parser when includes are processed, the text of the included file is directly included into the parse stream. This caused problems when there was an error in the included file (and the included file was longer than the original file) as the error would be reported at this position. The error handling tries to display the line and position where the error occured. It works by including a copy of the input and finding the place in the input when given the position of the error. In the previously described scenario, the input file would be the original source file but the error position would be the position of the error in the included file. The fix is to not try to show the exact line when it would cause an out-of-bounds error.
* | Added `beamerarticle` variable.John MacFarlane2016-08-06
| | | | | | | | | | | | This causes the `beamerarticle` package to be loaded in beamer, to produce an article from beamer slides. (Carsten Gips)
* | LaTeX writer: don't use * for unnumbered paragraph, subparagraph.John MacFarlane2016-08-06
|/ | | | | | | The starred variants don't exist. This helps with part of #3058...it gets rid of the spurious *s. But we still have numbers on the 4th and 5th level headers.
* Merge pull request #3045 from mortonfox/patch-1John MacFarlane2016-07-28
|\ | | | | Fix the LaTeX and EPUB links
| * Fix the LaTeX and EPUB linksMorton Fox2016-07-29
|/ | | Parenthesized items following [ ] links need to be escaped. Otherwise, those will be turned into the URLs for those links.
* Added texmath 0.8.6.5.John MacFarlane2016-07-26
|
* Use texmath 0.8.6.5. Closes #3040.John MacFarlane2016-07-24
|
* Fixed stack.full.yaml.John MacFarlane2016-07-23
|
* Merge pull request #3038 from tarleb/patch-1John MacFarlane2016-07-23
|\ | | | | Use http to access online documentation