aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-11-26Docx writer: Fix bullets/lists indentationcholonam32-3/+3
Fix appearance of bullets/numbered lists (the first level is slightly indented to the right instead of right on the margin). New golden files have been tested using Word 2010 on Windows 10.
2020-11-26LaTeX reader: preserve center environment (#6852)Igor Pashev3-14/+40
The contents of the `center` environment are put in a `Div` with class `center`.
2020-11-26HTML reader: improve support for table headers, footer, attributesAlbert Krewinkel5-140/+268
- `<tfoot>` elements are no longer added to the table body but used as table footer. - Separate `<tbody>` elements are no longer combined into one. - Attributes on `<thead>`, `<tbody>`, `<th>`/`<td>`, and `<tfoot>` elements are preserved.
2020-11-26HTML reader: allow finer grained options for tag omissionAlbert Krewinkel3-13/+26
2020-11-25Fix pre-commit hook so it doesn't catch .latex+lhs extensions.John MacFarlane1-1/+1
2020-11-25latex template: put back amssymbJohn MacFarlane5-11/+5
We need it for checkboxes in todo lists, and maybe for other things. In this location it seems compatible with the cases that propmted #6469 and PR #6762.
2020-11-25Update tests for LaTeX table changes.John MacFarlane2-121/+38
2020-11-25LaTeX writer: improve longtable output.John MacFarlane2-41/+61
- Don't create minipages for regular paragraphs. - Put width and alignment information in the longtable column descriptors. - Closes #6883.
2020-11-25LaTeX tables: Fix calculation of column spacing.John MacFarlane2-37/+37
See #6883.
2020-11-25Fix truncation of `[Citation]` list in `Cite` inside footnotes...John MacFarlane2-2/+38
This affected author-in-text citations in footnotes. It didn't cause problems for the printed output, but for filters that expected the citation id and other information. Closes #6890.
2020-11-25HTML reader: simplify list attribute handlingAlbert Krewinkel2-27/+12
This removes the `foldOrElse` function from the internal Text.Pandoc.CSS module.
2020-11-25latex template: disable language-specific shorthands in babel.John MacFarlane2-2/+8
Babel defines "shorthands" for some languages, and these can produce unexpected results. For example, in Spanish, `1.22` gets rendered as `122`, and `et~al.` as `etal`. One would think that babel's `shorthands=off` option (which we were using) would disable these, but it doesn't. So we remove `shorthands=off` and add some code that redefines the shorthands macro. Eventually this will be fixed in babel, I hope, and we can revert to something simpler. Closes #6817, closes #6887.
2020-11-24test/tables/*.native: normalized (#6888)Kolen Cheung3-177/+324
The 3 native table test cases are normalized so that it will looks exactly like it is written by some pandoc writers. Note that apart from white space normalization, it includes other normalization such as `[Str "Nordic countries"] to [Str "Nordic",Space,Str "countries"]`.
2020-11-24Use skylighting 0.10.1.John MacFarlane2-4/+4
2020-11-24HTML reader tests: disable round-trip testing for tablesAlbert Krewinkel1-11/+3
Information for cell alignment in a column is not preserved during round-trips.
2020-11-24HTML reader: support row or column-spanning table cellsAlbert Krewinkel3-38/+36
2020-11-24HTML reader: support blocks in captionAlbert Krewinkel2-6/+6
2020-11-24HTML reader: extract table parsing into separate moduleAlbert Krewinkel4-95/+141
2020-11-23ImageSize: default to DPI 72 if the format specifies DPI of 0.John MacFarlane1-1/+7
This shouldn't happen, in general, but it can happen with JPEGs that don't conform to the spec. Having a DPI of 0 will blow up size calculations (division by 0). Closes #6880.
2020-11-23JATS template: allow array of persistent institute ids in `pid`Albert Krewinkel2-0/+10
2020-11-23HTML reader: extract submodulesAlbert Krewinkel5-239/+345
Reducing module size should reduce memory use during compilation. This is preparatory work to tackle support for more table features.
2020-11-22OpenDocument Writer: Implement Div and Span ident support (#6755)Nils Carlson2-10/+44
Spans and Divs containing an ident in the Attr will become bookmarks or sections with idents in OpenDocument format.
2020-11-22Use dev version of citeproc.John MacFarlane2-5/+8
2020-11-22LaTeX writer: Improve table spacing.John MacFarlane4-73/+73
+ Remove the `\strut` that was added at the end of minipage environments in cells. + Replace `\tabularnewline` with `\\ \addlinespace`. Closes #6842, closes #6860.
2020-11-22Org reader: parse `#+LANGUAGE` into `lang` metadata fieldAlbert Krewinkel3-1/+10
Fixes: #6845
2020-11-21OpenDocument writer: Table text width support (#6792)Nils Carlson2-4/+76
Support for table width as a percentage of text width by summing width of columns and verifying that the sum is > 0 and <= 1.
2020-11-21LaTeX reader: more robust parsing of bracketed options.John MacFarlane2-3/+15
Improves on 9a40976. Closes #6873.
2020-11-21Citeproc BibTeX parser: revert change in getRawField...John MacFarlane1-6/+5
which was made (for reasons forgotten) when transferring this code from pandoc-citeproc. The change led to `--` in URLs being interpreted as en-dashes, which is unwanted. Closes #6874.
2020-11-20DocBook reader: Table text width support (#6791)Nils Carlson2-2/+44
Table width in relation to text width is not natively supported by docbook but is by the docbook fo stylesheets through an XML processing instruction, <?dbfo table-width="50%"?> . Implement support for this instruction in the DocBook reader.
2020-11-20Improve LaTeX option parsing...John MacFarlane2-1/+9
in cases where we run into trouble parsing inlines til the closing `]`, e.g. quotes, we return a plain string with the option contents. Previously we mistakenly included the brackets in this string. Closes #6869.
2020-11-20JATS writer: support author affiliations (#6867)Albert Krewinkel4-6/+127
Closes: #6687
2020-11-20`commonmark_x`: replace `auto_identifiers` with `gfm_auto_identifiers`.John MacFarlane2-5/+6
`commonmark_x` never actually supported `auto_identifiers` (it didn't do anything), because the underlying library implements gfm-style identifiers only. Attempts to add the `autolink_identifiers` extension to `commonmark` will now fail with an error. Closes #6863.
2020-11-19JATS writer: support advanced table featuresAlbert Krewinkel10-379/+775
2020-11-19Update README.md, man page.John MacFarlane3-29/+27
2020-11-19Update changelog.John MacFarlane1-0/+120
2020-11-19reveal.js template fixes.John MacFarlane1-8/+16
Put quotes around `controlsLayout`, `controlsBackArrows`, and `display`, since these require strings. Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
2020-11-19--self-contained: increase coverage.John MacFarlane1-4/+11
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-19INSTALL.md: Remove references to `pandoc-citeproc`.John MacFarlane1-23/+9
Closes #6857.
2020-11-19DocBook reader: drop period in formalpara title...John MacFarlane1-2/+2
...and put it in a div with class `formalpara-title`, so that people can reformat with filters. Closes #6562. Thanks to rdmuller.
2020-11-18latex template: add a `\break` after parbox in CSLRightInline.John MacFarlane1-1/+1
This should fix spacing problems between entries with numeric styles.
2020-11-18latex template: fix number of params on CSLReferences.John MacFarlane1-1/+1
2020-11-18Man reader: improve handling of .IP.John MacFarlane2-5/+71
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-18Remove 'static' flag.John MacFarlane2-10/+0
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-18Re-add -optc-Os to static linux build, because it makes binary smaller.John MacFarlane1-1/+1
2020-11-18Simplify options for building static linux binary.John MacFarlane1-1/+1
2020-11-18Use citeproc 0.2John MacFarlane2-2/+2
2020-11-18Don't allow macos builds with 'static' flag.John MacFarlane1-0/+3
Closes #6771.
2020-11-18JATS writer: wrap all tablesAlbert Krewinkel4-330/+355
All `<table>` elements are put inside `<table-wrap>` elements, as the former are not valid as immediate child elements of `<body>`.
2020-11-18CI: validate JATS table outputAlbert Krewinkel1-6/+30
2020-11-18Replace org #+KEYWORDS with #+keywordsTEC16-237/+237
As of ~2 years ago, lower case keywords became the standard (though they are handled case insensitive, as always): https://code.orgmode.org/bzg/org-mode/commit/13424336a6f30c50952d291e7a82906c1210daf0 Upper case keywords are exclusive to the manual: - https://orgmode.org/list/871s50zn6p.fsf@nicolasgoaziou.fr/ - https://orgmode.org/list/87tuuw3n15.fsf@nicolasgoaziou.fr/