SkillAgentSearch skills...

Goldmark

No description available

Install / Use

/learn @natemoo-re/Goldmark
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Goldmark

A very fast Markdown compiler for Deno 🦕

Powered by Go's Goldmark compiled to WASM.

Usage

Basic Example

import { init, transform } from "https://deno.land/x/goldmark/mod.ts";

await init();
const markdown = await Deno.readTextFile(new URL('./content.md', import.meta.url));
const { frontmatter, content } = await transform(markdown, {
    render: {
        unsafeHTML: true
    },
    extensions: {
        GFM: true,
        typographer: true,
    }
})

console.log(frontmatter);
console.log(content);

Configuration

Goldmark comes with many built-in extensions. See the types.ts file for complete options.

Performance

Runs come in well under 1ms on average. See bench/mod.ts.

Sampling 100,000 runs completed in 58s with an average run of 0.57ms.

Related Skills

View on GitHub
GitHub Stars19
CategoryDevelopment
Updated2y ago
Forks0

Languages

JavaScript

Security Score

55/100

Audited on Sep 6, 2023

No findings