kitsonk / markdown_records

A minimalistic library for converting markdown into structured records

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

markdown_records

A minimalistic library to transform arbitrary markdown into a set of markdown records. Intended to be able to feed search engines structured data from markdown.

Usage

import { toRecords } from "https://deno.land/x/markdown_records/mod.ts";

const records = await toRecords(`# An example

Markdown content...

\`\`\`ts
/** Example code */
const a = "a";
\`\`\`
`);

console.log(records); // view the structured data

Copyright 2022 Kitson P. Kelly. All rights reserved. MIT Licensed.

About

A minimalistic library for converting markdown into structured records

License:MIT License


Languages

Language:Rust 42.3%Language:JavaScript 29.9%Language:TypeScript 27.8%