Commit graph

5844 commits

Author SHA1 Message Date
John MacFarlane
6bd8037b8d
Merge pull request #4604 from mb21/yaml-file
Introduce --metadata-file option
2018-09-15 14:32:06 -07:00
Mauro Bieg
f736dea4ba Docx writer: add MetaString case for abstract, subtitle (#4905)
fixes #4900
2018-09-15 11:55:23 -07:00
mb21
6aa5fcac13 introduce --metadata-file option
closes #1960

API change: Text.Pandoc.Readers.Markdown exports now `yamlToMeta`
2018-09-15 16:48:04 +02:00
mb21
73fa70c397 Markdown Reader: factor out yamlMap 2018-09-15 14:35:04 +02:00
mb21
51c1222457 Markdown Reader: factor out yamlBsToMeta 2018-09-15 13:22:45 +02:00
mb21
700f7a141f Markdown Reader: rename yamlToMeta to yamlToMetaValue 2018-09-15 12:46:59 +02:00
Alexander Krotov
f8d3f3a999 Muse writer: never wrap definition list terms 2018-09-12 14:03:24 +03:00
Alexander Krotov
1aac754359 Muse writer: set envInsideBlock = True when rendering notes 2018-09-11 14:10:20 +03:00
Alexander Krotov
e6ba0cc893 HTML writer: always output <dt> element, even if it is empty
Fixes #4883
2018-09-11 13:20:11 +03:00
Alexander Krotov
97f6833ee5 Muse writer: use "" instead of [] for empty String 2018-09-11 11:49:30 +03:00
Alexander Krotov
165a61095c Muse writer: check for whitespace in the beginning and end of Str's 2018-09-11 11:49:11 +03:00
Alexander Krotov
cb28cab489 Muse writer: escape -, ; and > in the beginning of strings 2018-09-11 11:35:25 +03:00
Alexander Krotov
c899b4e89d Muse writer: escape list markers in the beginning of notes 2018-09-11 04:15:32 +03:00
Alexander Krotov
00b2b0feb6 Muse writer: normalize inline list before testing if tags should be used 2018-09-11 01:36:11 +03:00
Alexander Krotov
c2b97c4b80 Muse writer: use tags instead of lightweight markup for empty strings 2018-09-11 00:39:37 +03:00
John MacFarlane
fa4ebd71a3 LaTeX reader: resolve \ref for figure numbers. 2018-09-09 22:53:18 -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
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
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
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
Alexander Krotov
c5572fc07e hlint some writers 2018-09-04 11:21:13 +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
Alexander Krotov
cc8e115b72 Muse reader: hlint 2018-08-30 16:03:01 +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
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
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
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
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
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
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
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
John MacFarlane
dae3a09433 ODT reader: deal gracefully with missing <office:font-face-decls/>.
This allows pandoc to parse ODT document produced by KDE's Calligra.
Closes #4336.
2018-08-14 11:52:14 -07:00
John MacFarlane
c27ce1e70e LaTeX reader: handle parameter patterns for \def.
For example:  `\def\foo#1[#2]{#1 and #2}`.

Closes #4768.  Also fixes #4771.

API change:  in Text.Pandoc.Readers.LaTeX.Types,
new type ArgSpec added.  Second parameter of Macro
constructor is now `[ArgSpec]` instead of `Int`.
2018-08-14 00:03:55 -07:00
John MacFarlane
919c50162c RST writer: render Divs with admonition classes as admonitions.
Also omit Div with class "admonition-title". These are generated
by the RST reader and should be omitted on round-trip.

Closes #4833.
2018-08-13 11:17:26 -07:00
John MacFarlane
c3f17cb0d7 RST writer: use .. container for generic Divs, instead of raw HTML. 2018-08-13 11:00:28 -07:00
John MacFarlane
6d14f53bd9 LaTeX reader: Allow % characters in URLs.
This affects `\href` and `\url`.  Closes #4832.
2018-08-12 16:46:48 -07:00
Alexander Krotov
81131ef5d1 Muse reader: don't allow digits after closing marker in lightweight markup
This change makes reader more compatible with Emacs Muse
2018-08-12 21:20:07 +03:00
Albert Krewinkel
acf6df1aef
Lua: cleanup Lua utils, remove unused functions. 2018-08-12 12:28:06 +02:00
John MacFarlane
b3c9d94fe0 Avoid non-exhaustive pattern match. 2018-08-10 22:31:49 -07:00
John MacFarlane
1e0439710b Avoid incomplete pattern patch. 2018-08-10 22:10:07 -07:00
John MacFarlane
65aea82a04 Avoid non-exhaustive pattern match. 2018-08-10 15:56:43 -07:00
John MacFarlane
6003c596d7 Avoid non-exhaustive pattern match. 2018-08-10 15:44:20 -07:00
John MacFarlane
84e0b90519 Avoid non-exhaustive pattern match. 2018-08-10 15:34:10 -07:00
John MacFarlane
7a1ec21faa Avoid non-exhaustive pattern matches. 2018-08-10 15:22:10 -07:00
John MacFarlane
0ae79275a9 Avoid non-exhaustive pattern match. 2018-08-10 15:17:49 -07:00
John MacFarlane
7bc879268c Avoid non-exhaustive pattern match. 2018-08-10 15:13:19 -07:00
John MacFarlane
e055f1b21e Avoid non-exhaustive pattern match. 2018-08-10 15:05:25 -07:00
John MacFarlane
ec89628984 Avoid a non-exhaustive pattern match. 2018-08-10 14:59:59 -07:00
John MacFarlane
9752dcd61a HTML writer: Don't prefix epub: attributes with data-. 2018-08-08 09:53:13 -07:00
John MacFarlane
b76203ccf1 Markdown reader: Properly handle boolean values in YAML metadata.
This fixes a regression in 2.2.3, which cause boolean values to
be parsed as MetaInlines instead of MetaBool.

Note also an undocumented (but desirable) change in 2.2.3:
numbers are now parsed as MetaInlines rather than MetaString.

Closes #4819.
2018-08-07 09:26:58 -07:00
John MacFarlane
94c3753c08 Fix parsing of embedded mappings in YAML metadata.
This fixes a regression in 2.2.3 which caused embedded mappings
(e.g. mappings in sequences) not to work in YAML metadata.

Closes #4817.
2018-08-06 12:32:04 -07:00
John MacFarlane
581a3514ca RST reader: improve parsing of inline interpreted text roles.
* Use a Span with class "title-reference" for the default
  title-reference role.
* Use B.text to split up contents into Spaces, SoftBreaks, and Strs
  for title-reference.
* Use Code with class "interpreted-text" instead of Span and Str for
  unknown roles.  (The RST writer has also been modified to round-trip
  this properly.)
* Disallow blank lines in interpreted text.
* Backslash-escape now works in interpreted text.
* Backticks followed by alphanumerics no longer end interpreted text.

Closes #4811.
2018-08-05 09:56:43 -07:00
Francesco Occhipinti
74a35b123c RST writer: allow images to be directly nested within links, closes #4810 (#4814) 2018-08-03 12:13:18 -07:00
Mauro Bieg
f83bdb1ac5 Better error message on -t pdf -o out.pdf (#4815)
closes #1155 (again)
2018-08-03 12:04:38 -07:00
Francesco Occhipinti
2661658a69 RST writer: use titleblock instead of title variable for title block
Closes #4803

After this commit use `$titleblock$` in order to get what was contained
in `$title$` before, that is a title and subtitle rendered according to
the official rST method:
http://docutils.sourceforge.net/docs/user/rst/quickstart.html#document-title-subtitle. from

With this commit, the `$title$` and `$subtitle$` metadata are available and they
simply carry the metadata values.  This opens up more possibilities in templates.
2018-08-01 12:32:16 -07:00
John MacFarlane
d3d932f42c Markdown reader: allow unquoted numbers, booleans as YAML mapping keys.
Previously in 2.2.2 you could not do

    ---
    0: bar
    ...

but only

    ---
    '0': bar
    ...

With this change, both forms work.
2018-07-30 23:04:53 -07:00
John MacFarlane
cbb662ca07 Use YAML.decode rather than YAML.decodeStrict.
(Minor)
2018-07-30 22:02:59 -07:00
John MacFarlane
78dca68a0a DocBook reader: metadata handling improvements.
Now we properly parse title and subtitle elements that are
direct children of book and article (as well as children of
bookinfo, articleinfo, or info).

We also now use the "subtitle" metadata field for subtitles,
rather than tacking the subtitle on to the title.
2018-07-30 14:38:38 -07:00
Albert Krewinkel
fb94c0f6a1 Lua Utils module: add function blocks_to_inlines (#4799)
Exposes a function converting which flattenes a list of blocks into a
list of inlines. An example use case would be the conversion of Note
elements into other inlines.
2018-07-30 10:55:25 -07:00
danse
be2d7921cb RST reader: remove support for nested inlines.
RST does not allow nested emphasis, links, or other inline
constructs.

Closes #4581, double parsing of links with URLs as
link text.  This supersedes the earlier fix for #4581
in 6419819b46.

Fixes #4561, a bug parsing with URLs inside emphasis.

Closes #4792.
2018-07-24 15:35:50 -07:00
John MacFarlane
50e8c3b107 MediaWiki writer: Avoid extra blank line in tables with empty cells.
Note that the old output is semantically identical, but the
new output looks better.

Closes #4794.
2018-07-24 11:38:24 -07:00
Albert Krewinkel
4e899eb9c8
Org reader: fix parsers relying on parseFromString
Emphasis was not parsed when it followed directly after some block types
(e.g., lists).

The org reader uses a wrapper for the `parseFromString` function to
handle org-specific state. The last position of a character allowed
before emphasis was reset incorrectly in this wrapper. Emphasized text
was not recognized when placed directly behind a block which the reader
parses using `parseFromString`.

Fixes: #4784
2018-07-23 22:05:41 +02:00
John MacFarlane
6419819b46 RST reader: fix double-link bug.
Link labels containing raw URLs were parsed as autolinks,
but links within links are not allowed.

Closes #4581.
2018-07-21 22:53:04 -07:00
John MacFarlane
34b229dd5a Fix for bug in parsing \include in markdown.
Starting in 2.2.2, everything after an `\input` (or `\include`)
in a markdown file would be parsed as raw LaTeX.
This commit fixes the issue and adds a regression test.

Closes #4781.
2018-07-19 17:44:16 -07:00
John MacFarlane
ac1a46b0cb rawLaTeXBlock: never retokenize macroDef. 2018-07-19 13:52:54 -07:00
John MacFarlane
d7edfbdf4d Fix regression finding templates in user data directory.
Under version 2.2.1 and prior pandoc found latex templates in the
templates directory under the data directory, but this no longer
works in 2.2.2.

MANUAL says: "If the template is not found, pandoc will search for it in
the templates subdirectory of the user data directory (see `--data-dir`)."

This commit fixes the regression, which stems from 07bce91.

Closes #4777.
2018-07-18 18:55:12 -07:00
John MacFarlane
af445b34d8 Make markdown and github writers respect the emoji extension. 2018-07-15 16:02:46 -07:00
Anders Waldenborg
ec30fb37c1 Wrap emojis in span nodes (#4759)
Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span inline containing the emoji character and some attributes with metadata (class `emoji`, attribute `data-emoji` with emoji name).  Previously, emojis (as supported in Markdown and CommonMark readers, e.g "😄")
were simply translated into the corresponding unicode code point.  By wrapping them in Span
nodes, we make it possible to do special handling such as giving them a special font
in HTML output.  We also open up the possibility of treating them differently when the
`--ascii` option is selected (though that is not part of this commit).

Closes #4743.
2018-07-15 15:14:40 -07:00
John MacFarlane
1579e57833 Support abbreviated units for siunitx (#4773). 2018-07-15 13:35:37 -07:00
John MacFarlane
339a9e1b8b LaTeX reader: be more forgiving in key/value option parsing.
We now allow arbitrary LaTeX values.

This helps with #4761. The `\maxwidth` is still not
propagated to the latex destination, but at least we don't
choke on parsing.
2018-07-15 12:53:42 -07:00
Mauro Bieg
5809d5bef2 AsciiDoc Writer: escape square brackets at start of line (#4708)
closes #4545
2018-07-12 19:37:37 +02:00
John MacFarlane
146555e636 PDF: revert fix for #4484 (only compress images on last run).
Closes #4755.

This will mean some increase in the time it takes to
produce an image-heavy PDF with xelatex, but it will
make tables of contents correct, which is more important.

Note that the production time should also be decreased
by the previous commit, which fixed a logic error
affecting the number of runs.  That change might mitigate
the effect of this one.
2018-07-06 23:51:20 +02:00
John MacFarlane
55e8cb07d0 PDF: Fix logic error in runTeXProgram.
We were running the tex program one more time than requested.
This should speed up pdf production.
2018-07-06 23:43:43 +02:00
Alexander Krotov
5479ea300a JATS reader: fix typo ("lable" instead of "label") 2018-07-02 18:31:46 +03:00
Alexander Krotov
f6dfb632ff Spellcheck comments 2018-07-02 18:30:37 +03:00
John MacFarlane
016e0a09e2 RST writer: don't treat 'example' as a syntax name.
This fixes conversions from org with example blocks.
Closes #4748.
2018-06-30 11:45:49 +02:00
John MacFarlane
5d78ad12b2 Fix compiler warnings. 2018-06-29 23:47:07 +02:00
John MacFarlane
e49b8304e4 Use HsYAML instead of yaml for translations, YAML metadata.
yaml wraps a C library; HsYAML is pure Haskell.
Closes #4747.  Advances #4535.
2018-06-29 23:21:25 +02:00
John MacFarlane
6ed114cb5d Use decodeEither' not decodeEither (deprecated). 2018-06-29 11:47:58 +02:00
Anders Waldenborg
904924d172 CommonMark reader: Handle ascii_identifiers extension (#4733)
Non-ascii characters were not stripped from identifiers even if the
`ascii_identifiers` extension was enabled (which is is by default for
gfm).

Closes #4742
2018-06-29 10:41:26 +02:00
John MacFarlane
edce81734e Avoid using deprecated 'decode' from yaml. 2018-06-28 17:38:58 +02:00
Mauro Bieg
0459d1be26 TikiWiki reader: improve list parsing (#4723)
- remove trailing Space from list items
- parse lists that have no space after marker (fixes #4722)
2018-06-28 13:35:54 +02:00
John MacFarlane
06bcb7c872 Remove network-uri flag and use 'Network.Socket'.
This removes a compiler warning.
There is no need for the old network-uri flag, since
network 2.6 was released in 2014.
2018-06-28 11:51:52 +02:00
John MacFarlane
45904ab27f LaTeX reader: Treat lilypond as a verbatim environment.
Closes #4725.
2018-06-25 22:16:58 +02:00
John MacFarlane
7eb08169aa Fixed typo in LaTeX writer. 2018-06-25 22:16:58 +02:00
Alexander Krotov
ebf4ed8944 Texinfo writer: use @sup and @sub instead of custom macros
Fixes #4728
2018-06-25 03:14:04 +03:00
John MacFarlane
48a505c5a0 Markdown reader: allow empty code spans.
E.g. `` ` ` ``.
2018-06-13 11:12:10 -07:00
Mauro Bieg
7e477db95c LaTeX Reader: parse figure label into Image id (#4704)
closes #4700
2018-06-13 10:41:30 -07:00
Raymond Ehlers
2c1a309c9f Beamer: Allow "noframenumbering" option (#4696)
As noted [here](https://tex.stackexchange.com/a/49805) ([beamer
commit here](ff70090f36)),
`noframenumbering` is an undocumented, but long existing option
to disable frame numbering for a particular slide. This is useful
to avoid numbering backup slides.
2018-06-12 10:39:20 -07:00
John MacFarlane
07bce91f4f Allow --template to take a URL argument. 2018-06-12 10:33:34 -07:00
John MacFarlane
4173460689 reveal.js writer and template: reuse mathjax URL...
...provided by the argument to `--mathjax` or the normal
pandoc default, rather than a hard-coded one in the template.

Closes #4701.
2018-06-12 09:35:27 -07:00
John MacFarlane
1e45bb0041 LaTeX reader: allow spaces around \graphicspath arguments.
Closes #4698.
2018-06-12 09:25:42 -07:00
Alexander Krotov
b6305a63cd FB2 writer: convert Plain to Para in annotation
Address #2424
2018-06-12 15:32:30 +03:00
Alexander Krotov
54d16545c9 FB2 writer: fix order of items in title-info
Address issue #2424
2018-06-12 14:48:52 +03:00
John MacFarlane
c1ae8d00ee LaTeX writer: properly handle footnotes in table captions.
Refactored code from figure captions to use in both places.

Closes #4683.
2018-06-07 21:30:14 -07:00
Mauro Bieg
905dee6ee3 beamer output: fix single digit column percentage (#4691)
fixes #4690
2018-06-07 10:50:14 -07:00
Adrian Sieber
9536eb7c79 Add missing re-export of "breezeDark" style (#4687) 2018-06-05 09:50:34 -07:00
Mauro Bieg
764bf86177 Regression: make --pdf-engine work with full paths (#4682)
Fixes #4681.
2018-06-03 13:59:11 -07:00
John MacFarlane
6ea706256d Support --number-sections in RST output...
via the "section-numbering" directive in standalone output.
2018-06-02 21:37:15 -07:00
John MacFarlane
d32e866449 LaTeX reader: handle includes without surrounding blanklines.
In addition, `\input` can now be used in an inline context,
e.g. to provide part of a paragraph, as it can in LaTeX.

Closes #4553.
2018-06-01 09:25:10 -07:00
mb21
0fc7d38544 Muse reader: get rid of non-exhaustive pattern match warning 2018-06-01 15:36:36 +02:00
Alexander Krotov
5fbc981fc2 Muse reader: add support for floating images 2018-05-31 23:31:27 +03:00
Alexander Krotov
1f78efff3b Muse reader: add support for images with specified width 2018-05-31 01:07:51 +03:00
kaizhang91
5a0e21b992 Clarify how Ext_east_asian_line_breaks extension works (API docs).
Note that it will not take effect when readers/writers are called as libraries (#4674).
2018-05-30 13:43:58 -07:00
John MacFarlane
aff401745c Revert "ALlow compilation with haddock-library 1.4 and above."
This reverts commit 50c71b5bc5.

This was a bad idea, since tests depend on recent haddock-library.
We'd be able to build but fail tests.
2018-05-30 13:13:57 -07:00
John MacFarlane
50c71b5bc5 ALlow compilation with haddock-library 1.4 and above.
haddock-library-1.6 requires Cabal >= 2.0.  This change allows
systems with older Cabal versions to build pandoc.
2018-05-30 13:06:44 -07:00
John MacFarlane
7119715a6a LaTeX reader rawLaTeXBlock: handle macros that resolve to a...
...`\begin` or `\end`.
Fixes #4667.
2018-05-30 12:49:01 -07:00
John MacFarlane
0dbbf16c3a LaTeX reader: tighten up reading of beamer overlay specifications.
Ideally we'd turn these on only when reading beamer, but currently
beamer is not distinguished from latex as an input format.

This commit also activates parsing of overlay specifications
after commands in general (e.g. `\item`), since they can occur
in many contexts in beamer.

Closes #4669.
2018-05-30 10:08:51 -07:00
John MacFarlane
252ab9b773 Markdown writer: preserve implicit_figures with attributes...
...even if `implicit_attributes` is not set, by rendering in
raw HTML.

Fixes #4677.
2018-05-30 09:24:52 -07:00
Alexander Krotov
1100bfc0e6 Muse reader: parse image URLs without "guard" and "takeExtension" 2018-05-30 02:29:43 +03:00
Alexander Krotov
bdf8c01f2c Muse reader: split link and image parsing into separate functions 2018-05-28 01:24:09 +03:00
Alexander Krotov
91aceeeff3 Muse reader: parse links starting with "URL:" explicitly
instead of trying to strip "URL:" prefix after parsing.
2018-05-27 23:58:02 +03:00
Yan Pas
c2ae72aa6c custom ordered lists 2018-05-27 14:09:34 +03:00
Yan Pas
9030c5ae46 nested lists 2018-05-26 23:29:36 +03:00
Yan Pas
1d7c71189a escape chars in macros 2018-05-26 20:12:41 +03:00
Yan Pas
1ce067fc2a tests, parsing fixes 2018-05-23 00:20:30 +03:00
John MacFarlane
81ed7948da Use haddock-library 1.6.0. 2018-05-20 17:05:23 -07:00
Yan Pas
7f7e1c21e2 lists 2018-05-20 16:47:58 +03:00
Yan Pas
a00323cbbe links, specialchars 2018-05-20 15:37:15 +03:00
Yan Pas
9e3eba64fd rename compile to parse, parse to lex 2018-05-20 13:13:06 +03:00
Yan Pas
d8c51ad788 states, code block compiling 2018-05-20 02:54:24 +03:00
Yan Pas
533d450507 compiling paragraphs 2018-05-20 01:51:53 +03:00
Yan Pas
6f793b5a63 tokenisation 2018-05-19 23:26:11 +03:00
John MacFarlane
884aef31c5 LaTeX reader: parse more siunitx unit commands.
Improves on earlier fix for #4296.
2018-05-16 15:50:26 -07:00
Albert Krewinkel
48ba3e815f
Custom writer: fix error message on script failure
Error messages produced by Lua were not displayed by Pandoc. The writer
was using the bottom-most stack element, while the error message is the
top-most element. This lead to the writer to always show "Lua 5.3" as
error message, disregarding the actual message.
2018-05-16 22:41:54 +02:00
John MacFarlane
58447bba98 rawLaTeXBlock: don't expand macros in macro definitions!
Closes #4653.  Note that this only affected LaTeX in markdown.
Added regression test.
2018-05-15 09:19:13 -07:00
John MacFarlane
2936967fa1 Docx writer: be sensitive to toc in YAML metadata.
Closes #4645.
2018-05-14 11:10:36 -07:00
John MacFarlane
2b89aaf04d Make internal links work in ODT/OpenDocument.
This adds proper bookmarks to the headers with non-null IDs.
Closes #4358.
2018-05-14 10:37:46 -07:00
John MacFarlane
f240adfc13 EPUB writer: properly escape pagetitle.
Previously we weren't escaping `&` and other XML characters
in the pagetitle, so a title containing a `&` would be invalid.
2018-05-12 09:31:15 -07:00
Yan Pas
b0b41cbbe6 Merge branch 'master' into groff_reader 2018-05-12 11:42:39 +03:00
Albert Krewinkel
d30fbc2879
Org reader: fix image filename recognition
Use a function from the *filepath* library to check whether a string is
a valid file name. The custom validity checker that was used before gave
wrong results, e.g. for absolute file paths on
Windows (kawabata/ox-pandoc#52).
2018-05-09 23:08:53 +02:00
John MacFarlane
b7356d3ddf Restored and undeprecated gladtex for HTML math.
- Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
  [API change, reverts removal in v2.2]
- Restored and undeprecated `--gladtex` option, removed in v2.2.

Closes #4607.
2018-05-09 11:29:20 -07:00
Yan Pas
ad19166bc3 fix build and tests 2018-05-09 20:40:37 +03:00
John MacFarlane
d3be567a73 Fix regression with tex math environments in HTML + MathJax.
Closes #4639.
2018-05-09 10:37:04 -07:00
John MacFarlane
81881ce470 Parsing: Lookahead for non-whitespace after single/double quote start.
Closes #4637.
2018-05-09 10:00:34 -07:00
Yan Pashkovsky
a337685fe0
Merge branch 'master' into groff_reader 2018-05-09 19:48:34 +03:00
Yan Pas
8e9973b9f7 remove debug code 2018-05-09 19:32:50 +03:00
Yan Pas
34f9ac9dbf codeblock handling 2018-05-09 19:25:24 +03:00
Yan Pas
83902ffdb2 links, paragraphs, codeblocks 2018-05-09 17:12:59 +03:00
Yan Pas
c1617565fc basic manfile parsing 2018-05-09 03:24:45 +03:00
John MacFarlane
b8231a8eca Fixed bug in uriPathToPath for Windows. 2018-05-08 11:31:00 -07:00
John MacFarlane
40603dd4cd Support underline in docx writer.
Updated golden test and confirmed validity of file.

Closes #4633.
2018-05-08 10:17:51 -07:00
John MacFarlane
780bf64d1d Use uriPathToPath with file: URIs.
Closes #4613.

Needs testing on Windows.
2018-05-08 09:56:42 -07:00
John MacFarlane
3a291dad35 Shared: add uriPathToPath.
This adjusts the path from a file: URI in a way that is sensitive
to Windows/Linux differences.  Thus, on Windows,
`/c:/foo` gets interpreted as `c:/foo`, but on Linux,
`/c:/foo` gets interpreted as `/c:/foo`.

See #4613.
2018-05-08 09:56:42 -07:00
John MacFarlane
eb733d1365 LaTeX reader: handle $ in /text{..} inside math.
This fixes the main problem in #4576.
There is still an issue about `\SI`, but that's a separate issue.
2018-05-08 09:11:39 -07:00
John MacFarlane
0d83ce3bc4 HTML writer: Strip links from headers when creating TOC.
Otherwise the TOC entries will not link to the sections.
Closes #4340.
2018-05-07 17:44:05 -07:00
Alexander Krotov
5879923422 Muse writer: add support for left-align and right-align classes
Address issue #4542
2018-05-07 14:54:20 +03:00
Alexander Krotov
621e864023 Use Data.Maybe.fromMaybe 2018-05-07 14:20:42 +03:00
Mauro Bieg
7c0ef68311 Revert piping html to pdf-engine (#4628)
* Revert "PDF: Use withTempDir in html2pdf."  We're going back to using tmpFile instead of piping
* Revert "html2pdf: inject base tag wih current working directory (#4443)"

Fixes #4413
2018-05-05 09:31:17 -07:00
Francesco Occhipinti
59f0c1d83b catch IO errors when writing media files, closes #4559 (#4619)
If we do not catch these errors, any malformed entry in a media bag
could cause the loss of a whole document output. An example of
malformed entry is an entry with an empty file path.
2018-05-04 10:31:02 -07:00
John MacFarlane
cf0b1e435b Relicense TikiWiki reader as GPL v2 or above, like rest of pandoc.
Author has given permission in an email, 3 May 2018.

See #4591.
2018-05-03 18:24:46 -07:00
Alexander Krotov
3d766b5c44 Don't lowercase custom writer filename
Fixes #4610
2018-04-30 00:55:25 +03:00
Alexander Krotov
5ce91a7e01 FB2 reader: replace some errors with warnings
Now FB2 reader can read writer.fb2, which does not validate (yet).
2018-04-28 22:44:07 +03:00
Francesco Occhipinti
8b01f03eaa RST writer: preserve empty inline parents in flatten (#4603) 2018-04-27 09:01:20 -07:00
Tim Parenti
9472811694 LaTeX writer: Update \lstinline delimiters. (#4369)
Don't delimit \lstinline with characters that are normally escaped.

Follow-up to #4111, #4271.
2018-04-26 12:41:15 -07:00
Alexander
1927bc9aac Add FB2 reader (#4539) 2018-04-26 12:33:18 -07:00
John MacFarlane
619aaf29aa Merge branch 'fb2-hrblankline' of https://github.com/labdsf/pandoc into labdsf-fb2-hrblankline 2018-04-26 12:29:06 -07:00
John MacFarlane
a96c762a10 RST reader: fix anonymous redirects with backticks.
Closes #4598.
2018-04-26 12:23:25 -07:00
John MacFarlane
e3d05171f3 Make --ascii work for all XML formats (ICML, OPML, JATS,...).
Also document in manual.
2018-04-26 12:23:25 -07:00
John MacFarlane
3ed4861c62 Make --ascii work with ms and man output. 2018-04-26 12:23:25 -07:00
Francesco Occhipinti
eef1c211f5 RST reader: flatten nested inlines, closes #4368 (#4554)
nested inlines are not valid RST syntax, so we flatten them following
some readability criteria discussed in #4368.
2018-04-26 12:17:51 -07:00
Joe Hermaszewski
cfa4eee28b DocBook Reader: Read Latex math as output by asciidoctor (#4569) 2018-04-26 12:12:28 -07:00
Alexander Krotov
1b5948b079 Remove unused import 2018-04-26 14:43:27 +03:00
Alexander Krotov
4d89a1db7f Muse reader: allow nested footnotes 2018-04-26 12:38:17 +03:00
Alexander Krotov
73463b8239 Muse reader: use Data.Map.member instead of lookup 2018-04-26 12:09:59 +03:00
Alexander Krotov
188f9f4c53 Simplify curSlideHasSpeakerNotes 2018-04-26 12:09:25 +03:00
John MacFarlane
c139a011fa LaTeX reader: fixed previous commit. 2018-04-25 23:47:43 -07:00
John MacFarlane
06bc0376d1 LaTeX reader: Improve handling of raw LaTeX (for markdown etc.).
Previously there were some bugs in how macros were handled.

Closes #4589, #4594.
2018-04-25 23:20:52 -07:00
John MacFarlane
a9344bf308 LaTeX reader: support \MakeUppercase, `\MakeLowercase'.
Also `\MakeTextUppercase`, `\MakeTextLowercase` from textcase
and `\uppercase`, `\lowercase`.

We don't mimic exactly the quirky semantic differences between
these commands, but just uppercase/lowercase regular strings within
them.  We leave commands and code alone.

Closes #4595.
2018-04-25 17:39:49 -07:00
John MacFarlane
16f36eee43 Removed deprecated ancient HTML math methods.
Removed `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
`--asciimathml` options.

Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
`Text.Pandoc.Options.HTMLMathMethod` [API change].

Removed unneeded data file LaTeXMathML.js and updated tests.

Bumped version to 2.2.
2018-04-25 17:18:56 -07:00
John MacFarlane
ad37fd8a03 Added licensing headers for DocBook, EPUB, JATS, OPML readers.
See #4592.
2018-04-25 16:36:20 -07:00
John MacFarlane
dab3330a58 RST reader: allow < 3 spaces indent under directives.
Closes #4579.
2018-04-22 12:20:25 -07:00
John MacFarlane
7fbe473b2e Markdown reader/writer: spacing adjustments in tables.
* Markdown writer now includes a blank line at the end
  of the row in a single-row multiline table, to prevent it from being
  interpreted as a simple table.  Closes #4578.
* Markdown reader does a better job computing the relative width of
  the last column in a multiline table, so we can round-trip tables
  without constantly shrinking the last column.
2018-04-21 13:06:57 -07:00
John MacFarlane
229db80ac2 makePDF: Don't try to convert eps files.
pdflatex converts them itself, and JuicyPixels can't do it.
See #2067.
2018-04-21 12:28:30 -07:00
John MacFarlane
cd51983afe makePDF: For pdflatex, use a temp dir in the working directory.
Otherwise we can have problems with things like epstopdf.pl,
which pdflatex runs to convert eps files and which won't run
on a file above the working directory in restricted mode.
2018-04-21 12:27:30 -07:00
John MacFarlane
ec30d56e19 Mime: Use the alias application/eps for eps.
Instead of application/postscript.  This will ensure that
we retain the eps extension after reading the image into
a mediabag and writing it again.  See #2067.
2018-04-21 12:11:48 -07:00
John MacFarlane
f508c833f1 Markdown reader: allow empty attributes.
See #2944.
2018-04-19 23:01:52 -07:00
John MacFarlane
276894a2f2 RST writer: use more consistent indentation.
Previously we used an odd mix of 3- and 4-space indentation.
Now we use 3-space indentation, except for ordered lists,
where indentation must depend on the width of the list marker.

Closes #4563.
2018-04-19 13:47:16 -07:00
John MacFarlane
c76565bef5 Parsing.uri: don't treat * characters at end as part of URI.
This fixes #4561, a bug parsing emphasized bare links in RST.
2018-04-19 11:49:17 -07:00
John MacFarlane
b15f4f468d Text.Pandoc.Class.writeMedia: unescape URI-escaping in file path.
This avoids writing things like `file%20one.png` to the file system.
2018-04-19 11:39:35 -07:00
John MacFarlane
b87dd19816 EPUB reader: fix images with space in file path.
Closes #4344.
2018-04-19 11:35:26 -07:00
Alexander Krotov
caeb963447 FB2 writer: convert metadata value "abstract" to book annotation 2018-04-19 17:03:21 +03:00
Alexander Krotov
ce4326a4f1 Muse reader: allow "-" in anchors 2018-04-19 14:17:59 +03:00
John MacFarlane
bc9d296e5a Markdown reader: handle table w/o following blank line in fenced div.
Closes #4560.
2018-04-18 18:27:15 -07:00
Jesse Rosenthal
b948ca6db2 Docx reader: Combine codeBlocks
This prevents a multiline codeblock in word from being read as
different paragraphs. This takes place in the Combine module to occur
during the normal combining of divs during conversion.

Note that this specifies that the attributes of the `CodeBlock`s must
be the same. The docx reader creates codeBlocks without attrs, so this
is trivially satisified.
2018-04-17 09:29:47 -04:00
John MacFarlane
8ac5eb9d44 Markdown reader: remove "fallback" for doubleQuote parser.
Previously the parser tried to be efficient -- if no end double
quote was found, it would just return the contents.  But this
could backfire in a case like:

    **this should "be bold**

since the fallback would return the content `"be bold**` and the
closing boldface delimiter would never be encountered.
2018-04-16 23:15:09 -07:00
John MacFarlane
57256d6d91 Beamer writer: don't use format specifier for default ordered lists.
This gives better results for styles that put ordered list
markers in boxes or circles.

Closes #4556.
2018-04-16 19:02:49 -07:00
Alexander Krotov
04478cf0e2 hlint Muse writer 2018-04-16 16:03:49 +03:00
Alexander Krotov
46cc1e73b6 Muse writer: simplify isHorizontalRule 2018-04-16 15:36:30 +03:00
Alexander Krotov
a8122987fc Muse reader: allow verse to be indented
Muse writer indents verse blocks in definition list more than necessary, so Muse reader should parse them.
2018-04-16 15:08:34 +03:00
Alexander Krotov
fb014e6e9f Muse reader code cleanup 2018-04-16 13:22:31 +03:00
Alexander Krotov
f39931fd6c Muse writer: escape definition list terms starting with list markers 2018-04-16 11:40:18 +03:00
John MacFarlane
8ca012f139 Ms writer: font improvements.
* Use `\f[R]` rather than `\f[]` to reset.  The latter
  returns to the previous font, which gives unintended
  results in some cases.
* Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
  since the header font is automatically bold.
* Use `\f[CB]` rather than `\f[BC]` for monospace bold.

Closes #4552.
2018-04-15 22:44:16 -07:00
Alexander Krotov
01f5ed14e6 Muse reader: don't allow footnote references inside links 2018-04-15 17:53:53 +03:00
Alexander Krotov
17767bd29d Muse writer: escape strings starting with space 2018-04-15 16:28:45 +03:00
Alexander Krotov
9cc2bf0295 Muse reader: allow URL to be empty
Muse writer can write links with empty URLs, so Muse reader should read them.
2018-04-15 14:50:46 +03:00
Alexander Krotov
6be0139145 Muse reader: require that comment semicolons are in the first column
Fixes #4551
2018-04-15 12:17:33 +03:00
John MacFarlane
34d8ffbcfc Added a needed import in Text.Pandoc.App. 2018-04-14 17:44:44 -07:00
John MacFarlane
16439c879e Ms writer link improvements.
+ Create pdf anchor for a Div with an identifier.
+ Escape `/` character in anchor ids.
+ Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
  to avoid ambiguity.

This is intended to help with #4515; however, in my tests, the
link to the reference does not seem to work. I'm not sure why.
2018-04-14 10:59:01 -07:00
John MacFarlane
d5b98c8c6e Man writer: Don't escape U+2019 as '.
Closes #4550.
2018-04-14 10:42:05 -07:00
John MacFarlane
499c91dd96 Fix bash completion for --print-default-data-file.
Previously this looked in the filesystem, even if pandoc
was compiled with `embed_data_files` (and sometimes it looked
in a nonexistent build directory).  Now the bash completion
script just includes a hard-coded list of data file names.
See #4549.
2018-04-12 09:52:10 -07:00
Alexander Krotov
782ab73aa3 Muse writer: escape > less often
> should be escaped only when it can start verse, i.e., at the beginning of the line.
2018-04-10 23:38:30 +03:00
John MacFarlane
72878adc63 PDF: Use withTempDir in html2pdf.
This is intended to help with #4524, a problem on Windows
where using weasyprint led to a blank PDF.
2018-04-09 09:49:09 -07:00
Alexander Krotov
52803e2960 Muse writer: don't break headers, line blocks and tables with line breaks 2018-04-09 04:24:08 +03:00
Alexander Krotov
79b67dec78 Muse writer: fix Haddock comment 2018-04-09 04:24:08 +03:00
Alexander Krotov
44093930a8 Muse writer: correctly output empty headings 2018-04-09 04:10:05 +03:00
John MacFarlane
c82ee315de DocBook reader: properly handle title in section element.
Previously we just got `section_title` for section (though sect1, sect2,
etc. were handled properly).  Closes #4526.
2018-04-08 16:51:01 -07:00
Alexander Krotov
17b0499516 Muse reader: add support for Text:Amuse multiline headings 2018-04-09 02:05:57 +03:00
Alexander Krotov
bfbc5ee373 Muse reader: remove redundant brackets 2018-04-09 02:05:56 +03:00
Alexander Krotov
e6aeab8cec Fix a comment 2018-04-09 00:02:55 +03:00
Alexander Krotov
c6df281ace Muse reader: replace foldl with foldr 2018-04-08 11:47:10 +03:00
Alexander Krotov
579f4223bf Muse reader: move F out of MuseTableElement definition 2018-04-08 11:20:15 +03:00
Alexander Krotov
2bc5fb6d83 Muse reader: document implementation 2018-04-08 06:51:10 +03:00
Alexander Krotov
4cb053ce3d Muse reader: replace pattern matching with "when" 2018-04-07 19:06:40 +03:00
Alexander Krotov
828bfc749d Muse reader: don't return link title from linkText parser
Title is always empty in Muse anyway.
2018-04-07 18:45:30 +03:00
Alexander Krotov
ebbd441d06 Muse reader: add support for <biblio> and <play> tags 2018-04-07 18:31:06 +03:00
Alexander Krotov
eecf609792 Muse reader: replace returnF with return . return 2018-04-07 18:05:48 +03:00
Alexander Krotov
f9aa2eb353 FB2 writer: output links inline instead of producing notes
Previously all links were turned into footnotes with unclickable URLs inside.
2018-04-07 17:12:55 +03:00
Jesse Rosenthal
394f4536e1 Powerpoint writer: Handle Quoted Inlines
Closes: #4532
2018-04-05 14:03:15 -04:00
John MacFarlane
7e99178a09 Changes to tests to accommodate changes in pandoc-types.
In https://github.com/jgm/pandoc-types/pull/36 we changed
the table builder to pad cells.  This commit changes tests
(and two readers) to accord with this behavior.
2018-04-05 10:14:06 -07:00
John MacFarlane
d77e8f45c9 LaTEX reader: properly resolve section numbers with \ref and chapters.
Closes #4529.
2018-04-05 10:14:06 -07:00
Alexander Krotov
f224567d52 FB2 writer: represent HorizontalRule as empty line
HorizontalRule corresponds to <hr> element in the default output
format, HTML. Current HTML standard defines <hr> element as
"paragraph-level thematic break". In typography it is often
represented by extra space or centered asterism ("⁂"), but since
FB2 does not support text centering, empty line (similar to extra space)
is the only solution.

Line breaks, on the other hand, don't generate <empty-line />
anymore. Previously line breaks generated <empty-line /> element
inside paragraph, which is not allowed. So, this commit addresses
issue #2424 ("FB2 produced by pandoc doesn't validate").

FB2 does not have a way to represent line breaks inside paragraphs.
They are replaced with LF character, which is not rendered by
FB2 readers, but at least preserves some information.
2018-04-05 19:53:36 +03:00
Alexander Krotov
87dda2109d Muse writer: escape horizontal rule only if at the beginning of the line 2018-04-05 19:49:09 +03:00
Alexander Krotov
16104881b3 Muse writer: simplify escaping in inlineToMuse Image{} 2018-04-05 19:49:09 +03:00
quasicomputational
13538ce6eb CommonMark writer: correctly ignore LaTeX raw blocks when not raw_tex (#4533)
Issue #4527.
2018-04-05 08:53:42 -07:00