Skip to content

Commit 5337bbf

Browse files
committed
chore(regen): regenerate all language bindings with alef 0.14.15
1 parent 7336a9d commit 5337bbf

86 files changed

Lines changed: 3295 additions & 1802 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ GEMINI.md
170170
!packages/go/v2/bin/
171171
!packages/go/v2/bin/benchmark.go
172172

173+
.venv/
174+
node_modules/
175+
vendor/bundle/
176+
vendor/
177+
173178
# BEGIN ai-rulez (DO NOT EDIT - managed by ai-rulez)
174179
.agents/
175180
.claude/

alef.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
alef_version = "0.14.10"
2+
alef_version = "0.14.15"
33
languages = ["python", "node", "ruby", "php", "ffi", "go", "java", "csharp", "elixir", "wasm", "r"]
44

55
[workspace.sync]

crates/html-to-markdown-node/src/lib.rs

Lines changed: 991 additions & 516 deletions
Large diffs are not rendered by default.

crates/html-to-markdown-py/src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is auto-generated by alef. DO NOT EDIT.
2-
// alef:hash:7192bfb2bb61ac5c9cdf9505bf3346c9a009314bf1517287a69d6ab824a273fd
2+
// alef:hash:57dc2b4f6867f0a46302c9a8c80c6ab82569d6e5f84a3616725b63a5bb222c18
33
// Re-generate with: alef generate
44
#![allow(missing_docs)]
55
#![allow(deprecated, dead_code, unused_imports, unused_variables)]
@@ -4260,7 +4260,7 @@ impl From<DocumentNode> for html_to_markdown_rs::DocumentNode {
42604260
fn from(val: DocumentNode) -> Self {
42614261
Self {
42624262
id: val.id,
4263-
content: Default::default(),
4263+
content: val.content.into(),
42644264
parent: val.parent,
42654265
children: val.children,
42664266
annotations: val.annotations.into_iter().map(Into::into).collect(),
@@ -4276,7 +4276,7 @@ impl From<html_to_markdown_rs::DocumentNode> for DocumentNode {
42764276
fn from(val: html_to_markdown_rs::DocumentNode) -> Self {
42774277
Self {
42784278
id: val.id,
4279-
content: Default::default(),
4279+
content: val.content.into(),
42804280
parent: val.parent,
42814281
children: val.children,
42824282
annotations: val.annotations.into_iter().map(Into::into).collect(),
@@ -4293,7 +4293,7 @@ impl From<TextAnnotation> for html_to_markdown_rs::TextAnnotation {
42934293
Self {
42944294
start: val.start,
42954295
end: val.end,
4296-
kind: Default::default(),
4296+
kind: val.kind.into(),
42974297
}
42984298
}
42994299
}
@@ -4304,7 +4304,7 @@ impl From<html_to_markdown_rs::TextAnnotation> for TextAnnotation {
43044304
Self {
43054305
start: val.start,
43064306
end: val.end,
4307-
kind: Default::default(),
4307+
kind: val.kind.into(),
43084308
}
43094309
}
43104310
}
@@ -4315,7 +4315,7 @@ impl From<ConversionResult> for html_to_markdown_rs::ConversionResult {
43154315
fn from(val: ConversionResult) -> Self {
43164316
Self {
43174317
content: val.content,
4318-
document: Default::default(),
4318+
document: val.document.map(Into::into),
43194319
metadata: val.metadata.into(),
43204320
tables: val.tables.into_iter().map(Into::into).collect(),
43214321
images: Default::default(),
@@ -4330,7 +4330,7 @@ impl From<html_to_markdown_rs::ConversionResult> for ConversionResult {
43304330
fn from(val: html_to_markdown_rs::ConversionResult) -> Self {
43314331
Self {
43324332
content: val.content,
4333-
document: Default::default(),
4333+
document: val.document.map(Into::into),
43344334
metadata: val.metadata.into(),
43354335
tables: val.tables.into_iter().map(Into::into).collect(),
43364336
images: val.images.iter().map(|i| format!("{:?}", i)).collect(),

crates/html-to-markdown-rs-wasm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ npm install html-to-markdown-rs-wasm
1111
## Quick Start
1212

1313
```javascript
14-
import init from 'html-to-markdown-rs-wasm';
14+
import init from "html-to-markdown-rs-wasm";
1515

1616
await init();
1717
// See https://github.com/kreuzberg-dev/html-to-markdown for usage examples.

crates/html-to-markdown-wasm/Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is auto-generated by alef — DO NOT EDIT.
2-
# alef:hash:04b636a34c419ed8a989ca27dc9e30346e143597d584913367672fdbfa841274
2+
# alef:hash:9b825ee710ba71d96e21ba2bf82c84870973b801ec7374e777cb12358f9ed2f6
33
# To regenerate: alef generate
44
# To verify freshness: alef verify --exit-code
55
# Issues & docs: https://github.com/kreuzberg-dev/alef
@@ -24,7 +24,13 @@ crate-type = ["cdylib"]
2424

2525
[dependencies]
2626
futures-util = "0.3"
27-
html-to-markdown-rs = { path = "../html-to-markdown", default-features = false, features = ["full", "metadata", "visitor", "serde", "inline-images"] }
27+
html-to-markdown-rs = { path = "../html-to-markdown", default-features = false, features = [
28+
"full",
29+
"metadata",
30+
"visitor",
31+
"serde",
32+
"inline-images",
33+
] }
2834
js-sys = "0.3"
2935
serde-wasm-bindgen = "0.6"
3036
serde_json = "1"

e2e/go/go.mod

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ require (
77
github.com/stretchr/testify v1.11.1
88
)
99

10+
require (
11+
github.com/davecgh/go-spew v1.1.1 // indirect
12+
github.com/pmezard/go-difflib v1.0.0 // indirect
13+
gopkg.in/yaml.v3 v3.0.1 // indirect
14+
)
15+
1016
replace github.com/kreuzberg-dev/html-to-markdown/packages/go/v3 => ../../packages/go

e2e/node/tests/visitor.test.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is auto-generated by alef — DO NOT EDIT.
2-
// alef:hash:00e6ff02838808f7e24b424d089c475014d5a1893ce941fe0e4fcdecea42dc7a
2+
// alef:hash:8aa303ac06c0f3a26ef9cb7a6ced95f1dae6be571f4f935ba94e9db1dbd0cd08
33
// To regenerate: alef generate
44
// To verify freshness: alef verify --exit-code
55
// Issues & docs: https://github.com/kreuzberg-dev/alef
@@ -62,7 +62,7 @@ describe("visitor", () => {
6262
it("visitor_button_custom: Visitor replaces button with bracketed text", () => {
6363
const _testVisitor = {
6464
visitButton(ctx: any, text: any): string | { custom: string } {
65-
return { custom: `[BTN:{text}]` };
65+
return { custom: `[BTN:${text}]` };
6666
},
6767
};
6868

@@ -106,7 +106,7 @@ describe("visitor", () => {
106106
it("visitor_custom_blockquote: Visitor replaces blockquote with custom format", () => {
107107
const _testVisitor = {
108108
visitBlockquote(ctx: any, content: any, depth: any): string | { custom: string } {
109-
return { custom: `QUOTE: "{content}"` };
109+
return { custom: `QUOTE: "${content}"` };
110110
},
111111
};
112112

@@ -120,7 +120,7 @@ describe("visitor", () => {
120120
it("visitor_custom_emphasis: Visitor replaces emphasis with custom output", () => {
121121
const _testVisitor = {
122122
visitEmphasis(ctx: any, text: any): string | { custom: string } {
123-
return { custom: `>>>{text}<<<` };
123+
return { custom: `>>>${text}<<<` };
124124
},
125125
};
126126

@@ -132,7 +132,7 @@ describe("visitor", () => {
132132
it("visitor_custom_heading: Visitor replaces heading with custom format", () => {
133133
const _testVisitor = {
134134
visitHeading(ctx: any, level: any, text: any, id: any): string | { custom: string } {
135-
return { custom: `--- {text} ---` };
135+
return { custom: `--- ${text} ---` };
136136
},
137137
};
138138

@@ -147,7 +147,7 @@ describe("visitor", () => {
147147
it("visitor_custom_image: Visitor replaces image with custom output using template", () => {
148148
const _testVisitor = {
149149
visitImage(ctx: any, src: any, alt: any, title: any): string | { custom: string } {
150-
return { custom: `[Image: {alt}]` };
150+
return { custom: `[Image: ${alt}]` };
151151
},
152152
};
153153

@@ -159,7 +159,7 @@ describe("visitor", () => {
159159
it("visitor_custom_link_format: Visitor reformats links using template interpolation", () => {
160160
const _testVisitor = {
161161
visitLink(ctx: any, href: any, text: any, title: any): string | { custom: string } {
162-
return { custom: `{text} ({href})` };
162+
return { custom: `${text} (${href})` };
163163
},
164164
};
165165

@@ -200,7 +200,7 @@ describe("visitor", () => {
200200
it("visitor_definition_list_custom: Visitor customizes definition list items", () => {
201201
const _testVisitor = {
202202
visitDefinitionTerm(ctx: any, text: any): string | { custom: string } {
203-
return { custom: `**{text}**` };
203+
return { custom: `**${text}**` };
204204
},
205205
};
206206

@@ -216,10 +216,10 @@ describe("visitor", () => {
216216
it("visitor_definition_list_custom_format: Visitor formats definition lists with custom templates", () => {
217217
const _testVisitor = {
218218
visitDefinitionTerm(ctx: any, text: any): string | { custom: string } {
219-
return { custom: `### {text}` };
219+
return { custom: `### ${text}` };
220220
},
221221
visitDefinitionDescription(ctx: any, text: any): string | { custom: string } {
222-
return { custom: `> {text}` };
222+
return { custom: `> ${text}` };
223223
},
224224
};
225225

@@ -235,10 +235,10 @@ describe("visitor", () => {
235235

236236
it("visitor_definition_list_skip: Visitor skips definition list items from output", () => {
237237
const _testVisitor = {
238-
visitDefinitionTerm(ctx: any, text: any): string | { custom: string } {
238+
visitDefinitionDescription(ctx: any, text: any): string | { custom: string } {
239239
return "skip";
240240
},
241-
visitDefinitionDescription(ctx: any, text: any): string | { custom: string } {
241+
visitDefinitionTerm(ctx: any, text: any): string | { custom: string } {
242242
return "skip";
243243
},
244244
};
@@ -256,7 +256,7 @@ describe("visitor", () => {
256256
it("visitor_details_summary_custom: Visitor customizes details/summary disclosure elements", () => {
257257
const _testVisitor = {
258258
visitSummary(ctx: any, text: any): string | { custom: string } {
259-
return { custom: `[EXPANDABLE] {text}` };
259+
return { custom: `[EXPANDABLE] ${text}` };
260260
},
261261
};
262262

@@ -288,7 +288,7 @@ describe("visitor", () => {
288288
it("visitor_figure_custom: Visitor customizes figure and figcaption elements", () => {
289289
const _testVisitor = {
290290
visitFigcaption(ctx: any, text: any): string | { custom: string } {
291-
return { custom: `*{text}*` };
291+
return { custom: `*${text}*` };
292292
},
293293
};
294294

@@ -305,7 +305,7 @@ describe("visitor", () => {
305305
const _testVisitor = {
306306
visitFigureEnd(ctx: any, output: any): string | { custom: string } {
307307
return {
308-
custom: `{output}
308+
custom: `${output}
309309
[/FIGURE]
310310
`,
311311
};
@@ -441,7 +441,7 @@ describe("visitor", () => {
441441
it("visitor_input_custom: Visitor replaces input with labeled output", () => {
442442
const _testVisitor = {
443443
visitInput(ctx: any, inputType: any, name: any, value: any): string | { custom: string } {
444-
return { custom: `[INPUT:{input_type}]` };
444+
return { custom: `[INPUT:${input_type}]` };
445445
},
446446
};
447447

@@ -499,7 +499,7 @@ describe("visitor", () => {
499499
it("visitor_mark_custom: Visitor replaces highlight/mark with custom template", () => {
500500
const _testVisitor = {
501501
visitMark(ctx: any, text: any): string | { custom: string } {
502-
return { custom: `=={text}==` };
502+
return { custom: `==${text}==` };
503503
},
504504
};
505505

@@ -626,7 +626,7 @@ describe("visitor", () => {
626626
it("visitor_subscript_custom: Visitor replaces subscript with custom template", () => {
627627
const _testVisitor = {
628628
visitSubscript(ctx: any, text: any): string | { custom: string } {
629-
return { custom: `~{text}~` };
629+
return { custom: `~${text}~` };
630630
},
631631
};
632632

@@ -652,7 +652,7 @@ describe("visitor", () => {
652652
it("visitor_superscript_custom: Visitor replaces superscript with custom template", () => {
653653
const _testVisitor = {
654654
visitSuperscript(ctx: any, text: any): string | { custom: string } {
655-
return { custom: `^{text}^` };
655+
return { custom: `^${text}^` };
656656
},
657657
};
658658

@@ -680,7 +680,7 @@ describe("visitor", () => {
680680
it("visitor_underline_custom: Visitor replaces underline with custom markup", () => {
681681
const _testVisitor = {
682682
visitUnderline(ctx: any, text: any): string | { custom: string } {
683-
return { custom: `_{text}_` };
683+
return { custom: `_${text}_` };
684684
},
685685
};
686686

@@ -707,7 +707,7 @@ describe("visitor", () => {
707707
it("visitor_video_custom: Visitor replaces video with custom link", () => {
708708
const _testVisitor = {
709709
visitVideo(ctx: any, src: any): string | { custom: string } {
710-
return { custom: `[VIDEO: {src}]` };
710+
return { custom: `[VIDEO: ${src}]` };
711711
},
712712
};
713713

e2e/python/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/wasm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "vitest run"
88
},
99
"devDependencies": {
10-
"@kreuzberg/html-to-markdown-wasm": "file:../../crates/html-to-markdown-wasm/pkg",
10+
"@kreuzberg/html-to-markdown-wasm": "file:../../crates/html-to-markdown-wasm",
1111
"rollup": "^4.53.3",
1212
"vite-plugin-top-level-await": "^1.4.0",
1313
"vite-plugin-wasm": "^3.4.0",

0 commit comments

Comments
 (0)