aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-08-15Docx writer: test for custom styles.Jesse Rosenthal4-0/+18
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.
2016-08-15Docx writer tests: allow for altered round tripJesse Rosenthal1-40/+49
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.
2016-08-15Add discussion of custom styles to MANUAL.txt.Jesse Rosenthal1-0/+48
2016-08-15Docx Writer: change dynamic style keyJesse Rosenthal1-1/+1
Use "custom-style" instead of "docx-style." This allows it to be used in other formats like ODT in the future.
2016-08-15Docx writer: Inject text properties as well.Jesse Rosenthal1-3/+20
2016-08-15Docx Writer: Keep track of dynamic text props too.Jesse Rosenthal1-0/+3
2016-08-15Docx writer: Allow dynamic styles on spans.Jesse Rosenthal1-1/+5
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.
2016-08-15Docx writer: Inject new paragraph propertiesJesse Rosenthal1-4/+23
This injects new dynamic paragraph properties to be into the style file. Nothing occurs if the prop already exists in the style file.
2016-08-15StyleMap: export functions on StyleMap instancesJesse Rosenthal1-0/+2
We're going to want `getMap` in the Docx Writer.
2016-08-15Docx Writer: Have state keep track of dynamic styles.Jesse Rosenthal1-2/+6
We want to be able to inject these into our styles.xml.
2016-08-13Docx Writer: Implement user-defined styles.Jesse Rosenthal1-0/+6
Divs with a "docx-style" key in the attributes will apply the corresponding key to the contained blocks.
2016-08-13Docx parser: Use xml convenience functionsJesse Rosenthal1-38/+27
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.
2016-08-11Merge pull request #3048 from tarleb/latex-mini-fixJohn MacFarlane1-1/+1
LaTeX reader: drop duplicate `*` in bibtexKeyChars
2016-08-11Added `themeoptions` variable to beamer template (Carsten Gips).John MacFarlane2-7/+10
2016-08-10Tell where to get tarball in INSTALL.John MacFarlane1-0/+26
See #3062.
2016-08-09Merge pull request #3065 from tarleb/org-verse-indentJohn MacFarlane2-1/+18
Org reader: preserve indentation of verse lines
2016-08-09Merge pull request #3067 from tarleb/org-figure-bugfixJohn MacFarlane4-48/+62
Org reader: ensure image sources are proper links
2016-08-09Org reader: ensure image sources are proper linksAlbert Krewinkel4-48/+62
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.
2016-08-08Org reader: preserve indentation of verse linesAlbert Krewinkel2-1/+18
Leading spaces in verse lines are converted to non-breaking spaces, so indentation is preserved. This fixes #3064.
2016-08-06MediaWiki reader: properly interpret XML tags in pre environments.John MacFarlane1-3/+2
They are meant to be interpreted as literal text in textile. Closes #3042.
2016-08-06Improved mediawiki reader's treatment of verbatim constructions.John MacFarlane1-7/+13
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.
2016-08-06Fix for unquoted attribute values in mediawiki tables.John MacFarlane1-1/+1
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).
2016-08-06Fix out of index error in handleErrorMatthew Pickering1-4/+8
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.
2016-08-06Added `beamerarticle` variable.John MacFarlane2-7/+11
This causes the `beamerarticle` package to be loaded in beamer, to produce an article from beamer slides. (Carsten Gips)
2016-08-06LaTeX writer: don't use * for unnumbered paragraph, subparagraph.John MacFarlane1-2/+2
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.
2016-07-29LaTeX reader: drop duplicate `*` in bibtexKeyCharsAlbert Krewinkel1-1/+1
2016-07-28Merge pull request #3045 from mortonfox/patch-1John MacFarlane1-2/+2
Fix the LaTeX and EPUB links
2016-07-29Fix the LaTeX and EPUB linksMorton Fox1-2/+2
Parenthesized items following [ ] links need to be escaped. Otherwise, those will be turned into the URLs for those links.
2016-07-26Added texmath 0.8.6.5.John MacFarlane1-0/+1
2016-07-24Use texmath 0.8.6.5. Closes #3040.John MacFarlane5-1/+5
2016-07-23Fixed stack.full.yaml.John MacFarlane1-0/+6
2016-07-23Merge pull request #3038 from tarleb/patch-1John MacFarlane1-1/+1
Use http to access online documentation
2016-07-23Use http to access online documentationAlbert Krewinkel1-1/+1
The link to the online manual used the `https` schema, which doesn't work for this resource. Changed to `http`.
2016-07-22Fixed appveyor badgeJohn MacFarlane1-1/+1
2016-07-22Added appveyor badgeJohn MacFarlane1-0/+1
2016-07-22Fix MANUAL.txt path in make-windows-installer.txt.John MacFarlane1-1/+1
2016-07-22Merge pull request #3033 from tarleb/github-readmeJohn MacFarlane12-26/+145
PoC: GitHub-optimized README
2016-07-22Textile reader: disallow empty URL in explicit link.John MacFarlane3-1/+4
Closes #3036.
2016-07-22Added test for extended code block in textile.John MacFarlane2-0/+7
Closes #3037.
2016-07-22Textile reader: support `bc..` extended code blocks.John MacFarlane3-15/+33
Also, remove trailing newline in code blocks (consistently with Markdown reader).
2016-07-22Removed flag setting for texmath in stack.full.yaml.John MacFarlane1-2/+0
2016-07-21stack.full.yaml - only build pandoc, pandoc-types, pandoc-citeproc.John MacFarlane1-4/+0
2016-07-21Updated stack.full.yaml.John MacFarlane1-3/+6
2016-07-21make_deb.sh: get pandoc-citeproc LICENSE from github.John MacFarlane1-1/+1
2016-07-21make_deb.sh: get pandoc-citeproc.1 directly from github.John MacFarlane1-10/+5
2016-07-21deb Vagrantfile: install curl.John MacFarlane1-1/+1
2016-07-20Small changes in debian package creation.John MacFarlane2-3/+2
Use more recent resolver, no longer need custom stack.yaml for hsb2hs
2016-07-20Add Github-friendly README.mdAlbert Krewinkel1-0/+119
2016-07-20Rename README to MANUAL.txtAlbert Krewinkel11-26/+26
2016-07-20LaTeX reader: be more forgiving of non-standard characters.John MacFarlane1-1/+1
E.g. `^` outside of math. Some custom environments give these a meaning, so we should try not to fall over when we encounter them.