summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Docx Reader: All headers get auto id.Jesse Rosenthal2014-06-28
| | | | | Previously, only those with an anchor got an auto id. Now, all do, which puts it in line with pandoc's markdown extension.
* Merge pull request #1377 from jkr/monadJohn MacFarlane2014-06-28
|\ | | | | New DocxContext Monad, and rewriting anchor ids
| * Change test result to match new behavior.Jesse Rosenthal2014-06-28
| |
| * Docx Reader: Introduce link rewriting.Jesse Rosenthal2014-06-28
| |
| * make makeHeaderAnchors make an auto idJesse Rosenthal2014-06-28
| | | | | | | | | | Record relationship between original id and auto id, so we can fix links after.
| * Rewrote header generation.Jesse Rosenthal2014-06-28
| | | | | | | | In preparation for auto ids.
| * Docx Reader: Simplify makeHeaderAnchorsJesse Rosenthal2014-06-28
| | | | | | | | | | | | Using pattern guard, in preparation for doing some more complicated stuff with it (recording header anchors, so we can change them to auto ids.)
| * Docx Reader: Clean up guardsJesse Rosenthal2014-06-28
| | | | | | | | | | Use PatternGuards to get rid of need for `isJust`, `fromJust` altogether.
| * Docx rdr: Avoid mapping makeHeaderAnchors globallyJesse Rosenthal2014-06-28
| | | | | | | | | | It only applies to headers, so we can just apply it when we make a header.
| * Move Docx reader to DocxContext monadJesse Rosenthal2014-06-28
|/ | | | | | | This is a ReaderT State stack, which keeps track of some environment info, such as the options and the docx doc. The state will come in handy in the future, for a couple of planned features (rewriting the section anchors as auto_idents, and hopefully smart-quoting).
* Fixed `--filter` so it doesn't search PATH for a filter with a path.John MacFarlane2014-06-27
| | | | | This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from the system path, even if there was a `caps.py` in the working directory.
* Require haddock-library >= 1.1 and simplify haddock reader code.John MacFarlane2014-06-26
| | | | See #1346.
* Merge pull request #1374 from jkr/track-changes-optionsJohn MacFarlane2014-06-25
|\ | | | | Track changes with options
| * Fix typo in README.Jesse Rosenthal2014-06-25
| |
| * Track changes tests.Jesse Rosenthal2014-06-25
| |
| * Updated README to include "--track-changes" option.Jesse Rosenthal2014-06-25
| |
| * Docx reader: Make use of track-changes option.Jesse Rosenthal2014-06-25
| |
| * Add track changes option to command line.Jesse Rosenthal2014-06-25
| |
| * Add TrackChanges to Options export.Jesse Rosenthal2014-06-25
| |
| * Add reader option for track changes.Jesse Rosenthal2014-06-25
| |
| * Add TrackChanges type to options.Jesse Rosenthal2014-06-25
| |
* | Merge pull request #1375 from jkr/cleanupJohn MacFarlane2014-06-25
|\ \ | | | | | | Docx reader: Code cleanup in parse.
| * | Docx reader: Code cleanup in parse.Jesse Rosenthal2014-06-25
|/ / | | | | | | Remove some redundant ways of dealing with Maybe.
* | Merge pull request #1372 from jkr/track-changesJohn MacFarlane2014-06-25
|\| | | | | Rudimentary track-changes support
| * Docx reader: Add tests for basic track changesJesse Rosenthal2014-06-25
| | | | | | | | | | | | | | This is what seems like the sensible default: read in insertions, and ignore deletions. In the future, it would be good if options were available for either taking in deletions or keeping both in some scriptable format.
| * Docx reader: Remove unnecessary filter in Parse.Jesse Rosenthal2014-06-25
| | | | | | | | mapMaybe does the filtering for us.
| * Docx reader: Add rudimentary track changes support.Jesse Rosenthal2014-06-25
| | | | | | | | This will only read the insertions, and ignore the deletions.
| * Docx reader: Parse Insertions and Deletions.Jesse Rosenthal2014-06-25
| | | | | | | | | | This is just for the Parse module, reading it into the Docx format. It still has to be translated into pandoc.
| * Docx Reader: Add change typesJesse Rosenthal2014-06-25
|/ | | | Insertion and deletion. Dates are just strings for now.
* Merge pull request #1370 from jkr/fix-zero-indentJohn MacFarlane2014-06-24
|\ | | | | Docx reader: Ignore zero (or negative) indent
| * Docx reader: Ignore zero (or negative) indentJesse Rosenthal2014-06-24
| | | | | | | | | | If a block has an indentation less than or equal to zero, it should not be treated as a block quote.
* | Merge pull request #1368 from jkr/docxCodeJohn MacFarlane2014-06-24
|\| | | | | Docx verbatim code formatting
| * Docx reader: remove T.P.Generic import.Jesse Rosenthal2014-06-24
| | | | | | | | | | This marks the removal of the final tree-walk in the code. (Though there is still one in the Lists module.)
| * Docx reader: pass definition test.Jesse Rosenthal2014-06-24
| | | | | | | | | | This commit also fixes a problem with the previous code pushes, which wouldn't allow code blocks to share a div.
| * Docx Reader: add failing defintion list tests.Jesse Rosenthal2014-06-24
| |
| * Docx reader: pass code tests.Jesse Rosenthal2014-06-24
| |
| * Docx reader: add failing tests for inline code and code blocks.Jesse Rosenthal2014-06-24
|/
* Merge pull request #1367 from jkr/reducible-copyrightJohn MacFarlane2014-06-23
|\ | | | | Add copyright block to T.P.R.Docx.Reducible.
| * Add copyright block to T.P.R.Docx.Reducible.Jesse Rosenthal2014-06-23
|/
* Merge pull request #1366 from jkr/reducible3John MacFarlane2014-06-23
|\ | | | | Docx rewrite and cleanup (in terms of Reducible typeclass)
| * Add test for correctly trimming spaces in formatting.Jesse Rosenthal2014-06-23
| | | | | | | | | | This used to be fixed in the tree-walking. We need to make sure we're doing it right now.
| * Add Reducible to cabal file.Jesse Rosenthal2014-06-23
| |
| * Use Reducible in docx reader.Jesse Rosenthal2014-06-23
| | | | | | | | | | This cleans up them implementation, and cuts down on tree-walking. Anecdotally, I've seen about a 3-fold speedup.
| * Move some of the clean-up logic into List module.Jesse Rosenthal2014-06-23
| | | | | | | | | | This will allow us to get rid of more general functions we no longer need in the main reader.
| * Add new typeclass, ReducibleJesse Rosenthal2014-06-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This defines a typeclass `Reducible` which allows us to "reduce" pandoc Inlines and Blocks, like so Emph [Strong [Str "foo", Space]] <++> Strong [Emph [Str "bar"]], Str "baz"] = [Strong [Emph [Str "foo", Space, Str "bar"], Space, Str "baz"]] So adjacent formattings and strings are appropriately grouped. Another set of operators for `(Reducible a) => (Many a)` are also included.
* | LaTeX writer: Use `\textquotesingle` for `'` in inline code.John MacFarlane2014-06-23
| | | | | | | | | | Otherwise we get curly quotes in the PDF output. Closes #1364.
* | Markdown reader: Combine consecutive latex environments.John MacFarlane2014-06-23
|/ | | | | | | This helps when you have two minipages which can't have blank lines between them. See #690, #1196.
* Merge pull request #1363 from jkr/newNormalizeJohn MacFarlane2014-06-21
|\ | | | | Improve normalization
| * Docx reader tests: add tests for normalization deep in blocks.Jesse Rosenthal2014-06-22
| |
| * Docx reader tests: Correct normalize test.Jesse Rosenthal2014-06-22
| |