mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 18:28:02 +00:00
feat: update typlite crate features (#1825)
Some checks are pending
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / E2E Tests (darwin-arm64 on macos-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-22.04) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-2019) (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-latest) (push) Blocked by required conditions
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / build-binary (push) Blocked by required conditions
tinymist::ci / build-vsc-assets (push) Blocked by required conditions
tinymist::ci / build-vscode (push) Blocked by required conditions
tinymist::ci / build-vscode-others (push) Blocked by required conditions
tinymist::ci / publish-vscode (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
Some checks are pending
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / E2E Tests (darwin-arm64 on macos-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-22.04) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-2019) (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-latest) (push) Blocked by required conditions
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / build-binary (push) Blocked by required conditions
tinymist::ci / build-vsc-assets (push) Blocked by required conditions
tinymist::ci / build-vscode (push) Blocked by required conditions
tinymist::ci / build-vscode-others (push) Blocked by required conditions
tinymist::ci / publish-vscode (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
* build: turn off docx export feature in library mode * feat: make less default feature and rename fonts feature * dev: remove unused code
This commit is contained in:
parent
bc15eb55ce
commit
8e86a401ff
2 changed files with 7 additions and 6 deletions
|
@ -46,9 +46,12 @@ regex.workspace = true
|
|||
tinymist-tests.workspace = true
|
||||
|
||||
[features]
|
||||
default = ["cli", "embed-fonts", "no-content-hint", "docx"]
|
||||
default = ["no-content-hint"]
|
||||
clap = ["dep:clap"]
|
||||
cli = ["clap", "clap/wrap_help"]
|
||||
# Note: this is the feature for typlite as a CLI, not for others.
|
||||
# `docx` is enabled in CLI mode, but not in library mode.
|
||||
# `fonts` is enabled in CLI mode.
|
||||
cli = ["clap", "clap/wrap_help", "docx", "fonts"]
|
||||
no-content-hint = ["tinymist-project/no-content-hint"]
|
||||
docx = ["docx-rs", "image", "resvg"]
|
||||
|
||||
|
@ -58,7 +61,7 @@ docx = ["docx-rs", "image", "resvg"]
|
|||
# - code (Deja Vu Sans Mono)
|
||||
# and additionally New Computer Modern for text
|
||||
# into the binary.
|
||||
embed-fonts = ["tinymist-project/fonts"]
|
||||
fonts = ["tinymist-project/fonts"]
|
||||
|
||||
# [lints]
|
||||
# workspace = true
|
||||
|
|
|
@ -9,7 +9,7 @@ use tinymist_project::LspWorld;
|
|||
use typst::html::{tag, HtmlElement, HtmlNode};
|
||||
|
||||
use crate::attributes::{md_attr, AlertsAttr, HeadingAttr, RawAttr, TypliteAttrsParser};
|
||||
use crate::common::{AlertNode, CenterNode, ListState, VerbatimNode};
|
||||
use crate::common::{AlertNode, CenterNode, VerbatimNode};
|
||||
use crate::tags::md_tag;
|
||||
use crate::Result;
|
||||
use crate::TypliteFeat;
|
||||
|
@ -21,7 +21,6 @@ pub struct HtmlToAstParser {
|
|||
pub asset_counter: usize,
|
||||
pub feat: TypliteFeat,
|
||||
pub world: Arc<LspWorld>,
|
||||
pub list_state: Option<ListState>,
|
||||
pub list_level: usize,
|
||||
pub blocks: Vec<Node>,
|
||||
pub inline_buffer: Vec<Node>,
|
||||
|
@ -34,7 +33,6 @@ impl HtmlToAstParser {
|
|||
world: world.clone(),
|
||||
asset_counter: 0,
|
||||
list_level: 0,
|
||||
list_state: None,
|
||||
blocks: Vec::new(),
|
||||
inline_buffer: Vec::new(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue