aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-11-06Comment out source-repository-package from cabal.project.John MacFarlane1-4/+4
2020-11-06Support nocase spansn for csljson outputJohn MacFarlane1-0/+1
2020-11-05Use citeproc 0.1.1.1.John MacFarlane2-3/+2
Closes #6813.
2020-11-05Require latest commonmark, commonmark-extensions.John MacFarlane2-4/+4
Fixes a bug with `autolink_bare_uris` and commonmark.
2020-11-05LaTeX reader: better handling of `\\` inside math in table cells.John MacFarlane1-0/+2
Previously this confused the table parser. Closes #6811.
2020-11-05Use latest commonmark, commonmark-extensions.John MacFarlane2-4/+4
2020-11-05Citeproc: improve punctuation in in-text note citations.John MacFarlane1-8/+15
Previously in-text note citations inside a footnote would sometimes have the final period stripped, even if it was needed (e.g. on the end of 'ibid'). See #6813.
2020-11-04DokuWiki writer: translate language names for code elements...John MacFarlane3-14/+36
...and improve whitespace. Closes #6807.
2020-11-04MediaWiki writer: use syntaxhighlight tag...John MacFarlane1-2/+9
instead of deprecated source, for highlighted code. Also support `startFrom` attribute and `numberLines`. Closes #6810.
2020-11-04Use citeproc 0.1.1.John MacFarlane3-4/+3
2020-11-04Simplified idpred in citeproc.John MacFarlane1-2/+1
2020-11-03Update AUTHORS.mdJohn MacFarlane1-0/+1
2020-11-03Update man page and changelog.John MacFarlane2-1/+4
2020-11-03man template: change tbl comment to `'\" t`.John MacFarlane1-1/+1
This is what is specified in groff_man(7). Closes #6803.
2020-11-03Update changelogJohn MacFarlane1-0/+3
2020-11-03Document pandoc's handling of metadata in JATS output (#6794)Albert Krewinkel1-0/+299
2020-11-03Regenerate man page.John MacFarlane1-5/+5
2020-11-03Update changelog.John MacFarlane1-6/+15
2020-11-03Clarify manual on `--track-changes`.John MacFarlane1-12/+12
Closes #6801.
2020-11-03LaTeX template: fix `\CSLRightInline`...John MacFarlane1-3/+3
so that it does not run over the right margin.
2020-11-03Properly support optional cite argument for `\blockquote`.John MacFarlane2-7/+17
(LaTeX reader) Closes #6802.
2020-11-02Update man page.John MacFarlane2-2/+32
2020-11-02Bump version to 2.11.1 and update changelog.John MacFarlane2-1/+91
2020-11-02LaTeX reader: fix bug parsing macro arguments.John MacFarlane2-1/+21
If `\cL` is defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then `\til\cL` should expand to `\tilde{\mathcal{L}}`, but pandoc was expanding it to `\tilde\mathcal{L}`. This is fixed by parsing the arguments in "verbatim mode" when the macro expands arguments at the point of use. Closes #6796.
2020-11-02Default CSS tweaks.John MacFarlane5-75/+70
These changes restore the 20px font size while increasing readibility by reducing line width. (The number of words per line is now similar to that of pandoc's default LaTeX/PDF output.) With the narrower lines, we also need less interline and interparagraph space, so the content becomes more compact and skimmable: - Change default font size back to 20px. - Set font-size for print media to 12pt. - Reduce interline space. - Reduce interparagraph space. - Reduce line width. - Remove the special `line-height: 1` for table cells, which I had suggested but which now seems a mistake. - Remove the special line-height for pre. - Ensure that there is a bit more space before a heading than after. - Slightly reduced space after title header.
2020-11-02T.P.Filter: allow shorter YAML representation of CiteprocAlbert Krewinkel1-3/+5
The map-based YAML representation of filters expects `type` and `path` fields. The path field had to be present for all filter types, but is not used for citeproc filters. The field can now be omitted when type is "citeproc", as described in the MANUAL.
2020-11-01Default CSS: avoid padding and color if monobackgroundcolor not given.John MacFarlane6-20/+9
This makes the default more austere, while putting the padded, colored code elements within easy reach.
2020-11-01Updates to default CSS (#6786)Mauro Bieg6-43/+213
- Fix margin before codeblock - Add `monobackgroundcolor` variable, making the background color and padding of code optional. - Ensure that backgrounds from highlighting styles take precedence over monobackgroundcolor - Remove list markers from TOC - Add margin-bottom where needed - Remove italics from blockquote styling - Change borders and spacing in tables to be more consistent with other output formats - Style h5, h6 - Decrease root font-size to 18px - Update tests for styles.html changes - Add CSS example to MANUAL
2020-11-01Fix code example in lua-filters.md.John MacFarlane1-1/+2
Closes #6795, thanks to Odin Kroeger.
2020-11-01Use latest commonmark, commonmark-extensions.John MacFarlane2-4/+4
This fixes a bug with nested blocks in footnotes with the `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
2020-11-01Citeproc: use comma for in-text citations inside footnotes.John MacFarlane2-9/+19
When an author-in-text citation like `@foo` occurs in a footnote, we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`. Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`. This gives better results. Note that normal citations are still rendered in parentheses.
2020-11-01Improve deNote.John MacFarlane1-4/+5
2020-11-01Use latest citeproc.John MacFarlane2-2/+2
2020-10-31CI: improve JATS format validator workflowAlbert Krewinkel1-8/+14
2020-10-31JATS templates: ensure jats_publishing output is validAlbert Krewinkel3-0/+17
2020-10-31CI: validate JATS old-style writer test outputAlbert Krewinkel1-0/+47
2020-10-30Fix duplicate "class" attribute in HTML writerAndy Morris3-14/+16
2020-10-29Use new citeproc; do note capitalization here, not in citeproc.John MacFarlane5-7/+16
2020-10-29Allow citation-abbreviations in defaults file.John MacFarlane2-0/+6
2020-10-29LaTeX writer: Improved calculation of table column widths.John MacFarlane4-49/+79
We now have LaTeX do the calculation, using `\tabcolsep`. So we should now have accurate relative column widths no matter what the text width. The default template has been modified to load the calc package if tables are used.
2020-10-27Use latest citeproc. Closes #6783.John MacFarlane3-5/+32
2020-10-27Remove obsolete commentJohn MacFarlane1-1/+0
2020-10-27Citeproc: properly handle `csl` field with `data:` URI.John MacFarlane1-1/+1
This is used with the JATS writer, so this fixes a regression in pandoc 2.11 with JATS output and citeproc. Closes #6783.
2020-10-26Add PandocBibliographyError and use it in parsing bibliographies.John MacFarlane2-5/+10
This ensures that bibliography parsing errors generate messages that include the bibliography file name -- otherwise it can be quite mysterious where it is coming from. [API change] New PandocBibliographyError constructor on PandocError type.
2020-10-26DocBook Reader: fix duplicate bibliography bug (#6773)Nils Carlson2-5/+24
Also add unit test to ensure the behavior stays consistent.
2020-10-23HTML reader: Parse contents of iframes.John MacFarlane1-4/+17
See #6770.
2020-10-23HTML reader: parse inline svg as image...John MacFarlane1-0/+17
...unless `raw_html` is set in the reader (in which case the svg is passed through as raw HTML). Closes #6770.
2020-10-23Update man page.John MacFarlane1-1/+3
2020-10-23Update changelog.John MacFarlane1-1/+4
2020-10-23Document that --html-q-tags requires the smart extension on the reader.John MacFarlane1-1/+3
Closes #6766.