cpjolicoeur-ClothBlue 0.2.2 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/clothblue.gemspec +4 -4
- data/lib/clothblue.rb +698 -100
- data/lib/parsehtml/parsehtml.rb +452 -0
- metadata +4 -4
- data/README +0 -3
- data/lib/README.rdoc +0 -46
data/README
DELETED
data/lib/README.rdoc
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
= ClothBlue HTML 2 Markdown converter
|
2
|
-
|
3
|
-
== What it is
|
4
|
-
|
5
|
-
A script to convert HTML into Markdown markup for use, for example, with BlueCloth.
|
6
|
-
|
7
|
-
|
8
|
-
== Requirements
|
9
|
-
|
10
|
-
All you need is Ruby.
|
11
|
-
|
12
|
-
== Get it
|
13
|
-
|
14
|
-
Available as a gem on GitHub:
|
15
|
-
|
16
|
-
Or download from:
|
17
|
-
|
18
|
-
Or get the source:
|
19
|
-
|
20
|
-
|
21
|
-
== Features
|
22
|
-
|
23
|
-
This is alpha software, and only a few Markdown rules have been implemented yet:
|
24
|
-
* font markup and weight (<b>, <strong>, ...)
|
25
|
-
* text formatting (<sub>, <sup>, <ins>,<del>)
|
26
|
-
|
27
|
-
== Usage
|
28
|
-
|
29
|
-
require 'clothblue'
|
30
|
-
|
31
|
-
text = ClothBlue.new("<b>Bold</b> <em>HTML</em>!")
|
32
|
-
text.to_markdown
|
33
|
-
|
34
|
-
== Get Help
|
35
|
-
|
36
|
-
Feel free to contact me, or peruse the homepage.
|
37
|
-
|
38
|
-
* http://craigjolicoeur.com/clothblue/
|
39
|
-
* http://github.com/cpjolicoeur/clothblue/
|
40
|
-
|
41
|
-
== Acknowledgments
|
42
|
-
|
43
|
-
ClothBlue is heavily copied from the ClothRed library (http://clothred.rubyforge.org/). Much thanks to
|
44
|
-
Phillip Gawlowski for the initial idea and code. I basically just ported this HTML to Textile converter
|
45
|
-
to work with Markdown instead of Textile. The format of the code and README docs are pretty much exact
|
46
|
-
clones as far as the format is concerned.
|