- 11.4.0Latest
- 11.3.0
- 11.2.0
- 11.1.14
- 11.1.13
- 11.1.12
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.9.0
- v0.8.4
- v0.8.3
- v0.8.2
- 11.1.11
- 11.1.10
- 11.1.9
- 11.1.8
- 11.1.7
- 11.1.6
- 11.1.5
- 11.1.4
- 11.1.3
- 11.1.1
- 11.1.0
- 11.0.0
- 10.4.2
- 10.4.1
- 10.4.0
- 10.3.1
- 10.3.0
- 10.2.0
- 10.1.0
- 10.0.0
- 9.3.0
- 9.2.0
- 9.1.3
- 9.1.2
- 9.1.1
- 9.1.0
- 9.0.3
- 9.0.2
- 9.0.1
- 9.0.0
- 8.0.1
- 8.0.0
- 7.3.0
- 7.2.1
- 7.2.0
- 7.1.0
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.1.0
- 6.0.0
- 5.4.0
- 5.3.0
- 5.2.0
- 5.1.0
- 5.0.0
- 4.0.1
- 4.0.0
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.1
- 3.3.0
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.12
- 3.0.11
- 0.8.1
- 0.8.0
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.6
- 0.6.5
- 0.6.3
- 0.6.2
- 0.6.1
Rimu Markup
Rimu is a readable-text to HTML markup language inspired by AsciiDoc and Markdown.
At its core Rimu is a simple readable-text markup similar in scope to Markdown, but with two additional areas of functionality (both built into the Rimu markup syntax):
- Markup generation can be customized and extended.
- Rimu includes a simple, flexible macro language.
- A subset of Rimu syntax is Markdown compatible.
- The generated HTML is compatible with all modern browsers.
- A number of Rimu implementations are available for various languages and runtime environments.
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.
NOTE: The remainder of this document is specific to the TypeScript implementation for Node.js, Deno and browser platforms.
Quick start
To try the Rimu library in your browser:
- Open the Rimu NPM Runkit page in your browser.
- Paste in this code then press the Run button.
const rimu = require("rimu")
const html = rimu.render('Hello *Rimu*!')
This will output "<p>Hello <em>Rimu</em>!</p>"
.
Installing Rimu
Node.js
Use npm
to install the Node.js Rimu library module and the rimuc
CLI:
npm install -g rimu
Run a test from the command prompt to check the rimuc
CLI command is
working:
echo "Hello *Rimu*!" | rimuc
This should print:
<p>Hello <em>Rimu</em>!</p>
Deno
Deno modules don’t need explicit installation just import the module URL, for example:
import * as rimu from "https://raw.github.com/srackham/rimu/master/mod.ts";
console.log(rimu.render("Hello *Rimu*!"));
Use the Deno install
command to install the Rimu CLI executable. For
example, the following example creates the CLI executable named
rimudeno
in $HOME/.deno/bin/rimudeno
:
deno install rimudeno -A https://raw.github.com/srackham/rimu/master/src/deno/rimuc.ts
Browser
To use Rimu in an HTML Web page include the bundled and minimized
rimu.min.js
file from the ./lib
directory in your Web page, for
example:
<script src="rimu.min.js"></script>
<script>
alert(Rimu.render("Hello *Rimu*!"));
</script>