Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-04-28 | Smarter smart quotes. | John MacFarlane | 3 | -47/+12 | |
Treat a leading " with no closing " as a left curly quote. This supports the practice, in fiction, of continuing paragraphs quoting the same speaker without an end quote. It also helps with quotes that break over lines in line blocks. Closes #7216. | |||||
2021-04-25 | Minor code reformatting. | John MacFarlane | 1 | -1/+2 | |
Also taking this opportunity to note, for the record, that the commit for #7241 should be marked [API change]. It changes the type of `languagesByExtension` in Highlighting, adding a parameter for a `SyntaxMap`. | |||||
2021-04-25 | Writers: Recognize custom syntax definitions (#7241) | Jan Tojnar | 1 | -1/+2 | |
Languages defined using `--syntax-definition` were not recognized by `languagesByExtension`. This patch corrects that, allowing the writers to see all custom definitions. The LaTeX still uses the default syntax map, but that's okay in that context, since `--syntax-definition` won't create new listings styles. | |||||
2021-04-18 | Use MetaInlines not MetaBlocks for multimarkdown metadata fields. | John MacFarlane | 1 | -1/+1 | |
This gives better results in converting to e.g. pandoc markdown. Ref: <https://groups.google.com/d/msgid/pandoc-discuss/9728d1f4-040e-4392-aa04-148f648a8dfdn%40googlegroups.com> | |||||
2021-04-17 | Update to released unicode-collation, latest citeproc dev version. | John MacFarlane | 2 | -2/+2 | |
Update citeproc test. | |||||
2021-04-17 | Remove Text.Pandoc.BCP47 module. | John MacFarlane | 3 | -123/+129 | |
[API change] Use Lang from UnicodeCollation.Lang instead. This is a richer implementation of BCP 47. | |||||
2021-04-02 | Fix "phrase" in DocBook: take classes from "role" not "class". | John MacFarlane | 1 | -1/+1 | |
Closes #7195. Revises #6438. | |||||
2021-03-31 | Treat tabs as spaces in ODT Reader. (#7185) | niszet | 1 | -1/+7 | |
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-20 | Support `yaml_metadata_block` extension form commonmark, gfm. | John MacFarlane | 1 | -0/+30 | |
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 | 3 | -3/+5 | |
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-19 | Hlint suggestion. | John MacFarlane | 1 | -2/+3 | |
2021-03-19 | Protect partial uses of maximum with NonEmpty. | John MacFarlane | 6 | -17/+24 | |
2021-03-19 | Use NonEmpty instead of minimumDef. | John MacFarlane | 3 | -6/+6 | |
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 | 3 | -4/+6 | |
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 | Fix regression with `tex_math_backslash` in Markdown reader. | John MacFarlane | 1 | -1/+1 | |
Added regression test. Closes #7155. | |||||
2021-03-15 | Remove an unneeded import | John MacFarlane | 1 | -1/+0 | |
2021-03-15 | Use foldl' instead of foldl everywhere. | John MacFarlane | 7 | -13/+14 | |
2021-03-13 | MediaWiki reader: Allow block-level content in notes (ref). | John MacFarlane | 1 | -1/+9 | |
Closes #7145. | |||||
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-09 | RST reader: fix logic for ending comments. | John MacFarlane | 1 | -1/+2 | |
Previously comments sometimes got extended too far. Closes #7134. | |||||
2021-03-07 | LaTeX reader: handle table cells containing `&` in `\verb`. | John MacFarlane | 1 | -1/+6 | |
Closes #7129. | |||||
2021-03-07 | LaTeX reader: support hyperref command. | John MacFarlane | 1 | -4/+13 | |
Closes #7127. | |||||
2021-03-04 | Revert "Revert "Relax `--abbreviations` rules so that a period isn't required. | John MacFarlane | 1 | -1/+1 | |
This reverts commit 916ce4d51121e0529b938fda71f37e947882abe5. I was confused in thinking it wouldn't work. | |||||
2021-03-04 | Revert "Relax `--abbreviations` rules so that a period isn't required." | John MacFarlane | 1 | -1/+1 | |
This reverts commit e461b7dd45f717f3317216c7d3207a1d24bf1c85. Ill-advised change. This doesn't work because we parse strings in chunks. | |||||
2021-03-04 | Relax `--abbreviations` rules so that a period isn't required. | John MacFarlane | 1 | -1/+1 | |
Partially addresses #7124. | |||||
2021-03-03 | Revert "Add T.P.Readers.LaTeX.Include." | John MacFarlane | 3 | -86/+52 | |
This reverts commit b569b0226d4bd5e0699077089d54fb03d4394b7d. Memory usage improvement in compilation wasn't very significant. | |||||
2021-03-03 | Add T.P.Readers.LaTeX.Include. | John MacFarlane | 3 | -52/+86 | |
2021-03-03 | Remove T.P.Readers.LaTeX.Accent. | John MacFarlane | 3 | -82/+69 | |
Incorporate accentCommands into T.P.Readers.LaTeX.Inline. | |||||
2021-03-03 | Move enquote commands to T.P.LaTeX.Lang. | John MacFarlane | 3 | -24/+34 | |
2021-03-03 | Moved more into T.P.Readers.LaTeX.Lang. | John MacFarlane | 3 | -82/+97 | |
2021-03-03 | Split out T.P.Readers.LaTeX.Inline. | John MacFarlane | 2 | -336/+413 | |
2021-03-01 | Make T.P.Readers.LaTeX.Types an unexported module. | John MacFarlane | 1 | -1/+1 | |
[API change] This is really an implementation detail that shouldn't be exposed in the public API. | |||||
2021-03-01 | Factor out T.P.Readers.LaTeX.Macro. | John MacFarlane | 2 | -139/+155 | |
2021-02-28 | Removed unnecessary pragmas. | John MacFarlane | 1 | -2/+0 | |
2021-02-28 | Change T.P.Readers.LaTeX.SIunitx to export a command map... | John MacFarlane | 2 | -16/+16 | |
instead of individual commands. | |||||
2021-02-28 | T.P.Readers.LaTeX: Don't export tokenize, untokenize. | John MacFarlane | 2 | -2/+9 | |
[API change] These were only exported for testing, which seems the wrong thing to do. They don't belong in the public API and are not really usable as they are, without access to the Tok type which is not exported. Removed the tokenize/untokenize roundtrip test. We put a quickcheck property in the comments which may be used when this code is touched (if it is). | |||||
2021-02-28 | Factor out T.P.Readers.LaTeX.Math. | John MacFarlane | 2 | -193/+229 | |
2021-02-28 | Fix bug in last commit. | John MacFarlane | 1 | -1/+1 | |
2021-02-28 | Markdown reader efficiency improvements. | John MacFarlane | 1 | -182/+208 | |
Benchmarks show that these make the reader 13-17% faster, depending on extensions. | |||||
2021-02-28 | LaTeX reader: another small efficiency improvement. | John MacFarlane | 1 | -6/+12 | |
2021-02-28 | LaTeX reader efficiency improvements. | John MacFarlane | 1 | -31/+42 | |
In conjunction with other changes this makes the reader almost twice as fast on our benchmark as it was on Feb. 10. |