0.0
No commit activity in last 3 years
No release in over 3 years
convert Gyazz.com syntax to HTML.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

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