@xberg-io/html-to-markdown-wasm 3.10.4 → 3.10.6
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 +19 -2
- package/package.json +1 -1
- package/pkg/bundler/README.md +19 -2
- package/pkg/bundler/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/bundler/package.json +1 -1
- package/pkg/deno/README.md +19 -2
- package/pkg/deno/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/nodejs/README.md +19 -2
- package/pkg/nodejs/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/nodejs/package.json +1 -1
- package/pkg/web/README.md +19 -2
- package/pkg/web/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,11 +101,28 @@ pnpm add @xberg-io/html-to-markdown-wasm
|
|
|
101
101
|
|
|
102
102
|
Basic conversion:
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
```javascript
|
|
105
|
+
import { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
106
|
+
|
|
107
|
+
const html = "<h1>Hello</h1><p>This is <strong>fast</strong>!</p>";
|
|
108
|
+
const result = convert(html);
|
|
109
|
+
const markdown = result.content;
|
|
110
|
+
console.log(markdown);
|
|
111
|
+
```
|
|
105
112
|
|
|
106
113
|
With conversion options:
|
|
107
114
|
|
|
108
|
-
|
|
115
|
+
```javascript
|
|
116
|
+
import { convert, WasmConversionOptions, WasmHeadingStyle } from "@xberg-io/html-to-markdown-wasm";
|
|
117
|
+
|
|
118
|
+
const options = WasmConversionOptions.default();
|
|
119
|
+
options.headingStyle = WasmHeadingStyle.Atx;
|
|
120
|
+
options.skipImages = true;
|
|
121
|
+
|
|
122
|
+
const result = convert('<h1>Hello</h1><img src="pic.jpg">', options);
|
|
123
|
+
const markdown = result.content;
|
|
124
|
+
console.log(markdown);
|
|
125
|
+
```
|
|
109
126
|
|
|
110
127
|
## Architecture
|
|
111
128
|
|
package/package.json
CHANGED
package/pkg/bundler/README.md
CHANGED
|
@@ -101,11 +101,28 @@ pnpm add @xberg-io/html-to-markdown-wasm
|
|
|
101
101
|
|
|
102
102
|
Basic conversion:
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
```javascript
|
|
105
|
+
import { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
106
|
+
|
|
107
|
+
const html = "<h1>Hello</h1><p>This is <strong>fast</strong>!</p>";
|
|
108
|
+
const result = convert(html);
|
|
109
|
+
const markdown = result.content;
|
|
110
|
+
console.log(markdown);
|
|
111
|
+
```
|
|
105
112
|
|
|
106
113
|
With conversion options:
|
|
107
114
|
|
|
108
|
-
|
|
115
|
+
```javascript
|
|
116
|
+
import { convert, WasmConversionOptions, WasmHeadingStyle } from "@xberg-io/html-to-markdown-wasm";
|
|
117
|
+
|
|
118
|
+
const options = WasmConversionOptions.default();
|
|
119
|
+
options.headingStyle = WasmHeadingStyle.Atx;
|
|
120
|
+
options.skipImages = true;
|
|
121
|
+
|
|
122
|
+
const result = convert('<h1>Hello</h1><img src="pic.jpg">', options);
|
|
123
|
+
const markdown = result.content;
|
|
124
|
+
console.log(markdown);
|
|
125
|
+
```
|
|
109
126
|
|
|
110
127
|
## Architecture
|
|
111
128
|
|
|
Binary file
|
package/pkg/bundler/package.json
CHANGED
package/pkg/deno/README.md
CHANGED
|
@@ -101,11 +101,28 @@ pnpm add @xberg-io/html-to-markdown-wasm
|
|
|
101
101
|
|
|
102
102
|
Basic conversion:
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
```javascript
|
|
105
|
+
import { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
106
|
+
|
|
107
|
+
const html = "<h1>Hello</h1><p>This is <strong>fast</strong>!</p>";
|
|
108
|
+
const result = convert(html);
|
|
109
|
+
const markdown = result.content;
|
|
110
|
+
console.log(markdown);
|
|
111
|
+
```
|
|
105
112
|
|
|
106
113
|
With conversion options:
|
|
107
114
|
|
|
108
|
-
|
|
115
|
+
```javascript
|
|
116
|
+
import { convert, WasmConversionOptions, WasmHeadingStyle } from "@xberg-io/html-to-markdown-wasm";
|
|
117
|
+
|
|
118
|
+
const options = WasmConversionOptions.default();
|
|
119
|
+
options.headingStyle = WasmHeadingStyle.Atx;
|
|
120
|
+
options.skipImages = true;
|
|
121
|
+
|
|
122
|
+
const result = convert('<h1>Hello</h1><img src="pic.jpg">', options);
|
|
123
|
+
const markdown = result.content;
|
|
124
|
+
console.log(markdown);
|
|
125
|
+
```
|
|
109
126
|
|
|
110
127
|
## Architecture
|
|
111
128
|
|
|
Binary file
|
package/pkg/nodejs/README.md
CHANGED
|
@@ -101,11 +101,28 @@ pnpm add @xberg-io/html-to-markdown-wasm
|
|
|
101
101
|
|
|
102
102
|
Basic conversion:
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
```javascript
|
|
105
|
+
import { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
106
|
+
|
|
107
|
+
const html = "<h1>Hello</h1><p>This is <strong>fast</strong>!</p>";
|
|
108
|
+
const result = convert(html);
|
|
109
|
+
const markdown = result.content;
|
|
110
|
+
console.log(markdown);
|
|
111
|
+
```
|
|
105
112
|
|
|
106
113
|
With conversion options:
|
|
107
114
|
|
|
108
|
-
|
|
115
|
+
```javascript
|
|
116
|
+
import { convert, WasmConversionOptions, WasmHeadingStyle } from "@xberg-io/html-to-markdown-wasm";
|
|
117
|
+
|
|
118
|
+
const options = WasmConversionOptions.default();
|
|
119
|
+
options.headingStyle = WasmHeadingStyle.Atx;
|
|
120
|
+
options.skipImages = true;
|
|
121
|
+
|
|
122
|
+
const result = convert('<h1>Hello</h1><img src="pic.jpg">', options);
|
|
123
|
+
const markdown = result.content;
|
|
124
|
+
console.log(markdown);
|
|
125
|
+
```
|
|
109
126
|
|
|
110
127
|
## Architecture
|
|
111
128
|
|
|
Binary file
|
package/pkg/nodejs/package.json
CHANGED
package/pkg/web/README.md
CHANGED
|
@@ -101,11 +101,28 @@ pnpm add @xberg-io/html-to-markdown-wasm
|
|
|
101
101
|
|
|
102
102
|
Basic conversion:
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
```javascript
|
|
105
|
+
import { convert } from "@xberg-io/html-to-markdown-wasm";
|
|
106
|
+
|
|
107
|
+
const html = "<h1>Hello</h1><p>This is <strong>fast</strong>!</p>";
|
|
108
|
+
const result = convert(html);
|
|
109
|
+
const markdown = result.content;
|
|
110
|
+
console.log(markdown);
|
|
111
|
+
```
|
|
105
112
|
|
|
106
113
|
With conversion options:
|
|
107
114
|
|
|
108
|
-
|
|
115
|
+
```javascript
|
|
116
|
+
import { convert, WasmConversionOptions, WasmHeadingStyle } from "@xberg-io/html-to-markdown-wasm";
|
|
117
|
+
|
|
118
|
+
const options = WasmConversionOptions.default();
|
|
119
|
+
options.headingStyle = WasmHeadingStyle.Atx;
|
|
120
|
+
options.skipImages = true;
|
|
121
|
+
|
|
122
|
+
const result = convert('<h1>Hello</h1><img src="pic.jpg">', options);
|
|
123
|
+
const markdown = result.content;
|
|
124
|
+
console.log(markdown);
|
|
125
|
+
```
|
|
109
126
|
|
|
110
127
|
## Architecture
|
|
111
128
|
|
|
Binary file
|