r-markdown-cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 relic6
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # r-markdown-cli
2
+
3
+ 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.
4
+
5
+ ## Installation
6
+
7
+ We recommend installing the CLI tool globally via npm:
8
+
9
+ ```bash
10
+ npm install -g r-markdown-cli
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ Once installed, you can use the `rmd` command directly in your terminal. Here is an overview of the core commands:
16
+
17
+ ### Preview & Build
18
+
19
+ - **Start Local Preview**: Launches a local development server to preview `.rmd` files in real-time.
20
+ ```bash
21
+ rmd open example.rmd --port 3000
22
+ ```
23
+
24
+ - **Compile to HTML**: Statically compiles `.rmd` files into HTML with support for themes and bundling modes.
25
+ ```bash
26
+ # Available themes: default, notion-like, paper, tech-dark
27
+ # Available modes: self-contained, cdn, split
28
+ rmd build example.rmd --mode self-contained --theme tech-dark --out dist/demo.html
29
+ ```
30
+
31
+ ### Parse & Validate
32
+
33
+ - **Output AST**: Parses the file and outputs the Abstract Syntax Tree (AST) in JSON format.
34
+ ```bash
35
+ rmd parse example.rmd
36
+ ```
37
+
38
+ - **Validate Structure**: Validates the `.rmd` file against the built-in schema to ensure compliance.
39
+ ```bash
40
+ rmd validate example.rmd
41
+ ```
42
+
43
+ ### AI Integration
44
+
45
+ - **Initialize AI Skill**: Installs Rich Markdown processing skills for your AI assistants (e.g., Codex, Claude).
46
+ ```bash
47
+ rmd init --ai claude
48
+ rmd init --ai all
49
+ ```
50
+
51
+ ## More Options
52
+
53
+ To see all available commands and flags:
54
+
55
+ ```bash
56
+ rmd --help
57
+ ```
58
+
59
+ ## License
60
+
61
+ This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.