Path: markup/simple_markup.rb
Modified: Mon Oct 14 09:04:05 CDT 2002
Fragment Verbatim Paragraph Rule Heading ListBase BlankLine ListStart ListItem ListEnd LineCollection SimpleMarkup TopLevel


SimpleMarkup parses plain text documents and attempts to decompose them into their constituent parts. Some of these parts are high-level: paragraphs, chunks of verbatim text, list entries and the like. Other parts happen at the character level: a piece of bold text, a word in code font. This markup is similar in spirit to that used on WikiWiki webs, where folks create web pages using a simple set of formatting rules.

SimpleMarkup itself does no output formatting: this is left to a different set of classes.

SimpleMarkup is extendable at runtime: you can add new markup elements to be recognised in the documents that SimpleMarkup parses.

SimpleMarkup is intended to be the basis for a family of tools which share the common requirement that simple, plain-text should be rendered in a variety of different output formats and media. It is envisaged that SimpleMarkup could be the basis for formating RDoc style comment blocks, Wiki entries, and online FAQs.

Basic Formatting

Using SimpleMarkup

For information on using SimpleMarkup programatically, see SM::SimpleMarkup.

Author:Dave Thomas,
License:Ruby license
Required files
markup/simple_markup/fragments    markup/simple_markup/lines.rb