Modules@robinpath/markdown

@robinpath/markdown

0.1.1Public

Markdown processing: convert to HTML, extract headings, links, images, code blocks, frontmatter, and tables

@robinpath/markdown

Markdown processing: convert to HTML, extract headings, links, images, code blocks, frontmatter, and tables

Category Functions Auth License

Why use this module?

The markdown module lets you:

  • Convert markdown to basic HTML
  • Extract all headings with their levels
  • Extract all links
  • Extract all images
  • Extract fenced code blocks

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/markdown

Quick Start

No credentials needed — start using it right away:

markdown.extractHeadings $md

Available Functions

FunctionDescription
markdown.toHtmlConvert markdown to basic HTML
markdown.extractHeadingsExtract all headings with their levels
markdown.extractLinksExtract all links
markdown.extractImagesExtract all images
markdown.extractCodeBlocksExtract fenced code blocks
markdown.stripMarkdownStrip all markdown formatting to plain text
markdown.extractFrontmatterParse YAML frontmatter from markdown
markdown.extractTodosExtract task list items
markdown.tableToArrayParse a markdown table into array of objects
markdown.wordCountCount words in markdown (stripping formatting)

Examples

Extract all headings with their levels

markdown.extractHeadings $md

Extract all links

markdown.extractLinks $md

Extract all images

markdown.extractImages $md

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/markdown";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  markdown.extractHeadings $md
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.1latestyesterday
Install
$ robinpath install @robinpath/markdown
Version0.1.1
LicenseMIT
Unpacked Size4.6 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

utilities