Skip to content

Commit

Permalink
Bump version to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Feb 21, 2024
1 parent a2ff722 commit fafcc9f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
21 changes: 18 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Changelog

## v0.1.x (current working branch)
## v0.2.0

md4w now provides two webassembly binary files:

- `md4w-fast.wasm`: Faster but larger binary file. (270KB gzipped)
- `md4w-small.wasm`: Smaller but slower binary file. (27KB gzipped)

By default, md4w uses the `md4w-fast.wasm` binary from file system, uses the `md4w-small.wasm` binary from CDN. You can also specify the wasm file by adding the `wasmMode` option.

```js
import { init } from "md4w";

init("fast"); // or "small"
```

Other changes:

- Fix html/url escaping
- Fix code block highlighting by lines
- Add `mdToJSON` function to parse markdown to JSON (#4)
```js
const traverse = (node) => {
Expand All @@ -26,6 +39,8 @@
const tree = mdToJSON("Stay _foolish_, stay **hungry**!");
traverse(tree);
```
- Fix html/url escaping
- Fix code block highlighting by lines
## v0.1.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "md4w",
"description": "A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.",
"version": "0.1.9",
"version": "0.2.0",
"type": "module",
"module": "./js/index.js",
"main": "./js/index.js",
Expand Down

0 comments on commit fafcc9f

Please sign in to comment.