Public
Script
Readme

md

A Markdown renderer written in Zig & C, compiled to WebAssymbly for val.town - https://github.com/ije/md4w

import { render } from "https://esm.town/v/ije/md" render("Stay _foolish_, stay **hungry**!") // -> <p>Stay <em>foolish</em>, stay <strong>hungry</strong>!</p>
1
2
3
4
5
6
7
import { init, mdToHtml } from "https://esm.sh/md4w@0.2.4";
await init("small");
export function render(html: string) {
return mdToHtml(html);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
February 29, 2024