r-markdown-cli
v0.1.8
Published
Rich Markdown (`rmd`) is a toolchain and core engine for parsing, validating, previewing, and building `.rmd` files. It provides a standard way to process rich text content, featuring a local preview server and multiple built-in themes.
Readme
r-markdown-cli
Rich Markdown (rmd) is a toolchain and core engine for parsing, validating, previewing, and building .rmd files. It provides a standard way to process rich text content, featuring a local preview server and multiple built-in themes.
Installation
We recommend installing the CLI tool globally via npm:
npm install -g r-markdown-cliUsage
Once installed, you can use the rmd command directly in your terminal. Here is an overview of the core commands:
Preview & Build
Start Local Preview: Launches a local development server to preview
.rmdfiles in real-time.rmd open example.rmd --port 3000Compile to HTML: Statically compiles
.rmdfiles into HTML with support for themes and bundling modes.# Available themes: default, notion-like, paper, tech-dark # Available modes: self-contained, cdn, split rmd build example.rmd --mode self-contained --theme tech-dark --out dist/demo.html
Parse & Validate
Output AST: Parses the file and outputs the Abstract Syntax Tree (AST) in JSON format.
rmd parse example.rmdValidate Structure: Validates the
.rmdfile against the built-in schema to ensure compliance.rmd validate example.rmd
AI Integration
- Initialize AI Skill: Installs Rich Markdown processing skills for your AI assistants (e.g., Codex, Claude).
rmd init --ai claude rmd init --ai all
More Options
To see all available commands and flags:
rmd --helpObsidian Plugin (Manual Install)
If you want to use Rich Markdown inside Obsidian:
- Build the plugin:
npm run obsidian:build - Install to your vault:
Create a folder at
<your-vault>/.obsidian/plugins/rich-markdownand copy all files frompackages/obsidian-plugin/dist/into it. - Enable: Restart Obsidian or refresh the plugin list, then enable "Rich Markdown" in Community Plugins settings.
License
This project is licensed under the MIT License. See the LICENSE file for details.
