Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-04-08 | Fix regression in grid tables for wide characters. | John MacFarlane | 1 | -5/+13 | |
In the translation from String to Text, a char-width-sensitive splitAt' was dropped. This commit reinstates it. Closes #7214. | |||||
2021-04-08 | Lua filter: respect Inlines/Blocks filter functions in pandoc.walk_* | Albert Krewinkel | 2 | -3/+10 | |
2021-04-05 | Commonmark writer: Use backslash escapes for `<` and `|`... | John MacFarlane | 1 | -1/+11 | |
instead of entities. Closes #7208. | |||||
2021-04-05 | SelfContained: remove unneeded imports. | John MacFarlane | 1 | -2/+0 | |
2021-04-05 | JATS writer: escape disallows chars in identifiers | Albert Krewinkel | 4 | -19/+47 | |
XML identifiers must start with an underscore or letter, and can contain only a limited set of punctuation characters. Any IDs not adhering to these rules are rewritten by writing the offending characters as Uxxxx, where `xxxx` is the character's hex code. | |||||
2021-04-05 | SelfContained: use application/octet-stream for unknown mime types... | John MacFarlane | 1 | -5/+4 | |
instead of halting with an error. Closes #7202. | |||||
2021-04-02 | Fix "phrase" in DocBook: take classes from "role" not "class". | John MacFarlane | 1 | -1/+1 | |
Closes #7195. Revises #6438. | |||||
2021-04-01 | Org writer: Use LaTeX style maths deliminators (#7196) | tecosaur | 1 | -2/+2 | |
Org works better with LaTeX-style delimiters. | |||||
2021-03-31 | Treat tabs as spaces in ODT Reader. (#7185) | niszet | 1 | -1/+7 | |
2021-03-29 | Powerpoint writer: allow monofont to be specified in metadata... | John MacFarlane | 2 | -6/+19 | |
...not just using `--variable` on the command line (as in other writers). Closes #7187. | |||||
2021-03-24 | Fix DocBook reader mathml regression... | John MacFarlane | 2 | -4/+7 | |
...caused by the switch in XML libraries. Also fixed a similar issue in JATS. Closes #7173. | |||||
2021-03-21 | Simplify T.P.Asciify and export toAsciiText [API change]. | John MacFarlane | 3 | -395/+18 | |
Instead of encoding a giant (and incomplete) map, we now just use unicode-transforms to normalize the text to a canonical decomposition, and manipulate the result. The new `toAsciiText` is equivalent to the old `T.pack . mapMaybe toAsciiChar . T.unpack` but should be faster. | |||||
2021-03-20 | Support `yaml_metadata_block` extension form commonmark, gfm. | John MacFarlane | 3 | -1/+34 | |
This is a bit more limited than with markdown, as documented in the manual: - The YAML block must be the first thing in the input. - The leaf notes are parsed in isolation from the rest of the document. So, for example, you can't use reference links if the references are defined later in the document. Closes #6537. | |||||
2021-03-20 | Move yamlMetaBlock from Markdown reader to T.P.Readers.Metadata. | John MacFarlane | 2 | -22/+22 | |
2021-03-20 | Markdown reader: export `yamlMetaBlock`. | John MacFarlane | 1 | -17/+23 | |
[API change] This will allow us to parse YAML metadata blocks in other readers, potentially. | |||||
2021-03-20 | Text.Pandoc.Parsing: remove F type synonym. | John MacFarlane | 5 | -9/+9 | |
Muse and Org were defining their own F anyway, with their own state. We therefore move this definition to the Markdown reader. | |||||
2021-03-20 | T.P.Readers.Metadata: made `yamlBsToMeta`, `yamlBsToRefs` polymorphic... | John MacFarlane | 1 | -15/+15 | |
on the parser state, instead of requiring ParserState. [API change] | |||||
2021-03-20 | RST writer: use NonEmpty for init, last. | John MacFarlane | 1 | -8/+12 | |
2021-03-20 | Include Header.Attr.attributes as XML attributes on section | Erik Rask | 1 | -2/+45 | |
Add key-value pairs found in the attributes list of Header.Attr as XML attributes on the corresponding section element. Any key name not allowed as an XML attribute name is dropped, as are keys with invalid values where they are defined as enums in DocBook, and xml:id (for DocBook 5)/id (for DocBook 4) to not intervene with computed identifiers. | |||||
2021-03-20 | T.P.Shared: remove `backslashEscapes`, `escapeStringUsing`. | John MacFarlane | 8 | -47/+77 | |
[API change] These are inefficient association list lookups. Replace with more efficient functions in the writers that used them (with 10-25% performance improvements in haddock, org, rtf, texinfo writers). | |||||
2021-03-19 | Fix fallback to default partials on templates. | John MacFarlane | 1 | -0/+4 | |
If the directory containing a template does not contain the partial, it should be sought in the default data files. Closes #7164. | |||||
2021-03-19 | Hlint suggestion. | John MacFarlane | 1 | -2/+3 | |
2021-03-19 | T.P.Shared: Remove ToString, ToText typeclasses [API change]. | John MacFarlane | 2 | -24/+4 | |
T.P.Parsing: revise type of readWithM so that it takes a Text rather than a polymorphic ToText value. These typeclasses were there to ease the transition from String to Text. They are no longer needed, and they may clash with more useful versions under the same name. This will require a bump to 2.13. | |||||
2021-03-19 | Protect partial uses of maximum with NonEmpty. | John MacFarlane | 21 | -86/+108 | |
2021-03-19 | Use NonEmpty instead of minimumDef. | John MacFarlane | 4 | -8/+9 | |
2021-03-19 | Docx reader: Don't reimplement NonEmpty. | John MacFarlane | 1 | -5/+1 | |
2021-03-18 | Use minimumDef instead of minimum (partial function). | John MacFarlane | 4 | -9/+8 | |
2021-03-18 | Require safe >= 0.3.18 and remove cpp. | John MacFarlane | 1 | -5/+0 | |
2021-03-18 | Rewrite a foldl1 as a foldl'. | John MacFarlane | 1 | -1/+5 | |
2021-03-18 | Remove another foldr1 partial function use. | John MacFarlane | 1 | -5/+6 | |
2021-03-18 | T.P.Readers.Odt.StyleReader: rewrite foldr1 use as foldr. | John MacFarlane | 1 | -5/+6 | |
This avoids a partial function. | |||||
2021-03-17 | Docx writer: make nsid in abstractNum deterministic. | John MacFarlane | 1 | -6/+4 | |
Previously we assigned a random number (though in a deterministic way). But changes in the random package mean we get different results now on different architectures, even with the same random seed. We don't need random values; so now we just assign a value based on the list number id, which is guaranteed to be unique to the list marker. | |||||
2021-03-17 | Fix regression with `tex_math_backslash` in Markdown reader. | John MacFarlane | 1 | -1/+1 | |
Added regression test. Closes #7155. | |||||
2021-03-16 | Removed unused LANGUAGE pragmas. | John MacFarlane | 2 | -2/+0 | |
2021-03-15 | Remove an unneeded import | John MacFarlane | 1 | -1/+0 | |
2021-03-15 | Use foldl' instead of foldl everywhere. | John MacFarlane | 16 | -29/+34 | |
2021-03-14 | Handle 'nocite' better with --biblatex and --natbib. | John MacFarlane | 1 | -2/+10 | |
Previously the nocite metadata field was ignored with these formats. Now it populates a `nocite-ids` template variable and causes a `\nocite` command to be issued. Closes #4585. | |||||
2021-03-13 | T.P.App.FormatHeuristics: shorten code, improve docs. | Albert Krewinkel | 1 | -7/+13 | |
2021-03-13 | MediaWiki reader: Allow block-level content in notes (ref). | John MacFarlane | 1 | -1/+9 | |
Closes #7145. | |||||
2021-03-13 | Use integral values for w:tblW in docx. | John MacFarlane | 1 | -1/+1 | |
Cloess #7141. | |||||
2021-03-13 | Jira reader: mark divs created from panels with class "panel". | Albert Krewinkel | 1 | -2/+2 | |
Closes: tarleb/jira-wiki-markup#2 | |||||
2021-03-13 | Jira writer: improve div/panel handling | Albert Krewinkel | 1 | -11/+28 | |
Include div attributes in panels, always render divs with class `panel` as panels, and avoid nesting of panels. | |||||
2021-03-12 | Citeproc: apply fixLinks correctly. | John MacFarlane | 1 | -5/+5 | |
This is code that incorporates a prefix like `https://doi.org/` into a following link when appropriate. But it didn't work because we were walking with a `[Inline] -> [Inline]` function on an `Inlines`. Changed the point of application of `fixLink` to resolve the issue. Closes #7130. | |||||
2021-03-12 | Simplify compactDL. | John MacFarlane | 1 | -13/+11 | |
2021-03-10 | HTML writer: Add warnings on duplicate attribute values. | John MacFarlane | 2 | -18/+31 | |
This prevents emitting invalid HTML. Ultimately it would be good to prevent this in the types themselves, but this is better for now. T.P.Logging: Add DuplicateAttribute constructor to LogMessage. [API change] | |||||
2021-03-09 | RST reader: fix logic for ending comments. | John MacFarlane | 1 | -1/+2 | |
Previously comments sometimes got extended too far. Closes #7134. | |||||
2021-03-09 | Org writer: fix operator precedence mistake in previous commit | Albert Krewinkel | 1 | -1/+2 | |
2021-03-09 | Org writer: prevent unintended creation of ordered list items | Albert Krewinkel | 1 | -4/+7 | |
Adjust line wrapping if default wrapping would cause a line to be read as an ordered list item. Fixes #7132 | |||||
2021-03-08 | Jira writer: use noformat instead of code for unknown languages. | Albert Krewinkel | 1 | -5/+5 | |
Code blocks that are not marked as a language supported by Jira are rendered as preformatted text with `{noformat}` blocks. Fixes: tarleb/jira-wiki-markup#4 | |||||
2021-03-07 | LaTeX reader: handle table cells containing `&` in `\verb`. | John MacFarlane | 1 | -1/+6 | |
Closes #7129. |