summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
AgeCommit message (Collapse)Author
2024-03-22Minor comment and indentation fixes.John MacFarlane
2024-03-22Typst reader: support Typst 0.11 table features.John MacFarlane
Colspans, rowspans, table head and foot. See #9588.
2024-03-21Typst reader: parse cell col/rowspans.John MacFarlane
TODO: - Handle table header and footer. - Assign columns to rows in a way that respects col/rowspans.
2024-03-21Typst reader: Further refactoring on the way to improved table support.John MacFarlane
2024-03-21Typst reader: refactor out parseTable.John MacFarlane
2024-03-19DocBook reader: add empty title to admonition div if not present.John MacFarlane
This allows admonition elements (e.g. `<note>`) to work with gfm admonitions even if the `<title>` is not present. Closes #9569.
2024-03-17LaTeX reader: better handling of colwidths.John MacFarlane
Previously the parser just failed if the column width specified in `p{}` wasn't a multiple of `\linewidth`. This led to cases where content was skipped. Now we treat these as ColWidthDefault and silently parse the table. A future improvement could be to guess relative column widths from the dimensions specified, based on a default line width. Closes #9579.
2024-03-14Markdown reader: Fix bug with footnotes at end of fenced div.John MacFarlane
Cloess #9576.
2024-03-10LaTeX reader: improve tokenization of `@`.John MacFarlane
Make tokenization sensitive to `\makeatletter`/`\makeatother`. Previously we just always treated `@` as a letter. This led to bad results, e.g. with the sequence `\@`. E.g., `a\@ b` would parse as "ab" and `a\@b` as "a". Closes #9555.
2024-03-09LaTeX reader: Make `withRaw` work inside `parseFromToks`.John MacFarlane
This is needed for raw environments to work inside table cells. Closes #9517.
2024-02-28Docx reader: ensure that table captions are counted.John MacFarlane
Normally these occur outside the table element itself, but they should still be parsed as captions in this case. Closes #9518.
2024-02-28Docx reader: detect caption by style name not id.John MacFarlane
The styleId can change depending on the localization. Partially resolves #9518.
2024-02-28Docx reader: avoid emitting empty paragraph where caption was.John MacFarlane
2024-02-19Markdown reader: fix regression in link parsing...John MacFarlane
with wikilinks extensions. This fixes a regression introduced in 3.1.12. Closes #9481.
2024-02-19Org reader/writer: support admonitions.John MacFarlane
Closes #9475.
2024-02-13Add djot reader and writer.John MacFarlane
Djot is a light markup syntax (https://djot.net). This patch adds djot as input and output formats. API changes: Add Text.Pandoc.Readers.Djot Add Text.Pandoc.Writers.Djot
2024-02-13Markdown reader: fix wikilinks extension to allow newlines in titles.John MacFarlane
Closes #9454.
2024-02-13LaTeX reader: improve treatment of cref, Cref.John MacFarlane
Associate with `\cref` and `\Cref` the reference-type `ref+label` and `ref+Label`. So far we don't do anything fancy with these. Also, associate with `\vref` `ref` instead of `ref+page`. See #7463.
2024-02-13LaTeX reader: treat `\Cref` like `\cref` (for now).John MacFarlane
See #7463.
2024-02-11Man reader: move spaces outside of emph/strong.John MacFarlane
This is needed to avoid problems in conversion to Markdown and some other formats. Closes #9445.
2024-02-07MediaWiki reader: don't make leading blanks underscores...John MacFarlane
in image links. See #9425. (Not a complete fix for this issue, because `:file:` and the like are still not handled properly.)
2024-02-07MediaWiki reader: allow lowercase `image:`.John MacFarlane
Closes #9424.
2024-02-05Typst reader: improve handling of inline `#quote`.John MacFarlane
Closes #9413.
2024-02-04Typst reader: fix handling of `dot()`, `tilde()`, `ddot()`.John MacFarlane
See jgm/typst-hs#38.
2024-02-04Typst reader: fix character used for `norm`.John MacFarlane
See jgm/typst-hs#38.
2024-01-29LaTeX reader: generate relative widths for `\linewidth`, `\textheight`.John MacFarlane
Closes #9388.
2024-01-26EPUB reader: don't put `#` characters in identifiers.John MacFarlane
2024-01-16DocBook reader: better handling of `<procedure>` and `<substeps>`.John MacFarlane
`<procedure>` now gets parsed as an ordered list, and `<substeps>` as a sublist. Closes #9341.
2024-01-05Typst reader: fix handling of `\overline`.John MacFarlane
Due to a typo, it was being incorrectly rendered as an `\underset`. Closes #9294.
2023-12-30Add command test for #9293.John MacFarlane
2023-12-30MediaWiki reader: handle multiline math in list items.John MacFarlane
Closes #9293.
2023-12-26fix(docx): support absolute header/footer pathsEdwin Török
Header and footer references may be absolute in the reference.docx. E.g. editing it with dotnet's Open-XML-SDK causes this error: ``` + pandoc test.md -t docx --reference-doc referenceh.docx -o test.docx word//word/header1.xml missing in reference docx ``` There was already code in pandoc to handle relative vs absolute paths in references, so use it. Signed-off-by: Edwin Török <edwin@etorok.net>
2023-12-20Org reader: parse caption and label for grid tables.John MacFarlane
Closes #9279.
2023-12-18Docx reader: fix HYPERLINK with only switch and no argument.John MacFarlane
The argument can apparently be omitted, and then we just have a fragment URL. Closes #9246.
2023-12-11Whitespace fix.John MacFarlane
2023-12-11Typst reader: don't include metadata from document element.John MacFarlane
The problem is that typst doesn't print this metadata; it is only used in PDF properties. The title, authors, and so on are represented in the typst document (and there is no standardized method like LaTeX's `\maketitle`). So if we parse this as metadata then converting a typst document will likely lead to a double title.
2023-12-10Typst reader: parse metadata from document element.John MacFarlane
2023-12-10Typst reader: add state fields for metadata.John MacFarlane
2023-12-10Typst reader: support sys.version.John MacFarlane
2023-12-09Typst reader: allow @refs to become citations...John MacFarlane
if there is no corresponding label in the document.
2023-12-09Typst reader: collapse adjacent cite elements.John MacFarlane
2023-12-09Typst reader: fix temporary regression in cite.John MacFarlane
2023-12-08Typst reader: change cite (only one key allowed, a label).John MacFarlane
This is a typst 0.9 breaking change.
2023-12-08Typst reader: support quote element. (typst 0.9)John MacFarlane
2023-12-06Revert "Use base64 instead of base64-bytestring."John MacFarlane
This reverts commit 6625e9655ed2bb0c4bd4dd91b5959a103deab1cb. base64 is currently buggy on 32-bit systems. Closes #9233.
2023-12-04Add `alerts` extension.John MacFarlane
This enables GitHub style markdown alerts as a commonmark extension. <https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts> This extension is now default for `gfm`. It can't be used with `markdown`, only with `commonmark` and variants.
2023-11-29LaTeX reader: handle otherlanguage environment...John MacFarlane
...and language-name environments like `\begin{french}...\end{french}`. Closes #9202.
2023-11-29Docx reader: unwrap content of shaped textboxes...Stephan Meijer
* #9214 text in shape format test document * #9214 support Text in Shape Format * #9214 remove irrelevant code
2023-11-28Docx reader: Improve handling of w:sym.John MacFarlane
Add T.P.Readers.Docx.Symbols. This gives us a table to use to resolve characters included in docx via w:sym element. Use this table to resolve characters when symbol fonts are specified. Closes #9220.
2023-11-28Correct comment.John MacFarlane