@xberg-io/html-to-markdown-wasm 3.8.1 → 3.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -22
- package/package.json +1 -1
- package/pkg/bundler/README.md +2 -22
- package/pkg/bundler/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/bundler/package.json +1 -1
- package/pkg/deno/README.md +2 -22
- package/pkg/deno/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/nodejs/README.md +2 -22
- package/pkg/nodejs/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/nodejs/package.json +1 -1
- package/pkg/web/README.md +2 -22
- package/pkg/web/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,31 +101,11 @@ pnpm add @xberg-io/html-to-markdown-wasm
|
|
|
101
101
|
|
|
102
102
|
Basic conversion:
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
import init, { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
106
|
-
|
|
107
|
-
await init();
|
|
108
|
-
|
|
109
|
-
const html = "<h1>Hello</h1><p>This is <strong>fast</strong>!</p>";
|
|
110
|
-
const result = convert(html);
|
|
111
|
-
const markdown = result.content;
|
|
112
|
-
console.log(markdown);
|
|
113
|
-
```
|
|
104
|
+
<!-- snippet not found: getting-started/basic_usage.md -->
|
|
114
105
|
|
|
115
106
|
With conversion options:
|
|
116
107
|
|
|
117
|
-
|
|
118
|
-
import init, { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
119
|
-
|
|
120
|
-
await init();
|
|
121
|
-
|
|
122
|
-
const result = convert('<h1>Hello</h1><img src="pic.jpg">', {
|
|
123
|
-
headingStyle: "atx",
|
|
124
|
-
skipImages: true,
|
|
125
|
-
});
|
|
126
|
-
const markdown = result.content;
|
|
127
|
-
console.log(markdown);
|
|
128
|
-
```
|
|
108
|
+
<!-- snippet not found: getting-started/with_options.md -->
|
|
129
109
|
|
|
130
110
|
## Architecture
|
|
131
111
|
|
package/package.json
CHANGED
package/pkg/bundler/README.md
CHANGED
|
@@ -101,31 +101,11 @@ pnpm add @xberg-io/html-to-markdown-wasm
|
|
|
101
101
|
|
|
102
102
|
Basic conversion:
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
import init, { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
106
|
-
|
|
107
|
-
await init();
|
|
108
|
-
|
|
109
|
-
const html = "<h1>Hello</h1><p>This is <strong>fast</strong>!</p>";
|
|
110
|
-
const result = convert(html);
|
|
111
|
-
const markdown = result.content;
|
|
112
|
-
console.log(markdown);
|
|
113
|
-
```
|
|
104
|
+
<!-- snippet not found: getting-started/basic_usage.md -->
|
|
114
105
|
|
|
115
106
|
With conversion options:
|
|
116
107
|
|
|
117
|
-
|
|
118
|
-
import init, { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
119
|
-
|
|
120
|
-
await init();
|
|
121
|
-
|
|
122
|
-
const result = convert('<h1>Hello</h1><img src="pic.jpg">', {
|
|
123
|
-
headingStyle: "atx",
|
|
124
|
-
skipImages: true,
|
|
125
|
-
});
|
|
126
|
-
const markdown = result.content;
|
|
127
|
-
console.log(markdown);
|
|
128
|
-
```
|
|
108
|
+
<!-- snippet not found: getting-started/with_options.md -->
|
|
129
109
|
|
|
130
110
|
## Architecture
|
|
131
111
|
|
|
Binary file
|
package/pkg/bundler/package.json
CHANGED
package/pkg/deno/README.md
CHANGED
|
@@ -101,31 +101,11 @@ pnpm add @xberg-io/html-to-markdown-wasm
|
|
|
101
101
|
|
|
102
102
|
Basic conversion:
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
import init, { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
106
|
-
|
|
107
|
-
await init();
|
|
108
|
-
|
|
109
|
-
const html = "<h1>Hello</h1><p>This is <strong>fast</strong>!</p>";
|
|
110
|
-
const result = convert(html);
|
|
111
|
-
const markdown = result.content;
|
|
112
|
-
console.log(markdown);
|
|
113
|
-
```
|
|
104
|
+
<!-- snippet not found: getting-started/basic_usage.md -->
|
|
114
105
|
|
|
115
106
|
With conversion options:
|
|
116
107
|
|
|
117
|
-
|
|
118
|
-
import init, { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
119
|
-
|
|
120
|
-
await init();
|
|
121
|
-
|
|
122
|
-
const result = convert('<h1>Hello</h1><img src="pic.jpg">', {
|
|
123
|
-
headingStyle: "atx",
|
|
124
|
-
skipImages: true,
|
|
125
|
-
});
|
|
126
|
-
const markdown = result.content;
|
|
127
|
-
console.log(markdown);
|
|
128
|
-
```
|
|
108
|
+
<!-- snippet not found: getting-started/with_options.md -->
|
|
129
109
|
|
|
130
110
|
## Architecture
|
|
131
111
|
|
|
Binary file
|
package/pkg/nodejs/README.md
CHANGED
|
@@ -101,31 +101,11 @@ pnpm add @xberg-io/html-to-markdown-wasm
|
|
|
101
101
|
|
|
102
102
|
Basic conversion:
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
import init, { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
106
|
-
|
|
107
|
-
await init();
|
|
108
|
-
|
|
109
|
-
const html = "<h1>Hello</h1><p>This is <strong>fast</strong>!</p>";
|
|
110
|
-
const result = convert(html);
|
|
111
|
-
const markdown = result.content;
|
|
112
|
-
console.log(markdown);
|
|
113
|
-
```
|
|
104
|
+
<!-- snippet not found: getting-started/basic_usage.md -->
|
|
114
105
|
|
|
115
106
|
With conversion options:
|
|
116
107
|
|
|
117
|
-
|
|
118
|
-
import init, { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
119
|
-
|
|
120
|
-
await init();
|
|
121
|
-
|
|
122
|
-
const result = convert('<h1>Hello</h1><img src="pic.jpg">', {
|
|
123
|
-
headingStyle: "atx",
|
|
124
|
-
skipImages: true,
|
|
125
|
-
});
|
|
126
|
-
const markdown = result.content;
|
|
127
|
-
console.log(markdown);
|
|
128
|
-
```
|
|
108
|
+
<!-- snippet not found: getting-started/with_options.md -->
|
|
129
109
|
|
|
130
110
|
## Architecture
|
|
131
111
|
|
|
Binary file
|
package/pkg/nodejs/package.json
CHANGED
package/pkg/web/README.md
CHANGED
|
@@ -101,31 +101,11 @@ pnpm add @xberg-io/html-to-markdown-wasm
|
|
|
101
101
|
|
|
102
102
|
Basic conversion:
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
import init, { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
106
|
-
|
|
107
|
-
await init();
|
|
108
|
-
|
|
109
|
-
const html = "<h1>Hello</h1><p>This is <strong>fast</strong>!</p>";
|
|
110
|
-
const result = convert(html);
|
|
111
|
-
const markdown = result.content;
|
|
112
|
-
console.log(markdown);
|
|
113
|
-
```
|
|
104
|
+
<!-- snippet not found: getting-started/basic_usage.md -->
|
|
114
105
|
|
|
115
106
|
With conversion options:
|
|
116
107
|
|
|
117
|
-
|
|
118
|
-
import init, { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
119
|
-
|
|
120
|
-
await init();
|
|
121
|
-
|
|
122
|
-
const result = convert('<h1>Hello</h1><img src="pic.jpg">', {
|
|
123
|
-
headingStyle: "atx",
|
|
124
|
-
skipImages: true,
|
|
125
|
-
});
|
|
126
|
-
const markdown = result.content;
|
|
127
|
-
console.log(markdown);
|
|
128
|
-
```
|
|
108
|
+
<!-- snippet not found: getting-started/with_options.md -->
|
|
129
109
|
|
|
130
110
|
## Architecture
|
|
131
111
|
|
|
Binary file
|