Commit graph

1368 commits

Author SHA1 Message Date
Myriad-Dreamin
d6d3766b6f
feat: add command to profile the entire server (#1438)
* feat: declare and bind tinymist.profileServer command

* feat: editor bridge with the frontend

* feat: start and stop server profiling

* feat: add profile-server prototype (#1440)

* Add profile-server prototype

* fix: use branch

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>

* feat: make it good

* build: update cargo.lock

* dev: ls profile impl and hook

* test: update snapshot

---------

Co-authored-by: Derived Cat <hooyuser@outlook.com>
2025-05-09 15:29:24 +08:00
Myriad-Dreamin
890ecd93a5
fix: checkout repository in publish step to get yarn.lock (#1722) 2025-05-06 15:48:59 +08:00
Myriad-Dreamin
4ded5a624a
feat: forbid signature help in some cases (#1742)
* feat: forbid signature help in some cases

* test: update snapshot
2025-05-06 14:55:24 +08:00
Myriad-Dreamin
29893aa15f
fix: escape snippet syntax in the completing code (#1741) 2025-05-06 11:38:35 +08:00
Myriad-Dreamin
90efb38c7e
feat: only complete if the next line is a function definition (#1740)
* test: add `paper.typ` for e2e testing

* feat: only complete if the next line is a function definition
2025-05-05 18:40:52 +08:00
Myriad-Dreamin
8f0d9c25d7
feat: re-identify ref colon syntax and perform IDE operations (#1735)
* test: add cases about ref syntax

* feat: re-identify ref syntax and perform IDE operations
2025-05-03 19:03:07 +08:00
Myriad-Dreamin
e4ed9defb1
refactor: tidy up main and let converter know the target (#1729) 2025-05-01 18:48:29 +08:00
Myriad-Dreamin
d85bd7428a
refactor: remove unused code (#1728) 2025-05-01 17:58:15 +08:00
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
Myriad-Dreamin
3ba3211d1a
feat: typlite supports latex export (#1718)
* fix: remove global variable use

* dev: don't ignore rest variants

* feat: latex impl

feat: pass tests

refactor lib.rs to separated files (#1692)

* feat: add all_elements test

* refactor

* reimpl md export in cmark-writer

* feat: add support for highlight tag in MarkdownConverter

* feat: refactor LaTeXConverter to improve element processing and add new methods

* feat: impl assets-path feature and add ExternalFrameNode for handling external frames and update writers to support it

* feat: enhance HTML element conversion to include attributes and children handling

* feat: update cmark-writer to 0.6.1 and refactor related code

* feat: refactor HTML element conversion to use create_html_element method and enhance table processing

* fix

* feat: add HighlightNode for highlighted text and integrate with HTML to AST parser and LaTeX writer

* refactoor

refactor: simplify MarkdownDocument structure and parsing logic (#1724)

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

* feat: snapshot latex

* test: update snapshot

---------

Co-authored-by: Hong Jiarong <me@jrhim.com>
2025-05-01 16:16:43 +08:00
Myriad-Dreamin
33a9ea6088
fix: tests broken by new typlite (#1720)
* Revert "test: update bad snapshot"

This reverts commit 7ba7eb1793.

* fix: update cmark-writer to version 0.6.3 and adjust related snapshots (#1721)

* fix: annotate_docs_error and list level, but bring up 2 new errors.. (#1723)

* fix: adjust list level handling in ListParser during conversion

* fix: manually eval instead of include

* fix: annotate_docs_error, but bring up 2 new errors..

* fix: spaces

* fix: example

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>

* fix: no html

* test: update snapshot

---------

Co-authored-by: Hong Jiarong <me@jrhim.com>
2025-05-01 15:42:08 +08:00
Myriad-Dreamin
f35d1056ff
feat: reimplement typlite by html export (#1684)
* dev: init markdown file

* dev: typlite element derive

* feat: pass tests

refactor lib.rs to separated files (#1692)

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

* feat: add all_elements test

* refactor

* reimpl md export in cmark-writer

* feat: add support for highlight tag in MarkdownConverter

* feat: refactor LaTeXConverter to improve element processing and add new methods

* fmt

* 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

* update instas

* fmt

* 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

* feat: impl assets-path feature and add ExternalFrameNode for handling external frames and update writers to support it

* feat: enhance HTML element conversion to include attributes and children handling

* feat: update cmark-writer to 0.6.1 and refactor related code

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

* feat: refactor HTML element conversion to use create_html_element method and enhance table processing

* fix

* feat: add HighlightNode for highlighted text and integrate with HTML to AST parser and LaTeX writer

* refactoor

* update tests

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

* feat: revert latex/docx conversions

* fix: warnings

* bad: convert docs

* build: remove other cargo deps

* build: update cargo.lock

* test: update snapshot

* chore: remove useless parser trait

* feat: annotate v1

* feat: annotate v2

* test: update snapshot

* question: is it a bug?

* test: update bad snapshot

---------

Co-authored-by: Hong Jiarong <me@jrhim.com>
2025-04-30 22:12:25 +08:00
Myriad-Dreamin
170dd7b948
fix: don't count dedent on the empty comment lines (#1690)
* fix: don't count dedent on the empty comment lines

* fix: more tests

* test: update snapshot
2025-04-30 21:47:07 +08:00
Myriad-Dreamin
3103f3933c
test(typlite): add more cases (#1719)
* test: add more cases

* test: update snapshot
2025-04-30 21:36:54 +08:00
Myriad-Dreamin
c66d2996dd
test: typlite use snapshot_testing (#1717)
* feat: use snapshot_test

* test: add snapshots
2025-04-30 20:31:02 +08:00
Myriad-Dreamin
647cda29a0
dev: split test functions for multiple crates (#1695)
* dev: split test functions for multiple crates

* build: update cargo.lock

* fix: compile error
2025-04-30 19:01:29 +08:00
Myriad-Dreamin
1108b39e3f
feat(ci): setup and cache minimal toolchain (#1683)
* feat(ci): setup and cache minimal toolchain

* dev: components

* fix: broken rpds

* fix: edition 2024??
2025-04-30 17:45:13 +08:00
Luyan Zhou
6118b346d6
feat: add path conversion actions for absolute and relative paths (#1696)
* feat: add path conversion actions for absolute and relative paths in special function call

* feat: implement matchers

* docs: edit comment

* fix: path on windows

* feat: add a comment

* dev: edit a bit

* dev: use `resolved`

* refactor: simplify path rewriting logic using `diff`

* feat: add absolute path import fixture

* fix: update path check for absolute paths to use `starts_with` to work with windows

* feat: add path expression import fixture

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-04-30 17:15:42 +08:00
Myriad-Dreamin
11cfb08be5
docs: update readme (#1716) 2025-04-30 16:55:16 +08:00
Myriad-Dreamin
4871cd3917
build: bump version to 0.13.12 (#1715)
* docs: update changelog

* build: bump version to 0.13.12

* build: bump assets  to v0.13.12
2025-04-30 14:45:23 +08:00
Myriad-Dreamin
c869cde2c5
docs: update readme and docs about linting (#1714)
* docs: update readme about linting

* docs: update documentation
2025-04-30 14:40:36 +08:00
Myriad-Dreamin
0552d4bb4f
build: bump version to 0.13.12-rc6 (#1713)
* fix: sync-ls warnings

* build: bump version to 0.13.12-rc6

* fix: lint config bug

* build: fix assets ver

* feat: bump asset crate
2025-04-30 13:53:28 +08:00
Myriad-Dreamin
48976dd1dd
fix: sync-ls warnings (#1711) 2025-04-30 02:39:56 +08:00
Myriad-Dreamin
f4a6d2b271
build: bump version to 0.13.12-rc5 (#1710)
* build: bump version to 0.13.12-rc5

* build: bump assets to v0.13.12-rc5

* docs: edit changelog
2025-04-30 02:09:28 +08:00
Myriad-Dreamin
9a91e77ee9
feat: add memory registry (#1709) 2025-04-30 01:49:11 +08:00
Myriad-Dreamin
7df144ccff
feat: disable linting by default (#1708) 2025-04-29 22:15:34 +08:00
Myriad-Dreamin
f33ea4913c
build: bump typst.ts to v0.6.0-rc1 (#1707)
* build: bump typst.ts to v0.6.0-rc1

* build: update lock and docs
2025-04-29 12:46:16 +08:00
Myriad-Dreamin
f503298f48
feat: model and make reset_read public (#1705) 2025-04-25 21:24:59 +08:00
Myriad-Dreamin
042fc2a477
feat: forbid weird embedded font uses and make toml dep optional (#1701)
* cg

* fix: forbid weird embedded

* feat: optional toml
2025-04-25 17:56:17 +08:00
Luyan Zhou
2b3eb252f0
fix: built-in CSL styles are recognized as path link (#1704) 2025-04-25 13:42:02 +08:00
Luyan Zhou
3520c90244
fix: correct parameter name in diff function for clarity (#1700)
* fix: correct parameter name in `diff` function for clarity

* fix: update parameter names in `diff` function for clarity
2025-04-23 17:26:42 +08:00
Myriad-Dreamin
84569fb98c
refactor: update comments and refactor (#1694)
* docs: update comments

* docs: refactor
2025-04-21 18:48:25 +08:00
Patrick Dewey
5ee874d6b3
docs: change pinning to use non-deprecated function client:exec (#1678)
* docs: Update pinning commands to use non-deprecated function `client:exec`

* dev: update tinymist.lua

* docs: update comment

* docs: remove redundant config code block

* build: edit a bit and update readme

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-04-21 18:00:17 +08:00
Myriad-Dreamin
bef0f839e2
feat: update docs and remove unnecessary shared access model (#1693) 2025-04-21 17:35:36 +08:00
Myriad-Dreamin
670f2713a5
docs: update sync-ls comments (#1689)
* docs: update `sync-ls` comments

* fix: fmt
2025-04-20 16:42:42 +08:00
Myriad-Dreamin
e26d817b79
feat: optionally make symbol completion stepless (#1313)
* feat: support to steplessly complete symbols

* fix: default enum

* feat: implement it

* fix: bad nest

* dev: order

* fix: modifier
2025-04-19 11:32:53 +08:00
Myriad-Dreamin
258cf85601
dev(ci): restrict patterns to release (#1682) 2025-04-18 04:10:54 +08:00
Myriad-Dreamin
d3134926e5
fix: fix warnings in publish dry runs (#1681) 2025-04-18 03:42:49 +08:00
Myriad-Dreamin
923155a2e2
build: bump version to 0.13.12-rc4 (#1680) 2025-04-18 02:40:51 +08:00
Myriad-Dreamin
dddae6f549
fix: build arm-unknown-linux-gnueabihf (#1679)
* fix: build arm-unknown-linux-gnueabihf

* fix: runner
2025-04-18 02:19:57 +08:00
Myriad-Dreamin
8f4f07673f
build: bump version to 0.13.12-rc3 (#1676)
* build: bump version to 0.13.12-rc3

* build: update assets
2025-04-17 20:23:38 +08:00
Myriad-Dreamin
94416c4b5d
fix: errors in ci scripts (#1675)
* fix: order to publish

* fix: bad build binary

* test: update it
2025-04-17 19:16:14 +08:00
Myriad-Dreamin
a3758038ee
build: bump version to 0.13.12-rc2 (#1674)
* build: bump version to v0.13.12-rc2

* build: update targets

* build: update assets

* fix: warning
2025-04-17 17:02:34 +08:00
Myriad-Dreamin
c4090158b1
feat: tries to publish tinymist to crates.io (#1667)
* feat: publish tinymist to crates.io

* fix: first attempt is failed

* fix: first attempt is failed

* fix: the block is assumed to be used in block expressions
2025-04-17 16:57:38 +08:00
Myriad-Dreamin
d5aad257e7
build: bump version to 0.13.12-rc1 (#1669)
* docs: update changelog

* docs: update changelog

* build: bump version to v0.13.12-rc1

* build: update assets
2025-04-17 15:35:03 +08:00
Patrick Dewey
8dff9b953e
docs: fix syntax error in Neovim docs (#1672)
* docs: Fix syntax error in Neovim docs

* build: update readme

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-04-17 14:34:20 +08:00
Myriad-Dreamin
2345607df7
fix: vscode check command (#1665) 2025-04-17 13:54:22 +08:00
Myriad-Dreamin
fc5757a5bc
feat: delay doc switch (#1662) 2025-04-17 02:34:38 +08:00
Myriad-Dreamin
b56ba42984
fix: the block is assumed to be used in expressions (#1668) 2025-04-16 18:47:08 +08:00
Myriad-Dreamin
84c211c7eb
feat: extract package implementation (#1647)
* feat: extract registry implementation

* feat: tinymist package

* fix: guard

* fix: guard 2

* feat: no specifier

* fix: temp_dir_in impl

* fix: impls

* feat: UniversePack::new

* feat: clone into memory

* feat: implement some pack for testing

* build: update cargo.lock

* feat: fit for web

* fix: guard
2025-04-16 18:19:03 +08:00