Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

gyazz-markup

convert Gyazz.com syntax to HTML.

Installation

% gem install gyazz-markup

Usage

require 'rubygems'
require 'gyazz-markup'
str = File.open("input.txt").read

gm = GyazzMarkup::Markup.new
puts gm.markup str

options

gm = GyazzMarkup::Markup.new(
                             :host => 'http://gyazz.com',
                             :wiki => 'shokai'
                             :indent => 'div',
                             :prefix => '-'
                            )
puts gm.markup str

gyazz-markup command

% cat samples/sample.txt
[[http://gyazo.com/f7b9ad3035e91e7c9d91aaa082ddb7f2.png]] こうすると、画像が入れられます
[[[強く表示]]]
新しいページへのリンクも作れる → [[ごはん]]
URLをリンク [[https://github.com/shokai/gyazz-markup]]
タイトル付きリンク [[http://shokai.org 私のホームページ]]
画像つきURLリンク [[https://shokai.org http://gyazo.com/b2c551db20c7ef6ad598b89e66be6517.png]]
wikilink [[shokai::かずすけ]]
インデント
 aaa
  aaa1
   aaa2
 bbb
  bbb2
% gyazz-markup --help
% gyazz-markup -i samples/sample.txt

Test

% gem install bundler
% bundle install
% rake test

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

convert Gyazz.com syntax to HTML.

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.