richmd
TypeScript icon, indicating that this package has built-in type declarations

2.3.1 • Public • Published

Richmd (Legacy package)

NPM npm npm

WARNING: richmd is now in maintenance mode.

With the release of the latest Richmd v3, this package has entered maintenance mode.

Migration is simple and straightforward.

Migrating from v2 to v3

Install @richmd/js:

$ pnpm add @richmd/js

Update your imports as follows:

-import { richmd } from 'richmd'
-import 'richmd/richmd.css'
+import { richmd } from '@richmd/js'
+import "@richmd/js/dist/richmd.css";

Upcoming Schedule

  • From 2025/03/23: All methods in this package will be deprecated and development will end.
  • By June 2025: This repository will be archived and the npm package will be marked as deprecated.

What is Richmd?

Richmd is a tool for making Rich contents Markdown language.

Richmd

Installation

# use npm
$ npm install richmd

# use yarn
$ yarn add richmd

Usage

Retrieve Abstract Syntax Tree (AST) Data

You can retrieve Abstract Syntax Tree (AST) data using the parseTree method. This is useful for customizing code generation on your own.

import { parseTree } from 'richmd';

const text = `# aaaa
## aaaaa

**aaaaaa**
`

const ast = parseTree(text);

Markdown Syntax

Please read Richmd Markdown Syntax Documentation.

Supported Syntax

  • strong
  • italic
  • image
  • link
  • headings
  • horizontal rule
  • blockquote
  • unordeed list
  • ordered list
  • strikethrough
  • code block
  • checkbox list
  • table
  • TeX syntax (using KaTeX)
  • Color Inline Block
  • Dropdown details
  • Video(HTML5 Video Tag)
  • Custom HTML Tag

License

MIT

Thank you 🙏

/richmd/

    Package Sidebar

    Install

    npm i richmd

    Weekly Downloads

    8

    Version

    2.3.1

    License

    MIT

    Unpacked Size

    2.06 MB

    Total Files

    180

    Last publish

    Collaborators

    • nappa