peisar 1.0.0

A practical Markdown parser written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
import { Peisar } from "peisar";
import fs from "node:fs";
const content = fs.readFileSync("README.md", "utf8");
const p = new Peisar(content, { fragment: true });

const rawHtml = p.html;
export default function Home() {
  return (
   <div dangerouslySetInnerHTML={{ __html: rawHtml }} />
  );
}