John MacFarlane
0c8ab8a12f
Update README.md, man page.
2020-11-19 13:05:02 -08:00
John MacFarlane
b36ffef38e
Update changelog.
2020-11-19 13:04:10 -08:00
John MacFarlane
a7b2bfb42d
reveal.js template fixes.
...
Put quotes around `controlsLayout`, `controlsBackArrows`,
and `display`, since these require strings.
Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
2020-11-19 11:56:05 -08:00
John MacFarlane
c1fbe7b91a
--self-contained: increase coverage.
...
Previously we only self-contained attributes for
certain tag names (`img`, `embed`, `video`, `input`, `audio`,
`source`, `track`, `section`). Now we self-contain any
occurrence of `src`, `data-src`, `poster`, or `data-background-image`,
on any tag; and also `href` on `link` tags.
Closes #6854 (which specifically asked about
`asciinema-player` tags).
2020-11-19 10:08:43 -08:00
John MacFarlane
433605f9b9
INSTALL.md: Remove references to pandoc-citeproc
.
...
Closes #6857 .
2020-11-19 09:40:46 -08:00
John MacFarlane
e16df8d271
DocBook reader: drop period in formalpara title...
...
...and put it in a div with class `formalpara-title`, so that
people can reformat with filters.
Closes #6562 .
Thanks to rdmuller.
2020-11-19 09:33:29 -08:00
John MacFarlane
6b057d6d18
latex template: add a \break
after parbox in CSLRightInline.
...
This should fix spacing problems between entries
with numeric styles.
2020-11-18 23:22:34 -08:00
John MacFarlane
356795dba0
latex template: fix number of params on CSLReferences.
2020-11-18 22:49:35 -08:00
John MacFarlane
0962b30d84
Man reader: improve handling of .IP.
...
We now better handle `.IP` when it is used with non-bullet,
non-numbered lists, creating a definition list.
We also skip blank lines like groff itself.
Closes #6858 .
2020-11-18 22:44:32 -08:00
John MacFarlane
3f278f580e
Remove 'static' flag.
...
This isn't really necessary and can be misleading
(e.g. on macOS, where a fully static build isn't
possible). cabal's new option
`--enable-executable-static` does the same. On stack
you can add something like this to the options for your
executable in package.yaml:
ld-options: -static -pthread
2020-11-18 21:08:24 -08:00
John MacFarlane
7fa4d367bb
Re-add -optc-Os to static linux build, because it makes binary smaller.
2020-11-18 19:02:04 -08:00
John MacFarlane
2002481aee
Simplify options for building static linux binary.
2020-11-18 17:49:41 -08:00
John MacFarlane
e17f970ed0
Use citeproc 0.2
2020-11-18 17:49:30 -08:00
John MacFarlane
46bbdad838
Don't allow macos builds with 'static' flag.
...
Closes #6771 .
2020-11-18 15:41:48 -08:00
Albert Krewinkel
023468ea2d
JATS writer: wrap all tables
...
All `<table>` elements are put inside `<table-wrap>` elements, as the
former are not valid as immediate child elements of `<body>`.
2020-11-18 18:10:17 +01:00
Albert Krewinkel
56f607b50b
CI: validate JATS table output
2020-11-18 18:10:11 +01:00
TEC
0306eec5fa
Replace org #+KEYWORDS with #+keywords
...
As of ~2 years ago, lower case keywords became the standard (though they
are handled case insensitive, as always):
13424336a6
Upper case keywords are exclusive to the manual:
- https://orgmode.org/list/871s50zn6p.fsf@nicolasgoaziou.fr/
- https://orgmode.org/list/87tuuw3n15.fsf@nicolasgoaziou.fr/
2020-11-18 14:48:56 +01:00
TEC
224a501b29
Update org supported languages and identifiers
...
according to the current list contained in
https://orgmode.org/worg/org-contrib/babel/languages/index.html
2020-11-18 14:48:56 +01:00
John MacFarlane
efa34a8de6
Bibtex reader: fall back on en-US if locale for LANG not found.
...
This reproduces earlier pandoc-citeproc behavior.
Closes jgm/citeproc#26 .
2020-11-17 23:12:32 -08:00
John MacFarlane
bf3fea0a8c
Markdown reader: fix regression with example list references.
...
This affects example list references followed by dashes.
Introduced by commit b8d17f7
.
Closes #6855 .
2020-11-17 20:36:59 -08:00
John MacFarlane
d464757132
Remove obsolete bibutils flag setting on linux/make_artifacts.sh.
2020-11-17 09:07:08 -08:00
Albert Krewinkel
94c9028819
JATS writer: move Table handling to separate module
...
This makes it easier to split the module into smaller parts.
2020-11-17 09:46:30 +01:00
John MacFarlane
c9ada73cac
Move getNextNumber from Readers.LaTeX to Readers.LaTeX.Parsing.
2020-11-16 22:36:10 -08:00
John MacFarlane
57102d6ac4
CI: remove setup-haskell for windows.
...
It is no longer necessary, because ghc, cabal, and stack are
pre-installed.
2020-11-16 21:06:25 -08:00
John MacFarlane
3e7076c85b
Update setup-haskell version.
2020-11-16 18:25:56 -08:00
John MacFarlane
ee34c4fef8
Only use filterIpynbOutput if input format is ipynb.
...
Closes #6841 .
2020-11-16 18:21:30 -08:00
John MacFarlane
98bedd7631
When checking reader/writer name, check base name...
...
now that we permit extensions on formats other
than markdown.
2020-11-16 17:49:23 -08:00
John MacFarlane
5271c6b3fb
Improve fix to siunitx numbers with minus.
...
- use real minus sign
- use tests contributed by Igor Pashev.
2020-11-16 16:36:16 -08:00
John MacFarlane
734b4c26a9
LaTeX reader: Fix negative numbers in siunitx commands.
...
The commit a157e1a
broke negative numbers, e.g.
`\SI{-33}{\celcius}` or `\num{-3}`. This fixes the regression.
2020-11-16 14:08:29 -08:00
Alex Toldaiev
dcf99f29e0
Added a sentence about pagetitle
for HTML ( #6843 )
...
changed: MANUAL.txt
2020-11-16 13:34:57 -08:00
Albert Krewinkel
0777e45d9e
CONTRIBUTING: describe hlint and how it's used ( #6840 )
2020-11-16 06:55:21 -08:00
John MacFarlane
d7f905fb63
Markdown reader: fix detection of locators following in-text citations.
...
Prevously, if we had `@foo [p. 33; @bar]`, the `p. 33` would be
incorrectly parsed as a prefix of `@bar` rather than a suffix
of `@foo`.
2020-11-15 17:51:03 -08:00
John MacFarlane
f8225140a5
Text.Pandoc.PDF: Fix changePathSeparators
for Windows.
...
Previously a path beginning with a drive, like
`C:\foo\bar`, was translated to `C:\/foo/bar`, which
caused problems.
With this fix, the backslashes are removed.
Closes #6173 .
2020-11-15 10:43:43 -08:00
John MacFarlane
79907e5f17
Bump to 2.11.2 for next release (minor API change in Logging).
2020-11-15 08:34:45 -08:00
Albert Krewinkel
26f946af20
Remove redundant bracket in App.Opt
2020-11-15 12:08:15 +01:00
John MacFarlane
51b5b90956
Fix small typo in manual for --markdown-headings
.
2020-11-14 21:50:53 -08:00
John MacFarlane
c4029dcfed
MANUAL: wrap some overly long lines.
2020-11-14 21:49:12 -08:00
John MacFarlane
b5d066f167
Revise deprecation warning for --atx-headers.
2020-11-14 21:41:50 -08:00
Aner Lucero
f63b76e169
Markdown writer: default to using ATX headings.
...
Previously we used Setext (underlined) headings by default.
The default is now ATX (`##` style).
* Add the `--markdown-headings=atx|setext` option.
* Deprecate `--atx-headers`.
* Add constructor 'ATXHeadingInLHS` constructor to `LogMessage` [API change].
* Support `markdown-headings` in defaults files.
* Document new options in MANUAL.
Closes #6662 .
2020-11-14 21:33:32 -08:00
John MacFarlane
b8d17f7ae8
Markdown reader: don't increment stateNoteNumber for example refs.
...
Background: syntactically, references to example list items
can't be distinguished from citations; we only know which they
are after we've parsed the whole document (and this is resolved
in the `runF` stage).
This means that pandoc's calculation of `citationNoteNum`
can sometimes be wrong when there are example list references.
This commit partially addresses #6836 , but only for the case
where the example list references refer to list items defined
previously in the document.
2020-11-14 15:00:17 -08:00
John MacFarlane
68b298ed9a
Improve period suppression algorithm for citations in notes...
...
in note citation styles. See #6835 .
2020-11-13 10:52:21 -08:00
gison93
fec695c77a
Fix error when extension output is doc ( #6834 )
2020-11-13 09:07:31 -08:00
John MacFarlane
7f3afc3157
Manual: correct link-citation
-> link-citations
.
2020-11-11 10:02:23 -08:00
John MacFarlane
7d298d13d9
Remove redundant bracket.
2020-11-10 10:34:46 -08:00
John MacFarlane
7d01887dda
Fix corner case in YAML metadata parsing.
...
Previously YAML metadata would sometimes not get recognized if a
field ended with a newline followed by spaces. Closes #6823 .
2020-11-10 09:47:24 -08:00
John MacFarlane
cfb017c76b
Bump to 2.11.1.1 and update changelog.
2020-11-07 11:12:19 -08:00
John MacFarlane
08ce3addde
Hlint suggestions.
2020-11-07 10:53:07 -08:00
Albert Krewinkel
527346cc7e
Lint code in PRs and when committing to master ( #6790 )
...
* Remove unused LANGUAGE pragmata
* Apply HLint suggestions
* Configure HLint to ignore some warnings
* Lint code when committing to master
2020-11-07 10:38:03 -08:00
Albert Krewinkel
0ed3436588
doc/filters.md: describe technical details of filter invocations ( #6815 )
2020-11-06 15:37:24 -08:00
John MacFarlane
22e5efe6a2
Comment out source-repository-package from cabal.project.
2020-11-06 09:26:09 -08:00