Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including rimu with all npm packages installed. Try it out:

var rimu = require("rimu")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

rimu v10.1.0

Readable text to HTML markup language

Rimu Markup

Rimu is a readable-text to HTML markup language inspired by AsciiDoc and Markdown.

Features summary

  • Markup generation can be customized and extended.
  • Includes a simple, flexible macro language.
  • HTML attribute injection and parametrized macros.
  • Accepts raw HTML (a la Markdown).
  • A subset of the Rimu syntax is Markdown compatible.
  • Single JavaScript file (less than 22KB minified) that can be dropped onto a Web page or used as a Node module.
  • No dependencies.
  • One-function API.
  • Written in TypeScript.
  • Includes command-line compiler, JavaScript library, TypeScript library declaration file, playground GUI, Vim syntax highlighter and a unit test suite.
  • MIT license.
  • There is also a Kotlin port of Rimu for the JVM platform.

Learn more

Read the documentation and experiment with Rimu in the Rimu Playground or open the rimuplayground.html file locally in your browser.

See the Rimu Change Log for the latest changes.

Installing Rimu

Install Rimu as a Node.js module (includes the rimu library and the rimuc command-line tool):

    sudo npm install -g rimu

Run a simple test from the command prompt to check rimuc is working:

    echo 'Hello *Rimu*!' | rimuc

This should output:

    <p>Hello <em>Rimu</em>!</p>

Building Rimu

To build Rimu and the Rimu documentation from source:

  1. Install the Git repository from Github.

     git clone git@github.com:srackham/rimu.git
    
  2. Install gh-pages sub-repository:

     cd rimu
     git clone git@github.com:srackham/rimu.git -b gh-pages gh-pages
    
  3. Install dependencies:

     npm install
    
  4. Build Rimu:

     jake build
    

Using the Rimu library

Browser compatibility

The generated HTML is compatible with all Web browsers. The Rimu JavaScript library works with IE11, Edge, Firefox, Chrome and Android.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free