@macoshita/wasm-frontmatter-markdown
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.1 • Public • Published

    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

    Keywords

    none

    Install

    npm i @macoshita/wasm-frontmatter-markdown

    DownloadsWeekly Downloads

    6

    Version

    0.2.1

    License

    none

    Unpacked Size

    1.85 MB

    Total Files

    6

    Last publish

    Collaborators

    • macoshita