Public
Authored by Simon-L

Markdown processing using a WASM-compiled Go library

Uses Hugo's (https://gohugo.io) MD processor, blackfriday: https://github.com/russross/blackfriday

Compile using:

GOOS=js GOARCH=wasm go build -o main.wasm

Download this file :index.html

You will also need a file from your go installation: $ cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .

Serve the directory using Go or Caddy for example and navigate to index.html

Example markdown data: data.md (modified from blackfriday sources)

Edited
main.go 693 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment