GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - richmd/js: @richmd/js Package

This repository was archived by the owner on Oct 9, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

58 Commits
58 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
images
images
 
 
src
src
 
 
styles
styles
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.mjs
vite.config.mjs
 
 

Repository files navigation

@richmd/js

NPM License NPM Version NPM Downloads

A JavaScript library for converting Markdown to HTML with rich features. This package is part of the Richmd ecosystem, providing a simple way to render Markdown content as HTML in JavaScript applications.

Features

  • Converts Markdown to HTML
  • Supports standard Markdown syntax
  • Enhanced features:
    • Syntax highlighting for code blocks
    • Math expressions with KaTeX
    • Tables
    • Task lists
    • Blockquotes
    • Details/summary blocks
    • Color blocks
    • Custom tags
  • Includes CSS styling for rendered content

Installation

You can install @richmd/js using npm, yarn, or pnpm:

# Using npm
npm install @richmd/js

# Using yarn
yarn add @richmd/js

# Using pnpm
pnpm add @richmd/js

Usage

Basic Usage

import { richmd } from '@richmd/js';
import '@richmd/js/dist/richmd.css'; // Import the styles

// Convert Markdown to HTML
const markdown = '# Hello World\n\nThis is a **bold** text.';
const { html } = richmd(markdown);

// Use the HTML in your application
document.getElementById('content').innerHTML = html;

Supported Markdown Syntax

@richmd/js supports standard Markdown syntax as well as extended features:

Basic Markdown

  • Headings (# Heading)
  • Emphasis (*italic*, **bold**)
  • Lists (ordered and unordered)
  • Links ([text](url))
  • Images (![alt](src))
  • Code blocks (code)
  • Blockquotes (> quote)
  • Horizontal rules (---)

Extended Features

  • Task lists (- [ ] task or - [x] completed task)
  • Tables
  • Math expressions using KaTeX
  • Color blocks
  • Details/summary blocks
  • Custom tags

Dependencies

@richmd/js depends on:

  • @richmd/core - Core parsing functionality
  • highlight.js - For code syntax highlighting
  • katex - For rendering mathematical expressions

License

MIT

About

@richmd/js Package

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.