Basic Markup
Basic Markup is a very basic markup-to-HTML conversion library. It lets you create easy to read web pages without writing verbose HTML. Basic Markup supports the following:
- Headings
- Bold text
- Nested bullet lists
- Control of excessive blank lines
WARNING
Basic Markup is a dead project. You should use the SimpleMarkup class in the Ruby standard library instead.
Usage
The call to BasicMarkup.markup takes two parameters. The first is the markup text to convert to HTML. The second is a boolean indicating if you wish to surround the converted HTML with <html> tags, making a complete HTML page.
require 'basic_markup'
html = BasicMarkup.markup("Text to markup", true)
Sample Markup Text
--Headers--
--This is a level 1 header--
With some text
---This is a level 2 header---
With some text
----This is a level 3 header----
With some text
--Text Formatting--
Here is a line with some **bolded text**. Fancy, huh?
--New Line Insertion--
This should be on a new line.
This should be on a new line too.
With some text
Here is some more text
--Bullet Lists--
Here is a big ol nasty nested bulleted item list:
* The letter A
* The letter B
** The number 1
*** The symbol !
*** The symbol *
*** The symbol &
** The number 2
** The number 3
*** The symbol ^
* The letter C
** The number 4
* The letter D
Download
basic-markup-1.0.0.tar.gz
basic-markup-1.0.0.zip
basic-markup-1.0.0.gem
GitHub
Most Popular Posts
Tags
Archives
- December 2011 (1)
- September 2011 (1)
- July 2011 (1)
- May 2011 (1)
- April 2011 (1)
- March 2011 (1)
- January 2011 (2)
- November 2010 (2)
- September 2010 (1)
- August 2010 (1)
- July 2010 (2)
- June 2010 (2)
- April 2010 (1)
- March 2010 (1)
- February 2010 (2)
- January 2010 (1)
- December 2009 (1)
- November 2009 (1)
- September 2009 (2)
- August 2009 (3)
- July 2009 (2)
- June 2009 (3)
- April 2009 (1)
- February 2009 (1)
- January 2009 (2)
- December 2008 (8)
- November 2008 (2)
- October 2008 (3)
- September 2008 (6)
- July 2008 (3)
- June 2008 (1)
- May 2008 (8)
- April 2008 (6)
- March 2008 (2)
Blogroll
Industury News
Other Links
My GitHub Feed
- jwood pushed to stripe at signal/proby
- jwood pushed to stripe at signal/proby
- jwood pushed to stripe at signal/proby
- jwood pushed to stripe at signal/proby
- jwood pushed to stripe at signal/proby
- jwood pushed to stripe at signal/proby
- jwood pushed to stripe at signal/proby
- jwood pushed to stripe at signal/proby
- jwood pushed to stripe at signal/proby
- jwood pushed to stripe at signal/proby




