Module: RbbCode

Defined in:
lib/rbbcode/parser.rb,
lib/rbbcode/schema.rb,
lib/rbbcode/html_maker.rb,
lib/rbbcode/tree_maker.rb

Defined Under Namespace

Modules: CharCodes Classes: HtmlMaker, Node, Parser, RootNode, Schema, SchemaNode, SchemaTag, SchemaText, TagNode, TextNode, TreeMaker

Constant Summary collapse

DEFAULT_ALLOWED_TAGS =
[
  'p',
  'br',
  'b',
  'i',
  'u',
  'url',
  'img',
  'code',
  'quote',
  'list',
  '*'
]
DEFAULT_BLOCK_LEVEL_ELEMENTS =
[
  'quote',
  'list',
  '*'
]
DEFAULT_TAG_MAPPINGS =
{
  'p' => 'p',
  'br' => 'br',
  'b' => 'strong',
  'i' => 'em',
  'u' => 'u',
  'code' => 'code',
  'quote' => 'blockquote',
  'list' => 'ul',
  '*' => 'li'
}