Skip to content

A fast, helpful, and open-source document parser

nits

Logan Markewichdae079571586
diff --git a/crates/liteparse-napi/src/types.rs b/crates/liteparse-napi/src/types.rs
index 7526ab7..848536d 100644
--- a/crates/liteparse-napi/src/types.rs
+++ b/crates/liteparse-napi/src/types.rs
@@ -365,7 +365,6 @@ pub struct JsParsedPage {
pub width: f64,
pub height: f64,
pub text: String,
- /// Per-page markdown; empty unless the parse ran with markdown output.
pub markdown: String,
pub text_items: Vec<JsTextItem>,
}
diff --git a/crates/liteparse-python/src/lib.rs b/crates/liteparse-python/src/lib.rs
index 9a9f9ca..b6f7842 100644
--- a/crates/liteparse-python/src/lib.rs
+++ b/crates/liteparse-python/src/lib.rs
@@ -130,7 +130,6 @@ struct PyParsedPage {
height: f64,
#[pyo3(get)]
text: String,
- /// Per-page markdown; empty unless the parse ran with markdown output.
#[pyo3(get)]
markdown: String,
#[pyo3(get)]
diff --git a/crates/liteparse-wasm/src/lib.rs b/crates/liteparse-wasm/src/lib.rs
index 026a36f..e119e37 100644
--- a/crates/liteparse-wasm/src/lib.rs
+++ b/crates/liteparse-wasm/src/lib.rs
@@ -207,7 +207,6 @@ struct JsParsedPage<'a> {
width: f32,
height: f32,
text: &'a str,
- /// Per-page markdown; empty unless the parse ran with markdown output.
markdown: &'a str,
text_items: Vec<JsTextItem<'a>>,
}
diff --git a/crates/liteparse/src/types.rs b/crates/liteparse/src/types.rs
index dabfa8b..6287b14 100644
--- a/crates/liteparse/src/types.rs
+++ b/crates/liteparse/src/types.rs
@@ -148,10 +148,6 @@ pub struct ParsedPage {
pub page_width: f32,
pub page_height: f32,
pub text: String,
- /// Per-page markdown, populated only when the parse runs with
- /// `OutputFormat::Markdown`; empty otherwise. `text` is always the plain
- /// projected layout, so this is the per-page counterpart to the document
- /// markdown on `ParseResult.text`.
#[serde(skip_serializing_if = "String::is_empty")]
pub markdown: String,
pub text_items: Vec<TextItem>,
diff --git a/packages/node/src/lib.ts b/packages/node/src/lib.ts
index 2377f40..e16a6d7 100644
--- a/packages/node/src/lib.ts
+++ b/packages/node/src/lib.ts
@@ -134,7 +134,6 @@ export interface ParsedPage {
width: number;
height: number;
text: string;
- /** Per-page markdown; empty unless parsed with `outputFormat: "markdown"`. */
markdown: string;
textItems: TextItem[];
}