aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-10-08Add info on how to debug Lua filters (#6732)Ian Max Andolina1-0/+19
Add info on debugging Lua filters.
2020-10-07Use double quotes for YAML metadata.John MacFarlane128-883/+883
Closes #6727.
2020-10-07Use golden test framework for command tests.John MacFarlane1-27/+59
This means that `--accept` can be used to update expected output.
2020-10-07Remove redundant import.John MacFarlane1-1/+0
2020-10-07Remove redundant import.John MacFarlane1-1/+1
2020-10-07Raise informative errors when YAML metadata parsing fails.John MacFarlane6-42/+37
Closes #6730. Previously the command would succeed, returning empty metadata, with no errors or warnings. API changes: - Remove now unused CouldNotParseYamlMetadata constructor for LogMessage (T.P.Logging). - Add 'Maybe FilePath' parameter to yamlToMeta in T.P.Readers.Markdown.
2020-10-07Cleaner solution to #6723.John MacFarlane1-4/+4
2020-10-07Fix URL prefixes in citations also when they occur in notes.John MacFarlane9-131/+410
Update chicago-fullnote-bibliography.csl and adjust tests. Closes #6723.
2020-10-07Use lastest citeproc.John MacFarlane2-2/+2
2020-10-07Use latest citeproc.John MacFarlane3-5/+3
Better solution to the problem of entities in CSL JSON output.
2020-10-06Unescape entities in writing CSL JSON.John MacFarlane2-2/+22
The renderCslJson function escapes `<`, `>`, and `&` as entities. This is appropriate when generating HTML, but in CSL JSON these are supposed to appear unescaped. Closes jgm/citeproc#17.
2020-10-06DOCX reader: Allow empty dates in comments and tracked changes (#6726)Diego Balseiro8-23/+42
For security reasons, some legal firms delete the date from comments and tracked changes. * Make date optional (Maybe) in tracked changes and comments datatypes * Add tests
2020-10-06Incorporate `https://doi.org/` prefix added by CSL style...John MacFarlane1-1/+12
...into linked DOI, and similarly for other URLs linked in the bibliography. We want to avoid having a URL in which only the latter part is linked. Closes #6723.
2020-10-06Fix URL for "short DOIs" in citations. See #6723.John MacFarlane1-1/+6
Short DOIs begin 10/abcd and should be links to `https://doi.org/abcd` (omitting the `10/`).
2020-10-05Run nightly one hour later.John MacFarlane1-1/+1
2020-10-05Fixed regresison in last commit.John MacFarlane3-23/+44
Parsing of YAML bibliographies was broken; this fixes it.
2020-10-05Removed the idpred from metaValueToReference.John MacFarlane3-22/+13
This isn't really necessary; we do filtering at other points now.
2020-10-05Add yamlToRefs, yamlBsToRefs.John MacFarlane3-10/+74
T.P.Readers.Markdown now exports yamlToRefs. [API change] T.P.Readers.Metadata exports yamlBsToRefs. [API change] These allow specifying an id filter so we parse only references that are used in the document. Improves timing with a 3M yaml references file from 36s to 17s.
2020-10-05Improve searching for CSL files...John MacFarlane1-6/+15
...and CSL abbreviation files. Use resource path to search in both USERDATADIR/csl and USERDATADIR/csl/dependent. Also, add .csl or .json extension as needed, so you can just do --csl zoology.
2020-10-05Use yamlToMeta for yaml bibliographyJohn MacFarlane1-5/+4
This speeds up parsing of external yaml bibliographies considerably (in one test 36s -> 17s).
2020-10-05Add filtering to metaValueToReference, and check other-ids field too.John MacFarlane3-15/+26
2020-10-04doc/lua-filters.md: document Underline type and constructorAlbert Krewinkel1-0/+27
2020-10-04Try to fix Windows CI by installing happy first.John MacFarlane1-0/+1
We're having the build fail with ``` windows\ghc-8.6.5\mingw\bin\strip.exe: unable to rename 'C:\sr\snapshots\c886f694\bin\happy.exe'; reason: File exists ```
2020-10-04Sort languages in `--list-highlight-languages` output (#6718)Albert Krewinkel1-1/+1
Languages appear to be sorted by their long name, which leads to unexpected results: e.g., the long name of *m4* is *GNU m4*, so it is listed between *gnuassembler* and *go*.
2020-10-04Use HLint argument `--color=auto`Albert Krewinkel1-1/+1
Using `--color`, which is equivalent to `--color=always`, causes problems when used in situations where colors are not supported, e.g., in combination with Emacs. Detection of color-supporting environments seems reliable, so no adverse effects are expected from this change.
2020-10-03Use latest citeproc.John MacFarlane3-7/+9
Update chicago-fullnute-bibliography test, which is now correct.
2020-10-02Docx writer: better handle list items whose contents are lists (#6522)Michael Hoffmann4-3/+26
If the first element of a bulleted or ordered list is another list, then that first item will disappear if the target format is docx. This changes the docx writer so that it prepends an empty string for those cases. With this, no items will disappear. Closes #5948.
2020-10-01Update to lastest citeprocJohn MacFarlane5-6/+7
2020-10-01Syntax highlight for inline code of OpenDocument (#6711)niszet1-3/+18
To implement Syntax highlighting for OpenDocument, inlineToOpenDocument in OpenDocument Writer is updated based on Docx Writer. This commit is only for inline Code because update of CodeBlock needs structual change of output document. Currently, styles are not generated automatically in styles.xml. To implement it, additional commit for ODT Writer is needed. Although styles are not included in styles.xml, output file can be shown in LibreOffice(7.0.0.3) like normal characters.
2020-09-27Use latest citeproc.John MacFarlane2-2/+2
2020-09-27Fix redundant import warning.John MacFarlane1-1/+1
2020-09-27Use latest citeproc.John MacFarlane4-6/+5
2020-09-27OpenDocument Writer: Implement table cell alignment (#6700)Nils Carlson3-25/+98
Co-authored-by: Mauro Bieg <mb21@users.noreply.github.com>
2020-09-26Use latest citeproc.John MacFarlane2-2/+2
2020-09-26Use latest citeproc.John MacFarlane2-2/+2
2020-09-26Fix short-title.John MacFarlane2-24/+27
We were getting null short-titles generated, and that was creating wrong citations in some cases. Close #6702.
2020-09-25Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for docx.John MacFarlane1-1/+1
2020-09-25RST reader: apply `.. class::` directly to following Header.John MacFarlane2-1/+19
rather than creating a surrounding Div. Closes #6699.
2020-09-25Org reader: fix HLint warningsAlbert Krewinkel1-2/+2
2020-09-25doc/org.md: add section on tablesAlbert Krewinkel1-0/+28
2020-09-24Use latest citeproc commit.John MacFarlane2-3/+2
2020-09-24DocBook reader: Implement table cell alignment (#6698)Nils Carlson3-46/+88
2020-09-24Slight improvement to last commit.John MacFarlane1-1/+4
We now add a space only if there isn't already one. (Some styles add a space at the end of the left-margin div.)
2020-09-24Citeproc: Insert space after csl-left-margin span contents...John MacFarlane4-7/+21
if they come before csl-right-inline. This ensures that the citation number or label will be separated from the rest by a space, even in formats (like plain) that don't yet have special handling for the display spans.
2020-09-24OpenDocument writer: New table cell support with row and column spans (#6682)Nils Carlson2-26/+213
Unit tests only verify column spans at this point. Co-authored-by: Nils Carlson <nils.carlson@ludd.ltu.se>
2020-09-24Support toc-depth option for ODT writer (#6697)niszet2-1/+2
To support `--toc-depth` option for ODT, writer and template are updated. Closes #6696.
2020-09-23ALlow bytestring 0.11.x.John MacFarlane1-2/+2
2020-09-23Revert stack->cabal change in nightly.yml.John MacFarlane1-20/+21
2020-09-22release-candidate build: use latest stack on the runner.John MacFarlane1-57/+0
instead of installing from choco. Remove obsolete macos and win i386 sections.
2020-09-22Nightly process improvements.John MacFarlane1-33/+20
- Use cabal for windows. - Use most recent cabal/ghc. - Udd sha1 to executable name.