John MacFarlane
8677aa92fc
release-candidate: pin upload-artifact to specific version.
2020-07-23 21:32:17 -07:00
John MacFarlane
2105ee5809
Update changelog.
2020-07-23 18:27:56 -07:00
John MacFarlane
8c8d3bacb8
Markdown writer: use numerical labels for refs...
...
...that are longer than 999 characters or contain
square brackets. For conformity with commonmark.
Closes #6560
2020-07-23 18:26:29 -07:00
John MacFarlane
5a216f7bd7
update date, man page, README.
2020-07-23 17:56:12 -07:00
John MacFarlane
42b3f558d9
Update changelog.
2020-07-23 17:51:59 -07:00
John MacFarlane
48fb6d947d
Add raw_markdown
extension affecting ipynb
reader.
...
Specifying `-f ipynb+raw_markdown` will cause Markdown cells
to be represented as raw Markdown blocks, instead of being
parsed. This is not what you want when going from `ipynb`
to other formats, but it may be useful when going from `ipynb`
to Markdown or to `ipynb`, to avoid semantically insignificant
changes in the contents of the Markdown cells that might
otherwise be introduced.
Closes #5408 .
2020-07-23 17:47:02 -07:00
John MacFarlane
ac1f45c553
Update changelog and bump to 2.10.1.
2020-07-23 17:30:57 -07:00
Emerson Harkin
1b8f161198
Minimal support for SIRange in LaTeX reader ( #6418 )
...
Add support for `\SIRange{firstnumber}{secondnumber}{unit}` provided by siunitx.
An en-dash is used instead of localized "to".
2020-07-23 16:47:32 -07:00
John MacFarlane
c37a56e060
Use commonmark-0.1.0.1.
...
Partially addresses #6556 .
2020-07-23 16:36:44 -07:00
Laurent P. René de Cotret
8c3b5dd3ae
Col-span and row-span in LaTeX reader ( #6470 )
...
Add multirow and multicolumn support in LaTex reader.
Partially addresses #6311 .
2020-07-23 11:23:21 -07:00
John MacFarlane
a0e3172a0b
Further improvements to ams theorem support, and a test.
...
See #1608 .
2020-07-23 11:11:28 -07:00
John MacFarlane
98c922ad43
LaTeX reader: Add identifier in divs for ams theorem environments.
2020-07-23 10:44:05 -07:00
John MacFarlane
ff0e130560
LaTeX reader: SUpport ams \theoremstyle
.
2020-07-22 23:52:28 -07:00
John MacFarlane
cdaaaa3f63
Implement first optional argument for \newtheorem
.
...
This allows groups of theorem environments to be
put in the same numbering sequence.
2020-07-22 23:30:41 -07:00
John MacFarlane
f014d71a2f
LaTeX reader: Don't boldface alt title in theorems.
2020-07-22 22:59:28 -07:00
John MacFarlane
9d07d180f0
LaTeX reader: support theorem environments and \newtheorem
.
...
Includes numbering and labels and refs.
Note that numbering support is not complete; we don't
reset numbers with sections for example.
2020-07-22 16:30:10 -07:00
John MacFarlane
65865b3186
LaTeX reader: support ams proof environment.
2020-07-22 14:23:26 -07:00
John MacFarlane
7faa9d9064
Moved more from LaTeX reader to LaTeX.Parsing.
2020-07-22 12:05:35 -07:00
John MacFarlane
1e84178431
Docx writer: support --number-sections.
...
Closes #1413 .
2020-07-22 11:53:31 -07:00
John MacFarlane
3bccc08f6c
Merge pull request #6552 from favonia/patch-1
...
Update using-the-pandoc-api.md
2020-07-22 11:16:24 -07:00
favonia
2bdb1e64eb
Update using-the-pandoc-api.md
2020-07-21 14:31:46 -05:00
John MacFarlane
942e3ee1f9
RST reader: fix csv tables with multiline cells.
...
Closes #6549 .
2020-07-21 10:20:15 -07:00
John MacFarlane
fe315a8290
Move some code from T.P.R.LaTeX. to T.P.R.LaTeX.Parsing.
...
We need to reduce the size of the LaTeX reader to ease
compilation on resource-limited systems. More can be done
in this vein.
2020-07-20 23:36:54 -07:00
John MacFarlane
e17b4718d4
Use commonmark-extensions, commonmark-pandoc 0.2.
2020-07-19 22:51:59 -07:00
John MacFarlane
490f34dee5
Markdown writer: move asciify out of escapeString.
...
Otherwise unsmartify doesn't catch quotes that have
already been turned to entities.
2020-07-19 22:51:59 -07:00
John MacFarlane
d6b7b1dc77
Remove use of cmark-gfm for commonmark/gfm rendering.
...
Instead rely on the markdown writer with appropriate extensions.
Export writeCommonMark variant from Markdown writer.
This changes a few small things in rendering markdown,
e.g. w/r/t requiring backslashes before spaces inside
super/subscripts.
2020-07-19 22:51:59 -07:00
John MacFarlane
a63105ffff
Markdown writer: use unicode super/subscript characters...
...
when possible if the superscript or subscript extension or
raw_html aren't available.
2020-07-19 22:51:59 -07:00
John MacFarlane
8d0676ec4d
Markdown writer: render caption as following paragraph...
...
when `Ext_table_caption` not enabled.
2020-07-19 22:51:59 -07:00
John MacFarlane
0df5ea87cf
Use released versions of commonmark libraries.
2020-07-19 22:51:59 -07:00
John MacFarlane
0aed9dd589
Add commonmark_x output format...
...
commonmark with a number of useful extensions (more than gfm).
2020-07-19 22:51:59 -07:00
John MacFarlane
3a22fbd11b
Trim down githubMarkdownExtensions.
...
Previously it included all of the following, which make
sense for the legacy markdown_github but not for gfm,
since they are part of base commonmark and thus
can't be turned off in gfm:
- `Ext_all_symbols_escapable`
- `Ext_backtick_code_blocks`
- `Ext_fenced_code_blocks`
- `Ext_space_in_atx_header`
- `Ext_intraword_underscores`
- `Ext_lists_without_preceding_blankline`
- `Ext_shortcut_reference_links`
`
These have been removed from `githubMarkdownExtensions`, though
they're still turned on for legacy `markdown_github`.
2020-07-19 22:51:59 -07:00
John MacFarlane
8d523d80d4
Add generic attributes
extension.
...
This allows attributes to be added to any block or inline
element, in principle. (Though in many cases this will be
done by adding a Div or Span container, since pandoc's
AST doesn't have a slot for attributes for most elements.)
Currently this is only possible with the commonmark and gfm
readers.
Add `Ext_attributes` constructor for `Extension` [API change].
2020-07-19 22:51:59 -07:00
John MacFarlane
0db4702042
Use commonmark-hs to parse commonmark/gfm...
...
...instead of cmark-gfm (a wrapper around a C library).
We can now support many more pandoc extensions for
commonmark and gfm.
Add fenced_code_attributes to gfm/commonmark extensions.
2020-07-19 22:51:59 -07:00
John MacFarlane
c2cc4a0504
CI: Drop testing on ghc 8.0.2.
2020-07-19 22:51:59 -07:00
John MacFarlane
7dbf03f527
MANUAL.txt: rewrite Raw HTML/TeX section...
...
...to avoid duplicate headings for the extensions.
2020-07-19 22:51:59 -07:00
John MacFarlane
8ede05161f
Merge pull request #6495 from tarleb/html5-figure-accessiblity
...
HTML writer: improve alt-text/caption handling for HTML5
2020-07-19 11:24:54 -07:00
John MacFarlane
89b8624269
Merge pull request #6547 from Blake-Eryx/master
...
Remove duplicate 'titlepage' in docs
2020-07-19 11:15:11 -07:00
Blake Eryx
920732078c
Remove duplicate 'titlepage' in docs
2020-07-19 14:03:18 -04:00
John MacFarlane
3b563cfe8f
DocBook reader: parse releaseinfo as metadata.
...
Closes #6542 .
Note that you'll need to put releaseinfo somewhere in your
template if you want this to be part of the converted output.
2020-07-18 12:32:31 -07:00
Albert Krewinkel
36fede2b02
Jira writer: keep image caption as alt attribute
...
Fixes #6529
2020-07-17 16:02:40 +02:00
John MacFarlane
06d834caaa
Use selnolig to selectively suppress ligatures with lualatex.
...
Closes #6534
2020-07-15 13:28:44 -07:00
John MacFarlane
302543af08
Docbook reader: remove misleading comment...
...
suggesting that releaseinfo is handled. It isn't.
2020-07-14 10:10:43 -07:00
John MacFarlane
2cc0d68ca0
Merge pull request #6527 from lierdakil/fix-6514
...
[Docx Reader] Only use bCs/iCs on runs with rtl or cs property
2020-07-13 10:57:04 -07:00
John MacFarlane
86d465e572
Merge pull request #6528 from lierdakil/fix-ci-haskell-setup
...
[CI] Use setup-haskell action
2020-07-13 10:36:20 -07:00
Nikolay Yakimov
22c373370c
[Docx Reader] Only use bCs/iCs on runs with rtl or cs property
...
Fixes #6514
2020-07-13 19:50:06 +03:00
Nikolay Yakimov
f52337ccdc
[CI] Use setup-haskell action
2020-07-13 19:49:36 +03:00
John MacFarlane
c3b170be1c
Merge pull request #6513 from brisad/master
...
Escape starting periods in ms writer code blocks
2020-07-12 17:02:06 -07:00
John MacFarlane
651a3d96c4
Merge pull request #6506 from bewuethr/fix-manual-typo
...
Fix typo in MANUAL.txt
2020-07-12 16:56:13 -07:00
John MacFarlane
7be86b148e
Merge pull request #6509 from lierdakil/docx-smush-inlines-refactor
...
[Docx Reader] Refactor/update Text.Pandoc.Readers.Docx.Combine.smushInlines
2020-07-12 16:55:35 -07:00
John MacFarlane
20aea4c73e
Merge pull request #6508 from lierdakil/bench-bs-readers
...
[Bench] Benchmark bytestring readers
2020-07-12 16:53:47 -07:00