github-markdown 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/gfm +3 -4
- data/ext/markdown/gh-markdown.c +1 -1
- data/github-markdown.gemspec +1 -1
- metadata +3 -3
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
|
-
|
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))
|
data/ext/markdown/gh-markdown.c
CHANGED
data/github-markdown.gemspec
CHANGED
@@ -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.
|
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:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- GitHub, Inc
|