aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-08-24Docx writer: separate adjacent tables.John MacFarlane
Word combines adjacent tables, so to prevent this we insert an empty paragraph between two adjacent tables. Closes #4315.
2020-08-21HTML writer: Fix addition of doc-biblioentry role.John MacFarlane
2020-08-15[Latex Reader] Fixing issues with \multirow and \multicolumn table cells (#6608)Laurent P. René de Cotret
* Added test to replicate (#6596) * Table cell reader not consuming spaces correctly (#6596) * Prevented wrong nesting of \multicolumn and \multirow table cells (#6603) * Parse empty table cells (#6603) * Support full prototype for multirow macro (#6603) Closes #6603
2020-08-14Change SIRange to SIrange (#6617)Emerson Harkin
2020-08-11DocBook reader: Update list of block level tags.John MacFarlane
This fixes #6610.
2020-08-09Remove `fenced_code_blocks` and `backtick_code_blocks` from...John MacFarlane
commonmark/gfm extensions. These shouldn't really be counted as extensions, because they can't be disabled in commonmark. Adjust markdown writer to check for commonmark variant in addition to extensions.
2020-08-07[Latex Reader] Table cell parser not consuming spaces correctly (#6597)Laurent P. René de Cotret
* Added test to replicate (#6596) * Table cell reader not consuming spaces correctly (#6596)
2020-08-06Options: Add `/tex-mml-chtml.js` to defaultMathJaxURL.John MacFarlane
Previously we added this in processing command line options, but not in processing defaults files, which was inconsistent. Cloess #6593.
2020-07-31Org writer: don't force blank line after headersAlbert Krewinkel
Closes: #6554
2020-07-29Add extensions to `gfm` and `commonmark`:John MacFarlane
`fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`. These can't really be disabled in the reader, but they need to be enabled in the writer or we just get indented code.
2020-07-29Writers/Shared: add missing function docsAlbert Krewinkel
Ensure that all functions in the module have a haddock comment.
2020-07-25Lua filters: make attr argument optional in Table constructorAlbert Krewinkel
This changes the Lua API. It is highly unlikely for this change to affect existing filters, since the documentation for the new Table constructor (and type) was incomplete and partly wrong before. The Lua API is now more consistent, as all constructors for elements with attributes now take attributes as the last parameter.
2020-07-24Make sure proper set of extensions is recognized for commonmark_x.John MacFarlane
2020-07-23Markdown writer: use numerical labels for refs...John MacFarlane
...that are longer than 999 characters or contain square brackets. For conformity with commonmark. Closes #6560
2020-07-23Add `raw_markdown` extension affecting `ipynb` reader.John MacFarlane
Specifying `-f ipynb+raw_markdown` will cause Markdown cells to be represented as raw Markdown blocks, instead of being parsed. This is not what you want when going from `ipynb` to other formats, but it may be useful when going from `ipynb` to Markdown or to `ipynb`, to avoid semantically insignificant changes in the contents of the Markdown cells that might otherwise be introduced. Closes #5408.
2020-07-23Minimal support for SIRange in LaTeX reader (#6418)Emerson Harkin
Add support for `\SIRange{firstnumber}{secondnumber}{unit}` provided by siunitx. An en-dash is used instead of localized "to".
2020-07-23Col-span and row-span in LaTeX reader (#6470)Laurent P. René de Cotret
Add multirow and multicolumn support in LaTex reader. Partially addresses #6311.
2020-07-23Further improvements to ams theorem support, and a test.John MacFarlane
See #1608.
2020-07-23LaTeX reader: Add identifier in divs for ams theorem environments.John MacFarlane
2020-07-22LaTeX reader: SUpport ams `\theoremstyle`.John MacFarlane
2020-07-22Implement first optional argument for `\newtheorem`.John MacFarlane
This allows groups of theorem environments to be put in the same numbering sequence.
2020-07-22LaTeX reader: Don't boldface alt title in theorems.John MacFarlane
2020-07-22LaTeX reader: support theorem environments and `\newtheorem`.John MacFarlane
Includes numbering and labels and refs. Note that numbering support is not complete; we don't reset numbers with sections for example.
2020-07-22LaTeX reader: support ams proof environment.John MacFarlane
2020-07-22Moved more from LaTeX reader to LaTeX.Parsing.John MacFarlane
2020-07-22Docx writer: support --number-sections.John MacFarlane
Closes #1413.
2020-07-21RST reader: fix csv tables with multiline cells.John MacFarlane
Closes #6549.
2020-07-20Move some code from T.P.R.LaTeX. to T.P.R.LaTeX.Parsing.John MacFarlane
We need to reduce the size of the LaTeX reader to ease compilation on resource-limited systems. More can be done in this vein.
2020-07-19Markdown writer: move asciify out of escapeString.John MacFarlane
Otherwise unsmartify doesn't catch quotes that have already been turned to entities.
2020-07-19Remove use of cmark-gfm for commonmark/gfm rendering.John MacFarlane
Instead rely on the markdown writer with appropriate extensions. Export writeCommonMark variant from Markdown writer. This changes a few small things in rendering markdown, e.g. w/r/t requiring backslashes before spaces inside super/subscripts.
2020-07-19Markdown writer: use unicode super/subscript characters...John MacFarlane
when possible if the superscript or subscript extension or raw_html aren't available.
2020-07-19Markdown writer: render caption as following paragraph...John MacFarlane
when `Ext_table_caption` not enabled.
2020-07-19Add commonmark_x output format...John MacFarlane
commonmark with a number of useful extensions (more than gfm).
2020-07-19Trim down githubMarkdownExtensions.John MacFarlane
Previously it included all of the following, which make sense for the legacy markdown_github but not for gfm, since they are part of base commonmark and thus can't be turned off in gfm: - `Ext_all_symbols_escapable` - `Ext_backtick_code_blocks` - `Ext_fenced_code_blocks` - `Ext_space_in_atx_header` - `Ext_intraword_underscores` - `Ext_lists_without_preceding_blankline` - `Ext_shortcut_reference_links` ` These have been removed from `githubMarkdownExtensions`, though they're still turned on for legacy `markdown_github`.
2020-07-19Add generic `attributes` extension.John MacFarlane
This allows attributes to be added to any block or inline element, in principle. (Though in many cases this will be done by adding a Div or Span container, since pandoc's AST doesn't have a slot for attributes for most elements.) Currently this is only possible with the commonmark and gfm readers. Add `Ext_attributes` constructor for `Extension` [API change].
2020-07-19Use commonmark-hs to parse commonmark/gfm...John MacFarlane
...instead of cmark-gfm (a wrapper around a C library). We can now support many more pandoc extensions for commonmark and gfm. Add fenced_code_attributes to gfm/commonmark extensions.
2020-07-19Merge pull request #6495 from tarleb/html5-figure-accessiblityJohn MacFarlane
HTML writer: improve alt-text/caption handling for HTML5
2020-07-18DocBook reader: parse releaseinfo as metadata.John MacFarlane
Closes #6542. Note that you'll need to put releaseinfo somewhere in your template if you want this to be part of the converted output.
2020-07-17Jira writer: keep image caption as alt attributeAlbert Krewinkel
Fixes #6529
2020-07-14Docbook reader: remove misleading comment...John MacFarlane
suggesting that releaseinfo is handled. It isn't.
2020-07-13Merge pull request #6527 from lierdakil/fix-6514John MacFarlane
[Docx Reader] Only use bCs/iCs on runs with rtl or cs property
2020-07-13[Docx Reader] Only use bCs/iCs on runs with rtl or cs propertyNikolay Yakimov
Fixes #6514
2020-07-12Merge pull request #6513 from brisad/masterJohn MacFarlane
Escape starting periods in ms writer code blocks
2020-07-12Merge pull request #6509 from lierdakil/docx-smush-inlines-refactorJohn MacFarlane
[Docx Reader] Refactor/update Text.Pandoc.Readers.Docx.Combine.smushInlines
2020-07-12Ms writer: fix code highlighting with blank lines.John MacFarlane
Previously blank lines were simply omitted from highligted code.
2020-07-12RST reader: fix spurious newlines in some attributes from directives.John MacFarlane
2020-07-12RST reader: avoid extra newline in included code blocks.John MacFarlane
2020-07-08Escape starting periods in ms writer code blocksMichael Hoffmann
If a line of ms code block output starts with a period (.), it should be prepended by '\&' so that it is not interpreted as a roff command. Fixes #6505
2020-07-07[Docx Reader] Use null instead of isEmpty in Readers.Docx.CombineNikolay Yakimov
2020-07-07[Docx Reader] Remove unused LANGUAGE from Readers.Docx.CombineNikolay Yakimov