Permalink
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (45 sloc) 1.24 KB
/*
Custom Rimu Markup definitions for use by the rimuc command.
Rename this file to ~/.rimurc and it will be loaded automatically by rimurc.
*/
/*
Replacements
*/
// Typographic replacements.
// NOTE: — and → replacements generate false positives in inline HTML comment tags.
/\\?--/ = '—'
/\\?\.{3}/ = '…'
/\\?->/ = '→'
/\\?<-/ = '&leftarrow;'
/\\?\([cC]\)/ = '&copy;'
/\\?\((tm|TM)\)/ = '&trade;'
/\\?\+-/ = '&plusmn;'
// Admonishments.
/\\?\bTODO\b/ = '<b style="color: red; background-color: yellow;">TODO</b>'
/^\\?(NOTES?|IMPORTANT|WARNINGS?|TIPS?):/ = '<b>$1</b>:'
/*
Macros
*/
// Text formatting e.g. H{sub|2}O.
{mark} = '<mark>$1</mark>'
{del} = '<del>$1</del>'
{ins} = '<ins>$1</ins>'
{sup} = '<sup>$1</sup>'
{sub} = '<sub>$1</sub>'
// DEPRECATED
// Bootstrap2 icons e.g. {icon|trash}.
// See http://getbootstrap.com/components/#glyphicons
{icon} = '<span class="icon-$1"></span>'
/*
Quotes
*/
// Double-underline (overrides built-in strong quote).
__ = '<u>|</u>'
// Left and right double-quote characters.
" = '&ldquo;|&rdquo;'
/*
Highlight.js
*/
// Turn off auto-hightlighting.
|code| = '<pre class="no-highlight"><code>|</code></pre>'
|indented| = '<pre class="no-highlight"><code>|</code></pre>'