public
Rubygem
Description: BlueCloth's evil twin - convert HTML into Markdown
Homepage: http://www.craigjolicoeur.com/clothblue
Clone URL: git://github.com/cpjolicoeur/clothblue.git
Search Repo:
Click here to lend your support to: clothblue and make a donation at www.pledgie.com !
some initial readme docs copied from the clothred library
cpjolicoeur (author)
Wed May 14 08:32:17 -0700 2008
commit  8d25f21e4e9eab4c47d28e335133bb1fa424df0e
tree    7f25eb69c0c2865600c8c51e986a961b83850632
parent  8586976cdc7165c6b7ca44e1a1c80b3217b09bbb
0
...
 
...
1
0
@@ -1 +1,2 @@
0
+README coming soon. For now see README in the lib/ directory
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
0
@@ -1 +1,47 @@
0
+= ClothBlue HTML 2 Markdown converter
0
+
0
+== What it is
0
+
0
+A script to convert HTML into Markdown markup for use, for example, with BlueCloth.
0
+
0
+
0
+== Requirements
0
+
0
+All you need is Ruby.
0
+
0
+== Get it
0
+
0
+Available as a gem on GitHub:
0
+
0
+Or download from:
0
+
0
+Or get the source:
0
+
0
+
0
+== Features
0
+
0
+This is alpha software, and only a few Markdown rules have been implemented yet:
0
+ * font markup and weight (<b>, <strong>, ...)
0
+ * text formatting (<sub>, <sup>, <ins>,<del>)
0
+
0
+== Usage
0
+
0
+require 'clothblue'
0
+
0
+text = ClothBlue.new("<b>Bold</b> <em>HTML</em>!")
0
+text.to_markdown
0
+
0
+== Get Help
0
+
0
+Feel free to contact me, or peruse the homepage.
0
+
0
+ * http://craigjolicoeur.com/clothblue/
0
+ * http://github.com/cpjolicoeur/clothblue/
0
+
0
+== Acknowledgments
0
+
0
+ClothBlue is heavily copied from the ClothRed library (http://clothred.rubyforge.org/). Much thanks to
0
+Phillip Gawlowski for the initial idea and code. I basically just ported this HTML to Textile converter
0
+to work with Markdown instead of Textile. The format of the code and README docs are pretty much exact
0
+clones as far as the format is concerned.
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
0
@@ -1 +1,18 @@
0
+=begin rdoc
0
+Provides the methods to convert HTML into Markdown.
0
+*Please* *note*: ClothBlue creates UTF-8 output. To do so, it sets $KCODE to UTF-8. This will be globally available!
0
+#--
0
+TODO: enhance docs, as more methods come availlable
0
+#++
0
+
0
+Author:: Craig P Jolicoeur (mailto:cpjolicoeur@gmail.com)
0
+Copyright:: Copyright (c) 2008 Phillip Gawlowski
0
+License:: MIT
0
+=end
0
+
0
+require 'cgi'
0
+$KCODE = "U"
0
+
0
+class ClothBlue < String
0
+end

Comments

    No one has commented yet.