github-markdown 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/gfm CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  HELP = <<-help
4
- Usage: gfm [--readme] [<file>]
4
+ Usage: gfm [--readme | --plaintext] [<file>]
5
5
  Convert a GitHub-Flavored Markdown file to HTML and write to standard output.
6
6
  With no <file> or when <file> is '-', read Markdown source text from standard input.
7
7
  With `--readme`, the files are parsed like README.md files in GitHub.com. By default,
@@ -19,8 +19,7 @@ $:.unshift File.expand_path('lib', root)
19
19
  require 'github/markdown'
20
20
 
21
21
  mode = :gfm
22
- if ARGV.delete('--readme')
23
- mode = :markdown
24
- end
22
+ mode = :markdown if ARGV.delete('--readme')
23
+ mode = :plaintext if ARGV.delete('--plaintext')
25
24
 
26
25
  STDOUT.write(GitHub::Markdown.to_html(ARGF.read, mode))
@@ -202,7 +202,7 @@ static void rb_ghmd__init_plaintext(void)
202
202
  struct sd_callbacks callbacks;
203
203
 
204
204
  sdtext_renderer(&callbacks);
205
- g_GFM.md = sd_markdown_new(
205
+ g_plaintext.md = sd_markdown_new(
206
206
  GITHUB_MD_FLAGS,
207
207
  GITHUB_MD_NESTING,
208
208
  &callbacks, NULL
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'github-markdown'
4
- s.version = '0.4.0'
4
+ s.version = '0.4.1'
5
5
  s.summary = 'The Markdown parser for GitHub.com'
6
6
  s.description = 'Self-contained Markdown parser for GitHub, with all our custom extensions'
7
7
  s.date = '2012-05-03'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-markdown
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - GitHub, Inc