Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Aug 2, 2008
1 parent d49de5c commit 72d557e
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 42 deletions.
38 changes: 0 additions & 38 deletions README

This file was deleted.

49 changes: 49 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Ruby PEG Markdown
=================

An extension library around [John MacFarlane's fast implementation][1]
of Markdown in C.

[1]: http://github.com/jgm/peg-markdown/

Synopsis
--------

>> require 'markdown'
>> puts Markdown.new('Hello, world.').to_html
<p>Hello, world.</p>

>> puts Markdown.new('_Hello World!_', :smart, :filter_html).to_html
<p><em>Hello World!</em></p>

>> PEGMarkdown.new('Hello! World!')

Installation / Hacking
----------------------

This library requires a recent version of glib2. All modern GNU userland
systems should be fine.

Install from GEM:

$ sudo gem install rpeg-markdown

Hacking:

$ git clone git://github.com/rtomayko/rpeg-markdown.git
$ cd rpeg-markdown
$ rake test

Patches happily accepted via fork or email.

Changes
-------

* [Version 1.0](http://github.com/rtomayko/rpeg-markdown/tree/v1.0)

COPYING
-------

The peg-markdown sources are licensed under the GPL and the Ruby PEG Markdown
extension sources adopts this license. See the file LICENSE included with this
distribution for more information.
8 changes: 4 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ require 'rake/gempackagetask'
task :default => :test

DLEXT = Config::CONFIG['DLEXT']
VERS = '0.2.0'
VERS = '1.0'

spec =
Gem::Specification.new do |s|
s.name = "rpeg-markdown"
s.version = VERS
s.summary = "Fast and correct Markdown implementation"
s.summary = "Fast Markdown implementation"
s.files = FileList[
'README','LICENSE','Rakefile',
'README.markdown','LICENSE','Rakefile',
'{lib,ext,test}/**.rb','ext/*.{c,h}',
'test/MarkdownTest*/**/*',
'bin/rpeg-markdown'
Expand All @@ -22,7 +22,7 @@ spec =
s.executables << 'rpeg-markdown'
s.require_path = 'lib'
s.has_rdoc = true
s.extra_rdoc_files = ['README', 'LICENSE']
s.extra_rdoc_files = ['LICENSE']
s.test_files = FileList['test/markdown_test.rb']
s.extensions = ['ext/extconf.rb']

Expand Down
2 changes: 2 additions & 0 deletions lib/peg_markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def initialize(text, *extensions)
extensions.each { |e| send("#{e}=", true) }
end

alias to_s text

end

Markdown = PEGMarkdown unless defined? Markdown

0 comments on commit 72d557e

Please sign in to comment.