tinymist/crates
Myriad-Dreamin 6b7ca47f23
feat: typlite supports docx export (#1727)
* feat: docx impl

Revert "build: remove other cargo deps"

This reverts commit 059b480b1f635d1e8f5be7c191075efcf959b40b.

feat(typlite): Docx export and export markdown in cmark-writer (#1698)

* feat: docx export support

* refactor: simplify DocxConverter structure and improve content handling

* tests: add binary insta for docx

* feat: add MathBlock style and improve frame rendering in DocxConverter

* fix: enhance paragraph creation(silly method)

* fix: enhance math equation rendering

* use md5 instead of docx binary

* feat: enhance list numbering and paragraph handling in DocxConverter

* Refactor DOCX converter to improve list handling and document structure

- Introduced separate methods for creating ordered and unordered list numbering.
- Enhanced list management by tracking next numbering IDs.
- Consolidated paragraph and run management within the DocxConverter.
- Improved image processing with better error handling and placeholder support.
- Streamlined the handling of various HTML elements, including headings, lists, and images.
- Added functionality for processing captions and preformatted blocks.
- Updated methods for processing inline styles and links.

* feat: update cmark-writer to version 0.2.0

* feat: refactor code block handling in DOCX converter for improved readability

* refactor: refactor DOCX converter to enhance document structure

* refactor docx to separated files

* chore: update cmark-writer version to 0.3.0

* fix: ol custom value

* feat: table and grid processing

* use cmark-writer's ast node for consistency

* fix: update snapshot hashes for document generation tests

* fix: add preamble

* update snapshot hashes

* refactor DOCX conversion: Split writer functionality into separate module, enhance image processing, and clean up utility functions

* update comments in LaTeX and Markdown converters for clarity and consistency

* fmt

* delete utils

* feat: support figure node by custom node in cmark-writer

* fix

* fix: frame

* feat: enhance table conversion logic in MarkdownConverter

* refactor: simplify FigureNode implementation by removing CustomNode trait

* chore: update cmark-writer to version 0.5.0

* fix: update figure and raw inline snapshots for consistency

* fix: update snapshot hashes and correct caption reference in markdown.typ

* refactor proj structure

* feat: update CompileArgs to support multiple output files and remove debug option

* docs: update README to clarify usage of multiple output formats and comment out feature section

* remove DocxConverter module

* fix: update snapshots for figure caption, list, outline, and docx generation

* update tests

Co-Authored-By: Hong Jiarong <me@jrhim.com>

* test: docx snapshots

* fix: use old resvg

* feat: make docx opt-in

* fix: image process on our hand

* dev: remove support to rarely used image formats

* feat: use new base64

* test: update snapshot

* fix: dim calc

* fix: dim calc 2

* test: update snapshot

---------

Co-authored-by: Hong Jiarong <me@jrhim.com>
2025-05-01 17:23:46 +08:00
..
crityp feat: add no-content-hint feature to crityp (#1408) 2025-02-26 22:15:24 +08:00
sync-lsp fix: sync-ls warnings (#1711) 2025-04-30 02:39:56 +08:00
tinymist dev: split test functions for multiple crates (#1695) 2025-04-30 19:01:29 +08:00
tinymist-analysis feat: reimplement typlite by html export (#1684) 2025-04-30 22:12:25 +08:00
tinymist-assets feat: employ l10n to tinymist-cli and vscode extension (#1505) 2025-03-15 10:38:07 +08:00
tinymist-core build: bump version to 0.13.12 (#1715) 2025-04-30 14:45:23 +08:00
tinymist-dap feat: add instrument-based breakpoints support to dap (#1529) 2025-03-17 18:19:31 +08:00
tinymist-debug build: bump world crates to 0.13.12-rc1 (#1608) 2025-03-31 16:01:51 +08:00
tinymist-derive feat: reimplement typlite by html export (#1684) 2025-04-30 22:12:25 +08:00
tinymist-l10n feat: support l10n message with arguments (#1508) 2025-03-15 12:50:50 +08:00
tinymist-lint fix: the block is assumed to be used in expressions (#1668) 2025-04-16 18:47:08 +08:00
tinymist-package feat: add memory registry (#1709) 2025-04-30 01:49:11 +08:00
tinymist-project build: bump version to 0.13.12 (#1715) 2025-04-30 14:45:23 +08:00
tinymist-query fix: tests broken by new typlite (#1720) 2025-05-01 15:42:08 +08:00
tinymist-render dev: stateful requests now accept snapshot (#1581) 2025-03-25 16:28:00 +08:00
tinymist-std build: bump version to 0.13.12 (#1715) 2025-04-30 14:45:23 +08:00
tinymist-task build: bump version to 0.13.12 (#1715) 2025-04-30 14:45:23 +08:00
tinymist-tests dev: split test functions for multiple crates (#1695) 2025-04-30 19:01:29 +08:00
tinymist-vfs build: bump version to 0.13.12 (#1715) 2025-04-30 14:45:23 +08:00
tinymist-world dev: split test functions for multiple crates (#1695) 2025-04-30 19:01:29 +08:00
typlite feat: typlite supports docx export (#1727) 2025-05-01 17:23:46 +08:00
typst-preview refactor: remove once_cell use from tinymist (#1632) 2025-04-08 02:11:44 +08:00
typst-shim build: bump version to 0.13.12 (#1715) 2025-04-30 14:45:23 +08:00