| Age | Commit message (Collapse) | Author |
|
This gives behavior that comes closer to LaTeX's own.
If we don't absorb the following newline, it gets
interpreted as a SoftBreak, inserting a spurious space
in some contexts.
|
|
...at the start of a paragraph, taking them to be inline
only if they're followed by regular text. This is simpler
than our previous test (checking to see that none of
the commands on the line are inline), but it is less fragile.
(The old test broke with some changes, soon to be committed,
that change tokenization of control sequences, including trailing
newlines.)
|
|
Make the first param of `tokenize` a SourcePos instead of
SourceName, and use it instead of `totoks`.
|
|
|
|
|
|
Closes #7749.
|
|
Fixes #7769.
|
|
|
|
Fixes a problem with `List.includes` and `List.find` that caused a Lua
stackoverflow and subsequent program crash.
Fixes: #7831
|
|
MathJax expect the config comes before loading the MathJax script.
This change of order allows one to config MathJax via header-includes,
which loads before the MathJax script.
This potentially is a breaking change.
However, the only kind math supported by pandoc that is configurable
seems to be katex, and according to src/Text/Pandoc/Writers/HTML.hs
the way it is configured is hard-coded (katex doesn't seem to offer
MathJax style config that is independent of loading katex.)
So it seems it is safe to change this order without breaking
others' documents.
c.f. #2750
|
|
This line signals the end of a YAML document.
This restores the behavior we got with HsYaml.
yaml complains about content past this line.
See https://github.com/jgm/pandoc/issues/4627#issuecomment-1012438765
|
|
|
|
|
|
|
|
with numerical styles that use superscripts (e.g.
american-medical-association.csl), as well as with
note styles. The default setting of `notes-after-punctuation`
is true for note styles and false otherwise.
This restores a behavior of pandoc-citeproc that wasn't properly
carried over to Citeproc.
Closes #7826.
See also jgm/pandoc-citeproc#384.
|
|
|
|
|
|
|
|
|
|
9.2.1 still fails without special treatment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Make sure that we only create one bullet per list item in docx. In
particular, when a div is a list item, its contained paragraphs will
now no longer wrongly get individual bullets.
This is accomplished by making sure that for each list, we only use
the associated numId once. Any repeated use would add incorrect
bullets to the document.
Closes #7689
|
|
and other similar tags. This seems to accord with what
the docbook toolchain does.
Closes #7821.
|
|
|
|
The commit 7a9832166e36f77402d5e0259647e9f5c7ba4e58
had the effect that blank lines would be collapsed
in HTML attributes.
We also roll back a change that collapsed multiple
spaces into one.
|
|
|
|
|
|
Document the changes introduced in #7812
|
|
|
|
|
|
|
|
|
|
|
|
Include abstract in default template.
Also ensure that the essential styles needed by
pandoc (`styles.html` partial) are included in the
templates. This is important for correct formatting
of CSL bibliographies.
Note that much of the styling in `styles.html` will
be ignored for EPUB, because of the conditional on
`document-css`, but if it is desired, you can set
the `document-css` variable.
|
|
* Add localized title "abstract", unless `abstract-title` variable
is set.
* Add `abstract-title` div to abstract CSS.
* Move abstract CSS out of CSL conditional.
* Ensure that abstract is aligned left but indented on all sides.
* Use smaller font for abstract.
Improves #7588.
|
|
|
|
This adds support for alphabetical lists in org by enabling the
extension Ext_fancy_lists, mimicking the behaviour of Org Mode when
org-list-allow-alphabetical is enabled.
Enabling Ext_fancy_lists will also make Pandoc differentiate between the
delimiters of ordered lists (periods or closing parentheses). Org does
this differentiation by default when exporting to some formats (e.g.
plain text) but does not in others (e.g. html and latex), so I decided
to copy Pandoc's markdown reader behaviour.
|
|
or other non-paragraph content.
Closes #7810.
|
|
T.P.Writers.Shared `endsWithPlain` now returns True if
the list ends with a list which ends with a Plain.
See #7810.
|