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
John MacFarlane
a733068ebf
LaTeX reader: support enquote*, foreignquote, hypphenquote...
...
from csquotes. See #4848 . Still TBD: blockquote, blockcquote,
foreignblockquote.
2018-08-21 17:39:27 -07:00
John MacFarlane
fb3295cb9e
Markdown writer: escape ~
if strikeout extension enabled.
...
See #4840 .
2018-08-19 10:32:25 -07:00
Miodrag Milić
cc4753367c
Added chocolatey installation method ( #4844 )
2018-08-18 09:20:51 -07:00
John MacFarlane
bebfda62dc
Fix compiler warning.
2018-08-18 09:09:43 -07:00
John MacFarlane
42f4632e60
LaTeX reader: Support more text-mode accents.
...
Add support for `\|`, `\b`, `\G`, `\h`, `\d`, `\f`,
`\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`, `\textcircled`.
Also fall back to combining characters when composed
characters are not available.
Closes #4652 .
2018-08-17 23:19:38 -07:00
John MacFarlane
159863e8da
LaTeX reader: use combining characters when needed for accents.
...
For example, there is no unicode code point corresponding to
\"{X}, so we use a combining accent.
2018-08-17 22:11:31 -07:00
John MacFarlane
4ec02053bb
Docx writer: properly handle display math in spans.
...
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-08-17 21:25:14 -07:00
Marc Schreiber
175da00295
Add support for latex mintinline ( #4365 )
2018-08-17 20:57:36 -07:00
Joe Hermaszewski
822a071bb2
Haddock Writer: Use proper format for latex math in haddock ( #4571 ).
...
Inline math in `\(..\)`, display math in `\[..\]`, tex is now used.
Previously we'd "fake it with unicode" and fall back to tex when
that didn't work. But as of
3f50b95532
haddock supports latex math.
2018-08-17 20:50:45 -07:00
John MacFarlane
1b66865763
LaTeX reader: fix siunitx unit commands...
...
...they should only be recognized in siunitx contexts.
For example, `\l` outside of an siunitx context should be l-slash,
not l (for liter)!
Closes #4842 .
2018-08-17 15:22:47 -07:00
John MacFarlane
723b60b42e
Add latest hs-bibutils to stack.yaml.
2018-08-17 09:22:24 -07:00
John MacFarlane
7f76b6886e
stack.lts11.yaml - use git head for pandoc-citeproc.
2018-08-16 23:27:38 -07:00
John MacFarlane
385a0619ff
Revert "appveyor.yml: use regular stack.yaml, not stack.lts11.yaml."
...
This reverts commit 0a93d33566
.
2018-08-16 23:26:43 -07:00
John MacFarlane
0a93d33566
appveyor.yml: use regular stack.yaml, not stack.lts11.yaml.
2018-08-16 22:04:21 -07:00
John MacFarlane
0d9c0b1b5b
stack.yaml: use lts 12.6 and latest git pandoc-citeproc.
2018-08-16 22:03:44 -07:00
John MacFarlane
58dcdb0e56
LaTeX reader: fix double unnumbered
class.
...
The `unnumbered` class was being included twice for
starred sections.
Closes #4838 .
2018-08-16 21:28:20 -07:00
John MacFarlane
2bc352f305
TEI template: improve publicationStmt.
...
Add support for publisher, address, pubPlace, and date variables.
2018-08-16 21:19:03 -07:00
John MacFarlane
0910e92187
TEI improvements.
...
- Ensure that title element is always present, even if empty.
- Put author tags in the template, rather than adding them in
the writer.
Closes #4839 .
2018-08-16 21:06:49 -07:00
John MacFarlane
fe312b0a7a
LaTeX writer/template: be sensitive to filecolor
variable.
...
`linkcolor` only affects internal links, and `urlcolor` only
affects linked URLs. For external links, the option to use is
`filecolor`.
Closes #4822 .
2018-08-16 20:48:51 -07:00
John MacFarlane
13dea94a91
Markdown reader: Use "tex" instead of "latex" for raw tex-ish content.
...
We can't always tell if it's LaTeX, ConTeXt, or plain TeX.
Better just to use "tex" always.
Also changed:
ConTeXt writer: now outputs raw "tex" blocks as well as "context".
(Closes #969 ).
RST writer: uses ".. raw:: latex" for "tex" content.
(RST doesn't support raw context anyway.)
Note that if "context" or "latex" specifically is desired,
you can still force that in a markdown document by using
the raw attribute (see MANUAL.txt):
```{=latex}
\foo
```
Note that this change may affect some filters, if they assume that raw
tex parsed by the Markdown reader will be RawBlock (Format "latex").
In most cases it should be trivial to modify the filters to accept
"tex" as well.
2018-08-15 10:25:12 -07:00
Cyril Roelandt
2ae8272754
Support "toc-title" in the beamer template. ( #4835 )
...
It is a bit awkward to have a title for every frame, but not for the one
that holds the table of contents. Allow users to specify a title if they
wish.
2018-08-15 09:58:17 -07:00
John MacFarlane
e44815a9ee
Bump version to 2.3, because of breaking API change to Macro.
2018-08-14 11:54:04 -07:00