| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
| |
Note: sepBy1 doesn't work quite as I expected. It gives odd
results if sep succeeds but not p.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We work around the problem that blaze-html unnecessarily escapes `'`
by pre-escaping just the `'` characters, instead of the whole string.
If blaze-html later stops escaping `'` characters, we can simplify
strToHtml to toHtml.
Note that this change yields a significant speed boost (111ms to 94ms
on one benchmark).
Closes #629.
|
| |
|
|
|
|
|
|
| |
This will give us more flexibility in the future.
It also gives built-in normalization. Performance slightly
better.
|
| |
|
| |
|
|
|
|
|
| |
Don't use nullBlock in Textile reader. Better to know about parsing
problems than to skip stuff when we get stuck.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Still not supported on substitution definitions.
|
|
|
|
| |
Added new 'veryclean' target that removes these too.
|
|
|
|
|
| |
Now citeproc-hs is fixed upstream, so this is no longer needed.
Closes #531.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Read bytestring and use Text's decodeUtf8 instead of using System.IO's
hGetContents. This way you get a message saying "invalid UTF-8 stream"
instead of "invalid byte sequence." You are also told which byte caused
the problem.
|
|
|
|
| |
Closes #614.
|
|
|
|
|
|
|
|
| |
* Depend on text.
* Expose Text.Pandoc.UTF8.
* Text.Pandoc.UTF8 now exports toString, fromString,
toStringLazy, fromStringLazy.
* These are used instead of the old utf8-string functions.
|
|
|
|
|
| |
This treats both '\r\n' and '\n' as '\n' on input, no matter
what platform we're running on.
|
|
|
|
|
|
|
|
|
|
|
| |
Now we insert anchors after each header, and use @ref
instead of @uref for links.
Commas are now escaped as @comma{} only when needed; previously
all commas were escaped. (This change is needed, in part, because @ref
commands must be followed by a real comma or period.)
Also insert a blank line in from of @verbatim environments.
|
|
|
|
| |
This reverts commit 7272735b3d413a644fd9ab01eeae8ae9cd5a925b.
|
|
|
|
|
|
|
|
|
|
| |
Previously, UTF-8 was enforced for both input and output.
The new system:
* For input, UTF-8 is tried first; if an error is raised, the
locale encoding is tried.
* For output, the locale encoding is always used.
|
|
|
|
|
| |
Removed code that was conditional on base < 4.2, since
now we require base >= 4.2.
|
| |
|
| |
|
| |
|
|
|
|
| |
This reverts commit c69837adb648a479167be5e2d37279a02be8060c.
|
|
|
|
|
|
|
| |
Note that system templates are stored as UTF8
and will still be read as such, even if the local encoding
is different. Text downloaded from URLs will also be treated
as UTF-8.
|
| |
|
|
|
|
| |
Removed duplicate code in src/pandoc.hs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously the parser would hang on input like this:
[[[[[[[[[[[[[[[[[[hi
We fixed this by making the link parser parser characters
between balanced brackets (skipping brackets in inline code spans),
then parsing the result as an inline list.
One change is that
[hi *there]* bud](/url)
is now no longer parsed as a link. But in this respect pandoc behaved
differently from most other implementations anyway, so that seems okay.
All current tests pass. Added test for this case.
Closes #620.
|
|
|
|
|
|
|
|
| |
This allows the markdown reader to treat '\begin' (not followed
by an argument) as a raw string rather than erroring out when
it doesn't find a '{'.
Closes #622.
|
|
|
|
|
| |
Otherwise TMP is unset and, on Windows, C:\Windows is used by default,
leading to permission violations.
|
|\
| |
| | |
Various version bumps
|
| | |
|
| |
| |
| |
| | |
network 2.4 is now on hackage
|
| |
| |
| |
| | |
directory-1.2 is in ghc 7.6
|
|/
|
|
| |
Since containers 0.5 is in the wild as of ghc 7.6
|
|
|
|
| |
It isn't any longer.
|
|
|
|
| |
We don't actually seem to use the '[H]' option.
|
|
|
|
| |
Instead, use standard LaTeX commands to change numbering style.
|
|
|
|
| |
Closes #576.
|
|
|
|
|
|
|
| |
* Use :target: field when you have a simple linked image.
* Don't wrap the reference.
* Cleaned up code.
* Closes #611.
|
|
|
|
|
|
| |
* Don't allow line breaks in field names.
* Strip off initial newline from 'raw' when field body
begins on next line.
|