aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-06-28Improve punctuation moving with `--citeproc`.John MacFarlane3-17/+18
Previously, using `--citeproc` could cause punctuation to move in quotes even when there aer no citations. This has been changed; now, punctuation moving is limited to citations. In addition, we only move footnotes around punctuation if the style is a note style, even if `notes-after-punctuation` is `true`.
2021-06-28Allow `$` characters in bibtex keys.John MacFarlane1-1/+1
Closes #7409.
2021-06-28Text.Pandoc.Error: fix line calculations in reporting parsec errors.John MacFarlane1-3/+3
Also remove a spurious initial newline in the error report.
2021-06-28Set proper initial source name in parsing BibTeX.John MacFarlane1-1/+3
(For better error messages.)
2021-06-28Require commonmark-pandoc >= 0.2.2.1.John MacFarlane2-1/+2
This fixes task lists with multiple paragraphs.
2021-06-28Markdown writer: put space between Plain and following fenced Div.John MacFarlane2-0/+18
Closes #4465.
2021-06-23ImageSize: Add Tiff constructor for ImageType.John MacFarlane3-1/+7
[Minor API change] This allows pandoc to get size information from tiff images. Closes #7405.
2021-06-23reveal.js writer: Go back to setting boolean values for variables.John MacFarlane1-30/+26
In a previous commit we used strings because boolean False wouldn't render as `false`. This is changed in the dev version ofdoctemplates, so we can go back to the more straightforward approach.
2021-06-22Use dev version of doctemplates.John MacFarlane2-0/+7
2021-06-22Update changelog.John MacFarlane1-1/+27
2021-06-22Fix regression with comment-only YAML metadata blocks.John MacFarlane2-0/+12
Closes #7400.
2021-06-22Fix unneeded importJohn MacFarlane1-1/+1
2021-06-21LaTeX writer: add strut at end of minipage if it contains...John MacFarlane3-7/+10
line breaks. Without them, the last line is shorter than it should be, at least in some cases.
2021-06-21Revert "LaTeX writer: put a strut after a line break (`\\`)."John MacFarlane1-1/+1
This reverts commit e2a7ecb5f73b12c8141ebf873a494652fc53babd.
2021-06-21LaTeX writer: put a strut after a line break (`\\`).John MacFarlane1-1/+1
This ensures that we have proper spacing before the next line (which might e.g. be a table bottom border). This gives better results in cases like test/command/7272.md.
2021-06-21Improve emailAddress in Text.Pandoc.Parsing.John MacFarlane2-5/+24
Previously the parser would accept characters in domains that are illegal in domains, and this sometimes caused it to gobble bits of the following text. Closes #7398. Note that this change, by itself, caused some txt2tag reader tests to fail. txt2tags allows bare email addresses with a following form query. So, in addition to the change to emailAddress, we modify the txt2tags parser so it can still handle these cases.
2021-06-21Update command test for change to LaTeX LineBreak handling.John MacFarlane1-2/+2
2021-06-21LaTeX writer: always use a minipage for cells with line breaks...John MacFarlane2-3/+11
if width information is available. Otherwise the way we treat them can lead to content that overflows a cell. Closes #7393.
2021-06-21LaTeX writer: Use `\strut` instead of `~` before `\\` in empty line.John MacFarlane1-1/+1
2021-06-21reveal.js writer: better handling of options.John MacFarlane2-128/+120
Previously it was impossible to specify false values for options that default to true; setting the option to false just caused the portion of the template setting the option to be omitted. Now we prepopulate all the variables with their default values, including them unconditionally and allowing them to be overridden.
2021-06-21Fix test for #7397John MacFarlane1-2/+2
2021-06-21Markdown writer: Fix regression in code blocks with attributes.John MacFarlane2-3/+17
Code blocks with a single class but nonempty attributes were having attributes drop as a result of #7242. Closes #7397.
2021-06-20Bump to 2.14.0.3, update changelog, require latest skylighting.John MacFarlane5-6/+20
2021-06-20Use lts-18.0 stack resolver.John MacFarlane1-10/+1
2021-06-20Require commonmark 0.2.1.John MacFarlane2-2/+2
2021-06-18insertMediaBag: ensure we get sane mediaPath for URLs.John MacFarlane1-5/+10
Long URLs cannot be treated as mediaPaths, but System.FilePath's `isRelative` often returns True for them. So we add a check for an absolute URL. We also ensure that extensions are derived only from the path portion of URLs (previously a following query was being included). Closes #7391.
2021-06-14Rephrase section on unsafe HTML in manual.John MacFarlane1-3/+3
2021-06-14Add link to the manual's note on security to SECURITY.md.John MacFarlane1-0/+3
2021-06-14Create SECURITY.mdJohn MacFarlane1-0/+9
2021-06-13Update changelog date.John MacFarlane1-1/+1
2021-06-12Update changelog.John MacFarlane1-5/+15
2021-06-12Docx reader: handle absolute URIs in Relationship Target.John MacFarlane1-5/+11
Closes #7374.
2021-06-12Markdown writer: allow `pipe_tables` to be disabled for commonmark...John MacFarlane1-1/+0
(commonmark_x, gfm). Closes #7375.
2021-06-12Fix regression in citeproc processing.John MacFarlane3-8/+21
If inline references are used (in the metadata `references` field), we should still only include in the bibliography items that are actually cited -- unless `nocite` is used. Closes #7376.
2021-06-11Make parts of the bug report templates HTML comments.John MacFarlane2-0/+4
2021-06-11Revise issue report "dashboard."John MacFarlane1-7/+1
2021-06-11Add note about asking questions to bug report template.John MacFarlane1-0/+2
2021-06-11Fix line breaks in issue templates.John MacFarlane2-4/+2
2021-06-11Fix link to contributing guidelines.John MacFarlane2-3/+3
2021-06-11Add contributing guidelines to issue menu.John MacFarlane1-0/+3
2021-06-11More honing of issue templates.John MacFarlane2-10/+11
2021-06-11Remove pull requset template.John MacFarlane1-19/+0
2021-06-11Add pull request template.John MacFarlane1-0/+19
2021-06-11Improve issue templates.John MacFarlane4-98/+17
2021-06-11Revert "Remove md versions of issue templates."John MacFarlane2-0/+58
This reverts commit 61c0e0bbfbbaa53a31ba302237704001ca22e791.
2021-06-11Remove md versions of issue templates.John MacFarlane2-58/+0
2021-06-11Update issue templatesJohn MacFarlane2-0/+58
2021-06-11Fancier issue templates.John MacFarlane4-11/+76
Based on Doom Emacs's templates.
2021-06-10Bump to 2.14.0.2, update chaneglog and manual.John MacFarlane4-14/+122
2021-06-10Fix MediaBag regressions.John MacFarlane4-48/+47
With the 2.14 release `--extract-media` stopped working as before; there could be mismatches between the paths in the rendered document and the extracted media. This patch makes several changes (while keeping the same API). The `mediaPath` in 2.14 was always constructed from the SHA1 hash of the media contents. Now, we preserve the original path unless it's an absolute path or contains `..` segments (in that case we use a path based on the SHA1 hash of the contents). When constructing a path from the SHA1 hash, we always use the original extension, if there is one. Otherwise we look up an appropriate extension for the mime type. `mediaDirectory` and `mediaItems` now use the `mediaPath`, rather than the mediabag key, for the first component of the tuple. This makes more sense, I think, and fits with the documentation of these functions; eventually, though, we should rework the API so that `mediaItems` returns both the keys and the MediaItems. Rewriting of source paths in `extractMedia` has been fixed. `fillMediaBag` has been modified so that it doesn't modify image paths (that was part of the problem in #7345). We now do path normalization (e.g. `\` separators on Windows) only in writing the media; the paths are left unchanged in the image links (sensibly, since they might be URLs and not file paths). These changes should restore the original behavior from before 2.14. Closes #7345.