aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-11-14MANUAL: wrap some overly long lines.John MacFarlane1-102/+130
2020-11-14Revise deprecation warning for --atx-headers.John MacFarlane1-1/+1
2020-11-14Markdown writer: default to using ATX headings.Aner Lucero36-194/+202
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-14Markdown reader: don't increment stateNoteNumber for example refs.John MacFarlane3-1/+30
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-13Improve period suppression algorithm for citations in notes...John MacFarlane2-3/+24
in note citation styles. See #6835.
2020-11-13Fix error when extension output is doc (#6834)gison931-1/+1
2020-11-11Manual: correct `link-citation` -> `link-citations`.John MacFarlane1-1/+1
2020-11-10Remove redundant bracket.John MacFarlane1-1/+1
2020-11-10Fix corner case in YAML metadata parsing.John MacFarlane1-1/+4
Previously YAML metadata would sometimes not get recognized if a field ended with a newline followed by spaces. Closes #6823.
2020-11-07Bump to 2.11.1.1 and update changelog.John MacFarlane4-3/+35
2020-11-07Hlint suggestions.John MacFarlane1-2/+3
2020-11-07Lint code in PRs and when committing to master (#6790)Albert Krewinkel23-95/+138
* Remove unused LANGUAGE pragmata * Apply HLint suggestions * Configure HLint to ignore some warnings * Lint code when committing to master
2020-11-06doc/filters.md: describe technical details of filter invocations (#6815)Albert Krewinkel2-0/+81
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