John MacFarlane
5df45fd1fe
Use latest texmath.
2018-09-09 14:38:11 -07:00
John MacFarlane
0b486e8672
Org writer: don't escape literal _
, ^
.
...
Org doesn't recognize these escapes.
Closes #4882 .
2018-09-09 13:11:53 -07:00
Nils Carlson
12cec8f082
Fix percentage image scaling in ODT ( #4881 )
...
Image scaling in ODT was broken when a width was set to
a percentage. The width was passed to the svg:width field
as a pecentage, which is not correct according to the ODT
standard.
Instead the real dimensions should be passed as width and
height and the style:rel-width attribute should be set to the
percentage while style:rel-heigh attribute should be set to
"scale". The converse is true if a percentage height is given.
This is now fixed and documents produced are now properly
scaled.
2018-09-07 16:37:21 -07:00
John MacFarlane
0178544ebe
CONTRIBUTING.md: link to lua-filters repository.
...
See #4874 .
2018-09-07 16:33:38 -07:00
John MacFarlane
ba09d2942a
lua-filters.md: add links to filters, and to lua-filters repository.
...
Closes #4874 .
2018-09-07 16:29:21 -07:00
John MacFarlane
a211edc819
HTML reader: parse <script type="math/tex
tags as math.
...
These are used by MathJax.
Closes #4877 .
2018-09-07 09:41:17 -07:00
John MacFarlane
6397aacdae
INSTALL.md: indicate that cabal >= 2.0 is needed.
2018-09-07 09:25:48 -07:00
John MacFarlane
ddac7434fc
Clean up appveyor build.
...
We now use ghc 8.4.3, lts-12 for the 64-bit build.
We still use ghc 8.2, lts-11 for the 32-bit build because
of blocking bugs:
https://github.com/commercialhaskell/stackage/issues/3385
With luck this will be fixed in ghc 8.6.
Get stack from chocolatey.
Use 32-bit stack for 32-bit builds, 64-bit for 64-bit.
2018-09-06 23:12:31 -07:00
John MacFarlane
01f39c5991
stack.yaml tweaks.
...
Use a patched version of foundation until
https://github.com/haskell-foundation/foundation/pull/503
is fixed.
Use latest pandoc-citeproc.
2018-09-06 23:09:17 -07:00
Albert Krewinkel
275afec38a
Org reader: respect export option p
for planning info
...
Inclusion of planning info (*DEADLINE*, *SCHEDULED*, and *CLOSED*) can
be controlled via the `p` export option: setting the option to `t` will
add all planning information in a *Plain* block below the respective
headline.
2018-09-06 20:57:21 +02:00
Albert Krewinkel
aac3d752e1
Org reader internals: disable some GHC extensions
...
The RecordWildCards and ViewPatterns language extensions can be used to
shorten code, but usually also makes it harder to read. The DocumentTree
module was hence refactored and no longer relies on these extensions.
2018-09-06 20:53:57 +02:00
John MacFarlane
a734ed6532
MANUAL: Clarify when --resource-path
has an effect.
2018-09-06 10:07:22 -07:00
Alexander Krotov
0b7001c318
Muse reader: close the </quote> in indented tag test
...
There is already a separate test for unclosed </quote>.
2018-09-06 19:57:24 +03:00
damien clochard
efe99b5e97
Document encoding issue with --listings
( #4873 )
...
Document encoding issue with `--listings`.
Closes #4871 .
2018-09-05 09:41:48 -07:00
Albert Krewinkel
ceec26f647
Org reader: strip planning info from output
...
Planning info is parsed, but not included in the output (as is the
default with Emacs Org-mode).
Fixes : #4867
2018-09-05 17:12:54 +02:00
José de Mattos Neto
70d0ae135e
Remove unnecessary indenting of TOC title ( #4869 )
...
Fixes #4798
2018-09-04 09:48:39 -07:00
Alexander Krotov
c5572fc07e
hlint some writers
2018-09-04 11:21:13 +03:00
Alexander Krotov
bec2023265
hlint Muse writer tests
2018-09-04 11:00:44 +03:00
Alexander Krotov
66f3b00206
Remove redundant $
2018-09-04 10:53:37 +03:00
John MacFarlane
97a176aaaa
stack.yaml: use latest dev version of pandoc-citeproc.
2018-09-03 23:50:50 -07:00
John MacFarlane
952677a212
appveyor.yml : try building with lts-12.
2018-09-03 15:33:23 -07:00
John MacFarlane
870e09a215
Remove obsolete RELEASE-CHECKLIST.md.
2018-09-03 15:23:05 -07:00
Alexander Krotov
7d0bcbb1f0
Fix "new new" typo in changelog
2018-09-03 19:35:39 +03:00
Alexander Krotov
02e68859eb
Muse reader: autonumber sections in the correct order
...
Parsing now stops at each section header to ensure the
header is registered before parsing of the next section starts.
2018-09-02 17:37:19 +03:00
Alexander Krotov
1630a731ec
Muse reader: move duplicate code into "headingStart" function
2018-09-02 14:38:04 +03:00
Alexander Krotov
afd3f21218
Muse writer: hlint
2018-09-02 03:29:47 +03:00
Alexander Krotov
6ea6011ca6
Muse writer: use lightweight markup when possible
2018-09-02 03:29:27 +03:00
Alexander Krotov
746c30971e
Muse writer: add more comments
2018-09-02 03:05:01 +03:00
Alexander Krotov
bd2bd9aeaa
Muse writer: escape empty strings
...
This guarantees that conditionalEscapeString never returns empty string.
2018-09-02 01:04:14 +03:00
Alexander Krotov
23ed97f081
Muse reader: allow newline after opening "*" or "**"
...
Emacs Muse allows this.
2018-09-02 01:03:43 +03:00
Alexander Krotov
db44ddfbde
Muse writer: wrap conditionalEscapeString result into "Muse" type
...
This removes the need to pass envInsideLinkDescription to it.
2018-09-01 16:17:53 +03:00
Alexander Krotov
e27ded9c38
Muse writer: separate "shouldEscapeString" function
2018-09-01 15:51:39 +03:00
Alexander Krotov
3ddb7c9d3e
Muse writer: simplify inline list rendering
2018-08-31 18:51:16 +03:00
Alexander Krotov
56685e8735
Muse reader: parse <verse> tag in one pass
...
instead of using parseFromString.
This change makes it possible to have verbatim </verse> tag
inside verse.
2018-08-31 16:43:07 +03:00
Mauro Bieg
d63202c2f4
MANUAL: remove docs on removed --katex-stylesheet
...
closes #4862
2018-08-30 21:16:30 +02:00
Alexander Krotov
cc8e115b72
Muse reader: hlint
2018-08-30 16:03:01 +03:00
Alexander Krotov
d74c63d6d3
Fix a typo: s/afeter/after/
2018-08-30 16:02:46 +03:00
John MacFarlane
889254e1d5
LaTeX reader: fixed parsing of \texorpdfstring.
...
We were returning the wrong argument as the content.
2018-08-29 15:50:51 -07:00
John MacFarlane
85ed24e849
RSTR reader: don't skip link definitions after comments.
...
Closes #4860 .
2018-08-29 14:40:04 -07:00
John MacFarlane
7c0b314cbe
appveyor.yml: use -arch with candle.
...
This may help with #4795 .
2018-08-28 21:06:51 -07:00
John MacFarlane
7318bc91ce
EPUB writer: set epub:type on body element intelligently.
...
epub:type of first section epub:type of body
-------------------------- ------------------
prologue frontmatter
abstract frontmatter
acknowledgments frontmatter
copyright-page frontmatter
dedication frontmatter
foreword frontmatter
halftitle, frontmatter
introduction frontmatter
preface frontmatter
seriespage frontmatter
titlepage frontmatter
afterword backmatter
appendix backmatter
colophon backmatter
conclusion backmatter
epigraph backmatter
Otherwise body will have epub:type 'bodymatter'.
This only affects epub3.
See http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
Closes #4823 .
2018-08-28 12:35:28 -07:00
Wandmalfarbe
dac85d683f
Add support for $toc-title$ to LaTeX (and PDF). ( #4853 )
2018-08-25 09:55:17 -07:00
John MacFarlane
347242f530
FB2 writer: put coverpage element between title and date...
...
...rather than in document-info element.
Closes #4854 .
2018-08-24 21:07:47 -07:00
John MacFarlane
a2c4261b32
HTML reader: allow enabling raw_tex
extension.
...
This now allows raw LaTeX environments, `\ref`, and `\eqref` to
be parsed (which is helpful for translation HTML documents using
MathJaX).
Closes #1126 .
2018-08-24 18:04:00 -07:00
Antonio Terceiro
4dddfbc435
PDF: fix reference to rsvg-convert ( #4855 )
...
When rsvg-convert is not available, pandoc would tell the user to check for rsvg2pdf instead
2018-08-24 09:43:29 -07:00
John MacFarlane
d0072002f5
Use yaml-0.9.0 in stack.yaml.
2018-08-22 13:40:54 -07:00
John MacFarlane
df22464434
Use latest pandoc-citeproc.
...
This should fix build failure on appveyor.
2018-08-22 08:33:38 -07:00
Alexander Krotov
937b92cd30
HTML reader: extract spaces inside links instead of trimming them
...
Fixes #4845
2018-08-22 12:43:15 +03:00
John MacFarlane
3b5949e8f2
LaTeX reader: support blockcquote, foreignblockquote from csquotes.
...
Also foreigncblockquote, hyphenblockquote, hyphencblockquote.
Closes #4848 . But note: currently foreignquote will be
parsed as a regular Quoted inline (not using the quotes
appropriate to the foreign language).
2018-08-21 21:03:43 -07:00
Brian Leung
5823031796
Fix mistake in REPL instructions for stack. ( #4849 )
2018-08-21 20:37:15 -07:00