Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
sys-repo/sysWorks with
•JSR Score100%•This package works with Deno, Browsers

License
•MIT
Downloads38/wk
•Published2 weeks ago (0.0.17)
Markdown parsing and serialization primitives.
Markdown
Markdown parsing, serialization, frontmatter, and safe rendering primitives.
Usage
import { Markdown } from '@sys/markdown'; const parsed = Markdown.parse('# Hello'); if (parsed.error) throw parsed.error; const doc = Markdown.Frontmatter.parse('---\ntitle: Hello\n---\n# Hello'); if (doc.error) throw doc.error; const rendered = Markdown.Html.render(doc.data.ast); if (rendered.error) throw rendered.error; const ast = parsed.data; const meta = doc.data.frontmatter?.data; const html = rendered.data;
Built and signed on
GitHub Actions
Add Package
deno add jsr:@sys/markdown
Import symbol
import * as markdown from "@sys/markdown";
Import directly with a jsr specifier
import * as markdown from "jsr:@sys/markdown";