Last Modified
2016-08-02 17:58:22 -0500
Requires
  • rdoc/markup/simple_markup/fragments
  • rdoc/markup/simple_markup/lines.rb

Description

Introduction

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, dave@pragmaticprogrammer.com

Version

0.0

License

Ruby license