summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
Commit message (Collapse)AuthorAge
* Merge pull request #2927 from tarleb/org-attr-htmlJohn MacFarlane2016-05-19
|\ | | | | Org reader support for ATTR_HTML statements
| * Org reader: add support for ATTR_HTML attributesAlbert Krewinkel2016-05-19
| | | | | | | | | | | | | | | | | | | | | | Arbitrary key-value pairs can be added to some block types using a `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these when exporting to HTML, but since we cannot make this distinction here, the attributes are always added. The functionality is now supported for figures. This closes #1906.
| * Org reader: use custom `anyLine`Albert Krewinkel2016-05-19
| | | | | | | | | | | | | | | | | | | | | | | | | | Additional state changes need to be made after a newline is parsed, otherwise markup may not be recognized correctly. This fixes a bug where markup after certain block-types would not be recognized. E.g. `/emph/` in the following snippet was not parsed as emphasized. foo # comment /emph/
| * Org reader: refactor block attribute handlingAlbert Krewinkel2016-05-19
| | | | | | | | | | | | | | A parser state attribute was used to keep track of block attributes defined in meta-lines. Global state is undesirable, so block attributes are no longer saved as part of the parser state. Old functions and the respective part of the parser state are removed.
* | EPUB reader: unescape URIs in spine.John MacFarlane2016-05-17
| | | | | | | | | | | | | | This should fix #2924. Testing on the epub that caused the problem originally would be welcome.
* | LaTeX writer: Don't escape underscore in labels.John MacFarlane2016-05-17
|/ | | | | | Previously they were escaped as ux5f. Closes #2921.
* Merge pull request #2894 from sid-kap/rst-code-classJohn MacFarlane2016-05-12
|\ | | | | Add class option for code block in RST reader
| * Add class option for code block in RST readerSidharth Kapur2016-05-01
| | | | | | | | | | According to http://docutils.sourceforge.net/docs/ref/rst/directives.html#code, the code directive supports the ":class:" option.
* | Merge pull request #2913 from jlduran/strut-minipage-tablesJohn MacFarlane2016-05-11
|\ \ | | | | | | Retake on strut with \minipage inside tables
| * | Retake on strut with \minipage inside tablesJose Luis Duran2016-05-11
| | | | | | | | | | | | | | | | | | | | | Reimplement on 4c684561ee0665b014e887ae559b7020e4e9f2d3 The problem with 4c68456 was a space between the cell contents and the `\strut` that affected the alignment.
* | | Merge pull request #2912 from tarleb/org-export-settingsJohn MacFarlane2016-05-11
|\ \ \ | |/ / |/| | Org reader: basic support for export settings
| * | Org reader: parse but ignore export optionsAlbert Krewinkel2016-05-11
| | | | | | | | | | | | All known export options are parsed but ignored.
| * | Org reader: add support for sub/superscript export optionsAlbert Krewinkel2016-05-11
| | | | | | | | | | | | | | | | | | Org-mode allows to specify export settings via `#+OPTIONS` lines. Disabling simple sub- and superscripts is one of these export options, this options is now supported.
| * | Org reader: move parser state into separate moduleAlbert Krewinkel2016-05-11
| | | | | | | | | | | | | | | The org reader code has become large and confusing. Extracting smaller parts into submodules should help to clean things up.
* | | Avoid lazy foldl in LaTeX writer.John MacFarlane2016-05-09
|/ /
* | Merge pull request #2907 from tarleb/org-fixesJohn MacFarlane2016-05-09
|\ \ | | | | | | Org fixes (reader and writer)
| * | Org writer: print empty table rowsAlbert Krewinkel2016-05-09
| | | | | | | | | | | | | | | Empty table rows should not be dropped from the output, so row-height is always set to be at least 1.
| * | Org reader: fix inline-LaTeX regressionAlbert Krewinkel2016-05-09
| | | | | | | | | | | | | | | | | | | | | The last fix for whitespace handling of inline LaTeX commands was incorrect, preventing correct recognition of inline LaTeX commands which contain spaces. This fix ensures that only trailing whitespace is cut off.
* | | Allow spaces before '!' in MediaWiki table headerroblabla2016-05-09
|/ /
* | Merge pull request #2898 from tarleb/org-table-refactoringJohn MacFarlane2016-05-05
|\ \ | | | | | | Org reader: table parsing code refactoring and fixes
| * | Org reader: fix handling of empty table cells, rowsAlbert Krewinkel2016-05-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes Org mode parsing of some corner cases regarding empty cells and rows. Empty cells weren't parsed correctly, e.g. `|||` should be two empty cells, but would be parsed as a single cell containing a pipe character. Empty rows where parsed as alignment rows and dropped from the output. This fixes #2616.
| * | Org reader: refactor rows-to-table conversionAlbert Krewinkel2016-05-04
| | | | | | | | | | | | | | | This refactores the codes conversing a list table lines to an org table ADT. The old code was simplified and is now slightly less ugly.
| * | Org reader: stop padding short table rowsAlbert Krewinkel2016-05-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Emacs Org-mode doesn't add any padding to table rows. The first row (header or first body row) is used to determine the column count, no other magic is performed. The org reader was padding rows to the length of the longest table row. This was done due to a misunderstanding of how Org handles tables. This feature reflected how Org-mode handles tables when pressing <TAB>. The Org exporter however, which is what the reader should implement, doesn't do any of this. So this was a mis-feature that made the reader more complex and reduced comparability. It was hence removed.
* | | Org reader: fix spacing after LaTeX-style symbolsAlbert Krewinkel2016-05-04
|/ / | | | | | | | | | | | | | | The org-reader was droping space after unescaped LaTeX-style symbol commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä` instead. This seems to be because the LaTeX-reader treats the command-terminating space as part of the command. Dropping the trailing space from the symbol-command fixes this issue.
* | Merge pull request #2890 from bcdevices/docbook5-writerJohn MacFarlane2016-05-01
|\ \ | |/ |/| Docbook5 write support
| * Docbook5 writer: Properly handle ulink/linkIvo Clarysse2016-04-29
| |
| * Write out Docbook 5 namespaceIvo Clarysse2016-04-29
| |
| * Add docbook5 writer supportIvo Clarysse2016-04-29
| |
* | Binary fmts throw PandocError on zip-archive failJesse Rosenthal2016-05-01
| | | | | | | | | | Commit 91dc3342 made `readDocx` throw PandocError if there was an unarchiving error. This extends that fix to `readOdt` and `readEPUB`.
* | LaTeX writer: use {} around options containing special chars.John MacFarlane2016-05-01
| | | | | | | | Closes #2892.
* | Docx Reader: Throw PandocError on unzip failureJesse Rosenthal2016-05-01
| | | | | | | | | | | | Previously, readDocx would error out if zip-archive failed. We change the archive extraction step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
* | HTML writer: ensure mathjax link is added when math appears in footnote.John MacFarlane2016-04-29
|/ | | | | | | Previously if a document only had math in a footnote, the MathJax link would not be added. Closes #2881.
* Revert "LaTeX writer: Add `\strut` to fix multiline tables"John MacFarlane2016-04-27
| | | | | | | | | This reverts commit 4c684561ee0665b014e887ae559b7020e4e9f2d3. See https://groups.google.com/d/msg/pandoc-discuss/u6J-_aCProU/UufN3IYRAgAJ This should fix uneven spacing issues in multiline tables.
* Merge pull request #2735 from mb21/patch-1John MacFarlane2016-04-26
|\ | | | | LaTeX Writer: fix polyglossia to babel env mapping
| * LaTeX Writer: fix polyglossia to babel env mappingMauro Bieg2016-03-20
| | | | | | | | allow for optional argument in square brackets, closes #2728
* | Merge pull request #2829 from adunning/patch-1John MacFarlane2016-04-26
|\ \ | | | | | | LaTeX writer: Add missing languages.
| * | LaTeX writer: Add missing languages.Andrew Dunning2016-04-01
| | | | | | | | | | | | Updates the list from the hyphenation files at <http://mirror.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/loadhyph/>.
* | | Merge pull request #2876 from shosti/org-code-indentJohn MacFarlane2016-04-26
|\ \ \ | | | | | | | | Ignore leading space in org code blocks
| * | | Ignore leading space in org code blocksEmanuel Evans2016-04-26
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #2862 Also fix up tab handling for leading whitespace in code blocks.
* | | | LaTeX writer: ignore --incremental unless -t beamer.John MacFarlane2016-04-26
|/ / / | | | | | | | | | Closes #2843.
* | | Docx Reader: parse `moveTo` and `moveFrom`Jesse Rosenthal2016-04-15
| | | | | | | | | | | | | | | | | | | | | | | | `moveTo` and `moveFrom` are track-changes tags that are used when a block of text is moved in the document. We now recognize these tags and treat them the same as `insert` and `delete`, respectively. So, `--track-changes=accept` will show the moved version, while `--track-changes=reject` will show the original version.
* | | Markdown reader: Fix pandoc title blocks with lines ending in 2 spaces.John MacFarlane2016-04-10
| | | | | | | | | | | | | | | | | | Closes #2799. Also added -s to markdown-reader-more test.
* | | Markdown + HTML readers: be more forgiving about unescaped &.John MacFarlane2016-04-10
|/ / | | | | | | | | | | | | | | We are now more forgiving about parsing invalid HTML with unescaped `&` as raw HTML. (Previously any unescaped `&` would cause pandoc not to recognize the string as raw HTML.) Closes #2410.
* | Recognize `la-x-classic` as Classical Latin.Andrew Dunning2016-03-30
| | | | | | This allows one to access the hyphenation patterns at <http://mirrors.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-classic.tex>, using its private language tag.
* | EPUB writer: set 'navpage' variable on nav page.John MacFarlane2016-03-26
| | | | | | | | This allows templates to treat it differently.
* | Removed two superfluous lines.John MacFarlane2016-03-25
| |
* | LaTeX writer: better positioning for hypertarget in figures.John MacFarlane2016-03-24
| | | | | | | | Closes #2813.
* | LaTeX writer: Fixed position of label in figures.John MacFarlane2016-03-24
| | | | | | | | | | | | | | | | | | | | | | Partially addresses #2813. This isn't perfect, because now the hypertarget is in the wrong place -- when you link to the figure, the screen is positioned with the caption at the top, and most of the figure off screen. So this needs a bit more tweaking.
* | Updated copyright dates to include 2016.John MacFarlane2016-03-22
| |
* | Fixed bug in Markdown raw HTML parsing.John MacFarlane2016-03-22
|/ | | | | | | | | This was a regression, with the rewrite of `htmlInBalanced` (from `Text.Pandoc.Readers.HTML`) in 1.17. It caused newlines to be omitted in raw HTML blocks. Closes #2804.