Modules@robinpath/markdown
@robinpath/markdown
0.1.1PublicMarkdown 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
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
| Function | Description |
|---|---|
markdown.toHtml | Convert markdown to basic HTML |
markdown.extractHeadings | Extract all headings with their levels |
markdown.extractLinks | Extract all links |
markdown.extractImages | Extract all images |
markdown.extractCodeBlocks | Extract fenced code blocks |
markdown.stripMarkdown | Strip all markdown formatting to plain text |
markdown.extractFrontmatter | Parse YAML frontmatter from markdown |
markdown.extractTodos | Extract task list items |
markdown.tableToArray | Parse a markdown table into array of objects |
markdown.wordCount | Count 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
@robinpath/json— JSON module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.1 | latest | yesterday |
Related Modules
utilities
1
@dev-tester/hello-world
v2.0.0dev-tester
Updated description
0 downloads
...
utilities
0
@robinpath/apollo
v0.1.1robinpath
Apollo module for RobinPath.
0 downloads
...
utilities
0
@robinpath/archive
v0.1.1robinpath
Create and extract .zip and .tar.gz file archives
0 downloads
...
utilities
0
@robinpath/assert
v0.1.1robinpath
Testing assertions: equal, deepEqual, truthy, falsy, type checks, includes, matches, throws, and more
0 downloads
...
Install
$ robinpath install @robinpath/markdown Version0.1.1
LicenseMIT
Unpacked Size4.6 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

