| Age | Commit message (Collapse) | Author |
|
Plain or RawBlock elements should not automatically be followed
by blank lines.
See #7111
|
|
|
|
This reverts commit f000fa168bd122fee6e67f5a67bdd6d42d173261.
|
|
Commit 2c857d3 closed #11047 but was mislabeled as closing #10047.
|
|
Closes #11046.
|
|
due to automatic wrapping.
Also simplify existing code that was meant to do this.
Closes #10047.
|
|
Fixes: #8869
|
|
Closes #11044.
|
|
Certain environments in LaTeX will trigger math mode and can't
occur within math mode: e.g., `align` or `equation`. Previously
we "downshifted" these, parsing an `align` environment as a
Math element with `aligned`, and an `equation` environment as a
regular display math element. With this shift, we put these in
Math inlines but retain the original environments.
This works because:
1) texmath handles these environments just fine,
2) and so does MathJax;
3) when writing LaTeX we detect these environments in Math elements
and emit them verbatim instead of putting them in `$..$` or
`$$..$$`.
Closes #9711. Closes #9296.
|
|
|
|
Closes: #10635
|
|
|
|
The default template now adds `#+options` lines if non-default settings
are used for the `smart_quotes` and `special_strings` extensions.
|
|
|
|
Org mode makes a distinction between smart parsing of quotes, and smart
parsing of special strings like `...`. The finer grained control over
these features is necessary to truthfully reproduce Emacs Org mode
behavior. Special strings are enabled by default, while smart quotes are
disabled.
The behavior of `special_string` is brought closer to the reference
implementation in that `\-` is now treated as a soft hyphen.
|
|
See #11019. Previously, centering tables in `reference.docx` would leave
the header row left-aligned. Why the OOXML 'standard' would allow table
elements to be aligned differently from the rest of the table in the
first place is anyone's guess.
|
|
Original test had a poor/misleading title.
|
|
Translating entities by name ultimately relies on
Commonmark.Entity.lookupEntity, which de facto requires the entity name
to be followed by a semicolon. Paste a semicolon onto the end of the
entity name read from POD to look it up.
Fixes #11015
|
|
Typst allows things like `smallcaps` to be applied to block-level
content like headings. This produces a type mismatch in pandoc,
so before processing the output of typst-hs, we transform it,
pulling the block-level elements outside of the inline-level
elements.
Closes #11017.
|
|
|
|
Some of the readers (e.g. djot) add "wrapper" divs to hold attributes
for elements that have no slot for attributes in the pandoc AST. With
this change, the HTML reader "unwraps" these wrappers so that the
attributes go on the intended elements.
Closes #11014.
|
|
Add test for #11013. Closes #11013.
|
|
Update the test so it reflects the right output, and fix the
solution.
Really closes #11006.
|
|
These require an additional blank line in some cases.
Closes #11006.
|
|
Closes #8819
|
|
[API change]
This will prevent unnecessary conversion of units.
Closes #8957.
|
|
Previously fenced divs were not used in this case, causing the writer to fall back to raw HTML.
Closes #10955.
|
|
Org doesn't reliable display these as links if they have hard breaks.
Closes #9000.
|
|
This adds a reader and writer for an XML format equivalent to `native`
and `json`.
XML schemas for validation can be found in `tools/pandoc-xml.*`.
The format is documented in `doc/xml.md`.
API changes:
- Add module Text.Pandoc.Readers.XML, exporting `readXML`.
- Add module Text.Pandoc.Writers.XML, exporting `writeXML`.
A new unexported module Text.Pandoc.XMLFormat is also added.
|
|
This solves the problem of unwanted capitalization of names
at the beginning of citations in footnotes.
Closes #10983.
|
|
|
|
|
|
(#10990)
|
|
This implements the changes suggested in #9956, with the exception of
the filecolor/urlcolor one. These would require adding some regex to
guess the link types. This is theoretically possible to do, but it
wasn't clear to me that this is a good thing to put in a default
template. Happy to adjust if you have thoughts on this.
Closes #9956.
Some things to note:
I'm converting colors by passing them as content, as I was seeing pandoc
escape # if that was included.
I set the default fonts for math and code ("raw") to fonts that are
bundled with Typst. These need not be those fonts if there are more
familiar pandoc preferences.
|
|
|
|
Closes #10983 by allowing `nocase` spans to be used to suppress
capitalization of initial word in a footnote.
|
|
Closes #10984.
|
|
Previously, the first line of a definition details item always used a
colon and three spaces instead of respecting the tab-stop setting, which
could lead to round-tripping issues.
Likewise, the indentation of continuation paragraphs in definition lists
now matches the two-characters leader of the first line for Markua
output.
Fixes: #10890
|
|
|
|
It was meant to test subsequent author substitution, but the
new chicago-author-date doesn't do this. So we use a different CSL.
|
|
When we updated to the latest chicago-author-date.csl, this test
no longer tested what it was supposed to; so we use a different csl.
|
|
from the latest chicago-author-date.csl. (Note that this goes
from the 17th to the 18th edition.)
Update tests.
|
|
Closes #10965.
|
|
Omit the wrapper sourceCode divs added by pandoc around code blocks.
More intelligently identify which class to use for the one class
allowed in GFM code blocks. If there is a class of form `language-X`,
use `X`; otherwise use the first class other than `sourceCode`.
Closes #10926.
|
|
for start numbers on ordered lists.
Also remove legacy support for override on listitem in the
reader.
See #10912.
|
|
on ordered lists. Closes #10912.
|
|
Closes #10915
|
|
|
|
Closes #7691.
|
|
If the `four_space_rule` extension is not enabled,
figure out the indentation needed for child blocks dynamically,
by looking at the first nonspace content after the `:` marker.
Previously the four-space rule was always obeyed.
Remove the old `compact_definition_lists` extension. This was
neded to preserve backwards compatibility after pandoc 1.12
was released, but at this point we can get rid of it.
T.P.Extensions: remove `Ext_compact_definition_lists` constructor
for `Extension` [API change].
Fix tight/loose detection for definition lists, to conform to
the documentation.
Closes #10889.
|