0.2.1 • Published 3 years ago

@macoshita/wasm-frontmatter-markdown v0.2.1

Weekly downloads
1
License
-
Repository
-
Last release
3 years ago

wasm-frontmatter-markdown

About

This repository is for my blog.

  • Parse frontmatter markdown
  • Convert frontmatter to json
  • Convert content to html
    • Syntax highlighting

Attention

When Syntax hilighting of TypeScript at first is too slow. Maybe Syntect and fancy regex is slow.

Usage

npm i wasm-frontmatter-markdown
const parser = require("@macoshita/wasm-frontmatter-markdown");

const options = {
  frontmatter: true,
  content: true,
};

parser.parse(
  `---
hello: world
---

# hoge

\`\`\`js
const hello = 'world'
\`\`\`
`,
  options
);

Build

Install nodejs and wasm-pack and build

./build.sh

Publish

wasm-pack publish -a public

ToDo

  • Automatically publish by GitHub Action
0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago