Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2018-08-17 | Docx writer: properly handle display math in spans. | John MacFarlane | 1 | -2/+4 | |
Closes #4826. This isn't a complete solution, since other nestings of display math may still cause problems, but it should work for what is by far the most common case. Note that this also involves an API change: `isDisplayMath` is now exported from Text.Pandoc.Writers.Shared. | |||||
2018-03-18 | Use NoImplicitPrelude and explicitly import Prelude. | John MacFarlane | 1 | -0/+2 | |
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464. | |||||
2018-03-17 | hlint fixes. | John MacFarlane | 1 | -1/+1 | |
2018-03-17 | Don't wrap lines in grid tables when `--wrap=none` (#4320) | Francesco Occhipinti | 1 | -12/+30 | |
* Annotate gridTable code with comments and abstract small functions * Don't wrap lines in tables when `--wrap=none`. Instead, expand cells, even if it results in cells that don't respect relative widths or surpass page column width. * This change affects RST, Markdown, and Haddock writers. | |||||
2018-03-17 | RST writer: strip whitespace within inlines, closes #4327 (#4329) | Francesco Occhipinti | 1 | -0/+1 | |
+ Whitespace is ignored at the beginning and end of emphasis, as per <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup>. + Export `stripLeadingTrailingSpace` from `Text.Pandoc.Writers.Shared`. | |||||
2018-01-12 | Move `metaValueToInlines` to T.P.W.Shared | Jesse Rosenthal | 1 | -0/+9 | |
This will allow the Powerpoint writer to use it as well. | |||||
2018-01-05 | Update copyright notices to include 2018 | Albert Krewinkel | 1 | -2/+2 | |
2017-12-02 | Docx writer: allow empty paragraphs. | John MacFarlane | 1 | -2/+8 | |
See #2252. This also changes fixDisplayMath from Text.Pandoc.Writers.Shared so that it no longer produces empty Para as an artifact. (That was the original reason the writer omitted them.) | |||||
2017-10-29 | hlint suggestions. | John MacFarlane | 1 | -5/+5 | |
2017-08-13 | Added some Functor constraints needed for ghc 7.8. | John MacFarlane | 1 | -2/+2 | |
2017-08-12 | Escape MetaString values (as added with --metadata flag). | John MacFarlane | 1 | -6/+8 | |
Previously they would be transmitted to the template without any escaping. Note that `--M title='*foo*'` yields a different result from --- title: *foo* --- In the latter case, we have emphasis; in the former case, just a string with literal asterisks (which will be escaped in formats, like Markdown, that require it). Closes #3792. | |||||
2017-08-08 | Writers.Shared.unsmartify: undo literal double curly quotes. | John MacFarlane | 1 | -0/+3 | |
Previously we left these. | |||||
2017-07-13 | Use foldrWithKey instead of deprecated foldWithKey. | John MacFarlane | 1 | -1/+1 | |
2017-06-25 | Moved BCP47 specific functions from Writers.Shared to new module. | John MacFarlane | 1 | -84/+3 | |
Text.Pandoc.BCP47 (unexported, internal module). `getLang`, `Lang(..)`, `parseBCP47`. | |||||
2017-06-25 | Writers.Shared: improve type of Lang and bcp47 parser. | John MacFarlane | 1 | -29/+67 | |
Use a real parsec parser for BCP47, include variants. | |||||
2017-06-25 | Writers.Shared: refactored getLang, splitLang... | John MacFarlane | 1 | -11/+24 | |
into `Lang(..)`, `getLang`, `parceBCP47`. | |||||
2017-06-25 | Text.Pandoc.Writers.Shared: export splitLang. | John MacFarlane | 1 | -0/+19 | |
2017-06-25 | Text.Pandoc.Writers.Shared: added getLang. | John MacFarlane | 1 | -2/+13 | |
2017-06-10 | Writers.Shared: metaToJSON, generalized type so it can take a Text. | John MacFarlane | 1 | -9/+9 | |
Previously a String was needed as argument; now any ToJSON instance will do. API change. | |||||
2017-05-13 | Update dates in copyright notices | Albert Krewinkel | 1 | -2/+2 | |
This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html> | |||||
2017-03-23 | Pipe tables: impose minimum cell size. | John MacFarlane | 1 | -5/+7 | |
This might help with #3526. At any rate, it fixes another bug (see test/command/3526.md). | |||||
2017-03-23 | Grid tables: remove unnecessary extra space in cells. | John MacFarlane | 1 | -1/+1 | |
2017-03-23 | Writers.Shared.gridTable: defensive coding around 'maximum'. | John MacFarlane | 1 | -1/+2 | |
2017-03-21 | RST writer: improve grid table output, fix bug with empty rows. | John MacFarlane | 1 | -17/+29 | |
Uses the new gridTable in Writers.Shared, which is here improved to better handle 0-width cells. Closes #3516. | |||||
2017-03-21 | Moved more gridTable calculations to Writers.Shared. | John MacFarlane | 1 | -5/+30 | |
2017-03-21 | Moved gridTable from Markdown writer to Writers.Shared. | John MacFarlane | 1 | -1/+42 | |
2017-03-04 | Stylish-haskell automatic formatting changes. | John MacFarlane | 1 | -13/+14 | |
2017-02-25 | Fixed type sig for older GHC versions. | John MacFarlane | 1 | -1/+1 | |
2017-02-25 | Fixed addVariablesToJSON. | John MacFarlane | 1 | -2/+5 | |
It was previously not allowing multiple values to become lists. | |||||
2017-02-25 | Writers.Shared: export metaToJSON', addVariablesToJSON. | John MacFarlane | 1 | -10/+28 | |
This allows us to add the variables AFTER using the metadata to generate a YAML header (in the Markdown writer). Addresses the problem shown by https://travis-ci.org/jgm/pandoc/jobs/205154181#L705 See #3439 | |||||
2017-02-25 | Writers.Shared: Changed metaToJSON a bit. | John MacFarlane | 1 | -4/+17 | |
Now we handle metadata first, then variables. This way, meta-json variable will not contain representations of variables, only proper metadata. | |||||
2017-02-05 | Removed redundant import. | John MacFarlane | 1 | -1/+0 | |
2017-02-04 | Implemented +/-smart in rst writer. | John MacFarlane | 1 | -0/+15 | |
Moved unsmartify to Writers.Shared. | |||||
2016-11-30 | Options: Removed writerStandalone, made writerTemplate a Maybe. | John MacFarlane | 1 | -1/+2 | |
Previously setting writerStandalone = True did nothing unless a template was provided in writerTemplate. Now a fragment will be generated if writerTemplate is Nothing; otherwise, the specified template will be used and standalone output generated. [API change] | |||||
2016-07-01 | Writers: treat SoftBreak as space for stripping | Jesse Rosenthal | 1 | -0/+1 | |
In Writers.Shared, we strip leading and trailing spaces for display math. Since SoftBreak's are treated as spaces, we should strip those too. | |||||
2015-11-23 | Define a `meta-json` variable for all writers. | John MacFarlane | 1 | -2/+4 | |
This contains a JSON version of all the metadata, in the format selected for the writer. So, for example, to get just the YAML metadata, you can run pandoc with the following custom template: $meta-json$ Closes #2019. The intent is to make it easier for static site generators and other tools to get at the metadata. | |||||
2015-11-09 | Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly." | John MacFarlane | 1 | -1/+0 | |
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b. | |||||
2015-11-08 | Use -XNoImplicitPrelude and 'import Prelude' explicitly. | John MacFarlane | 1 | -0/+1 | |
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503. | |||||
2015-04-26 | Updated copyright notices to -2015. Closes #2111. | John MacFarlane | 1 | -2/+2 | |
2014-05-09 | Update copyright notices for 2014, add missing notices | Albert Krewinkel | 1 | -2/+2 | |
2014-01-02 | Moved fixDisplayMath from Docx writer to Writer.Shared. | John MacFarlane | 1 | -0/+27 | |
2013-12-19 | HLint: Remove lambdas. | Henry de Valence | 1 | -2/+1 | |
2013-10-26 | Text.Pandoc.Writer.Shared: fixed bug in tagWithAttrs. | John MacFarlane | 1 | -3/+2 | |
A space was omitted before key-value attributes, leading to invalid HTML. | |||||
2013-08-18 | Adjusted writers and tests for change in parsing of div/span. | John MacFarlane | 1 | -0/+18 | |
Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers. | |||||
2013-08-06 | Added support for MetaBool. | John MacFarlane | 1 | -0/+1 | |
2013-07-01 | Added Text.Pandoc.Writers.Shared to repository. | John MacFarlane | 1 | -0/+121 | |
This should have been in last commit. |