Age | Commit message (Collapse) | Author | Files | Lines |
|
This reverts commit c59e31722471ce3a67a41413de4e6a5ecfd00ba1.
|
|
Hunch that this might help with #3526.
|
|
|
|
Instead, resize to 1.
Note, this (together with earlier changes to the Markdown
writer) seems to fix #1785.
The table renders as garbage, but pandoc now completes the conversion
quickly and doesn't get tied up.
|
|
|
|
This makes it possible to insert escape codes for content
that needs escaping at the beginning of a line.
|
|
The bugs caused spurious blank lines in grid tables
when we had things like
blankline $$ blankline
Closes #3251.
|
|
|
|
|
|
|
|
This was only necessary for GHC versions with base below 4.5
(i.e., ghc < 7.4).
|
|
|
|
|
|
mb21-new-image-attributes
* Bumped version to 1.16.
* Added Attr field to Link and Image.
* Added `common_link_attributes` extension.
* Updated readers for link attributes.
* Updated writers for link attributes.
* Updated tests
* Updated stack.yaml to build against unreleased versions of
pandoc-types and texmath.
* Fixed various compiler warnings.
Closes #261.
TODO:
* Relative (percentage) image widths in docx writer.
* ODT/OpenDocument writer (untested, same issue about percentage widths).
* Update pandoc-citeproc.
|
|
Don't use custom prelude for latest ghc.
This is a better approach to making 'stack ghci' and 'cabal repl'
work. Instead of using NoImplicitPrelude, we only use the custom
prelude for older ghc versions. The custom prelude presents a
uniform API that matches the current base version's prelude.
So, when developing (presumably with latest ghc), we don't
use a custom prelude at all and hence have no trouble with ghci.
The custom prelude no longer exports (<>): we now want to
match the base 4.8 prelude behavior.
|
|
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
|
|
This is needed for ghci to work with pandoc, given that we
now use a custom prelude.
Closes #2503.
|
|
- The (non-exported) prelude is in prelude/Prelude.hs.
- It exports Monoid and Applicative, like base 4.8 prelude,
but works with older base versions.
- It exports (<>) for mappend.
- It hides 'catch' on older base versions.
This allows us to remove many imports of Data.Monoid
and Control.Applicative, and remove Text.Pandoc.Compat.Monoid.
It should allow us to use -Wall again for ghc 7.10.
|
|
|
|
|
|
|
|
Eliminates memory usage and twofold increase in speed.
|
|
This fixes an extra blank line we were getting at the end
of markdown fragments (as well as rst, org, etc.)
Closes #1705.
|
|
This ensures a certain number of blanklines (and no more) in output.
|
|
|
|
Reasoning:
- It's not Haskell2010
- It breaks some tools
- Doesn't actually do anything
- RenderState doesn't even have a Monoid instance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fixes bug with Chinese commas in tables.
|
|
|
|
Note: changed fixity to infixr 6.
|
|
Use sequence in Pretty instead.
|
|
Used the unicode spec EastAsianWidth.txt.
All characters marked W or F get width 2.
Closes #377.
|
|
This should help fix setext headers and tables containing
asian wide characters and combining characters.
|
|
|
|
This allows you to include something conditionally on it being
before a nonblank. Used for RST inline math.
|
|
|
|
|
|
|
|
This avoids conflict with 'enclosed' in Text.Pandoc.Parsing.
|
|
|
|
|
|
|
|
* Added Text.Pandoc.Pretty.
This is better suited for pandoc than the 'pretty' package.
One advantage is that we now get proper wrapping; Emph [Inline]
is no longer treated as a big unwrappable unit. Previously
we only got breaks for spaces at the "outer level." We can also
more easily avoid doubled blank lines. Performance is
significantly better as well.
* Removed Text.Pandoc.Blocks.
Text.Pandoc.Pretty allows you to define blocks and concatenate
them.
* Modified markdown, RST, org readers to use Text.Pandoc.Pretty
instead of Text.PrettyPrint.HughesPJ.
* Text.Pandoc.Shared: Added writerColumns to WriterOptions.
* Markdown, RST, Org writers now break text at writerColumns.
* Added --columns command-line option, which sets stColumns
and writerColumns.
* Table parsing: If the size of the header > stColumns,
use the header size as 100% for purposes of calculating
relative widths of columns.
|