| Crates.io | hash-tag |
| lib.rs | hash-tag |
| version | 0.1.16 |
| created_at | 2024-12-04 13:52:11.417548+00 |
| updated_at | 2024-12-12 13:21:21.168196+00 |
| description | Markdown to HTML parser. |
| homepage | |
| repository | https://github.com/pr4j3sh/hash-tag |
| max_upload_size | |
| id | 1472031 |
| size | 24,257 |
<#>
Markdown to HTML Parser written in rust, built with wasm, for direct usage in javascript.
cargocargo install hash-tag
runhash-tag path/to/file.md
Generates a
index.htmlfile
-o flaghash-tag path/to/file.md -o path/to/file.html
-v flaghash-tag path/to/file.md -v path/to/view.html
This uses frames ui.
npmmkdir test
cd test
npm init -y
Add "type": "module", to package.json file.
Install @pr4j3sh/hash-tag npm package
npm install @pr4j3sh/hash-tag
index.js and write the code as:import * as wasm from "@pr4j3sh/hash-tag";
const html = wasm.parse("## heading 2\n");
console.log(html);
node index.js
<h2>heading 2</h2>