markup-preview-command 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/README.md +54 -0
- data/Rakefile +1 -0
- data/bin/markup-preview +32 -0
- data/etc/markup-preview.el +86 -0
- data/lib/markup-preview-command.rb +81 -0
- data/lib/markup-preview-command/css/gollum.css +666 -0
- data/lib/markup-preview-command/css/template.css +335 -0
- data/lib/markup-preview-command/util/util.rb +15 -0
- data/lib/markup-preview-command/version.rb +7 -0
- data/lib/markup-preview-command/view/template.erb +24 -0
- data/licenses/gollum/LICENSE.txt +21 -0
- data/licenses/licenses.txt +6 -0
- data/licenses/markup-preview-command/LICENSE.txt +21 -0
- data/markup-preview-command.gemspec +31 -0
- data/test/test.md +60 -0
- data/test/test.org +64 -0
- data/test/test.rst +82 -0
- data/test/test.textile +52 -0
- metadata +167 -0
data/test/test.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
Title
|
2
|
+
======================
|
3
|
+
|
4
|
+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
5
|
+
|
6
|
+
|
7
|
+
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
8
|
+
|
9
|
+
[link a](http://example.com/) dddddd
|
10
|
+
|
11
|
+
Chapter 1
|
12
|
+
---------
|
13
|
+
### aaaaaaaaa ###
|
14
|
+
bbbbb **ccccc**
|
15
|
+
|
16
|
+
|
17
|
+
### dddd ###
|
18
|
+
function f () {
|
19
|
+
alert(10);
|
20
|
+
}
|
21
|
+
|
22
|
+
Chapter 2
|
23
|
+
----------------
|
24
|
+
list, blank line, list style.
|
25
|
+
|
26
|
+
def MyFunction(param1, param2, ...)
|
27
|
+
|
28
|
+
+ `param1` :
|
29
|
+
aaaaaaaaaaaaaaaaaaaaa
|
30
|
+
|
31
|
+
+ `param2` :
|
32
|
+
bbbbbbbbbbbbbbbbbbbbb
|
33
|
+
|
34
|
+
Chapter 3
|
35
|
+
--------
|
36
|
+
### link, nested link
|
37
|
+
1. [link1](http://example.com/ "link title a")
|
38
|
+
* ![image1](http://github.com/unicorn.png "image title b")
|
39
|
+
2. [link2][link]
|
40
|
+
- [![image2][image]](https://github.com/)
|
41
|
+
|
42
|
+
[link]: http://example.com/ "index type link"
|
43
|
+
[image]: http://github.com/github.png "index type image"
|
44
|
+
|
45
|
+
### quote, nested quote
|
46
|
+
> aaaaaaaaa
|
47
|
+
>
|
48
|
+
> > bbbbbbbbbbbbbbbbbb
|
49
|
+
> > cccccccccccccccccc
|
50
|
+
|
51
|
+
License
|
52
|
+
----------
|
53
|
+
Copyright © 2012 aaaaaaaaaa
|
54
|
+
Licensed under the [Apache License, Version 2.0][Apache]
|
55
|
+
Distributed under the [MIT License][mit].
|
56
|
+
Dual licensed under the [MIT license][MIT] and [GPL license][GPL].
|
57
|
+
|
58
|
+
[Apache]: http://www.apache.org/licenses/LICENSE-2.0
|
59
|
+
[MIT]: http://www.opensource.org/licenses/mit-license.php
|
60
|
+
[GPL]: http://www.gnu.org/licenses/gpl.html
|
data/test/test.org
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
* Title
|
2
|
+
|
3
|
+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
4
|
+
|
5
|
+
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
6
|
+
|
7
|
+
[[http://example.com/][link a]] dddddd
|
8
|
+
|
9
|
+
** Chapter 1
|
10
|
+
|
11
|
+
*** aaaaaaaaa
|
12
|
+
|
13
|
+
bbbbb *ccccc*
|
14
|
+
|
15
|
+
*** dddd
|
16
|
+
|
17
|
+
#+BEGIN_EXAMPLE
|
18
|
+
function f () {
|
19
|
+
alert(10);
|
20
|
+
}
|
21
|
+
#+END_EXAMPLE
|
22
|
+
|
23
|
+
** Chapter 2
|
24
|
+
|
25
|
+
list, blank line, list style.
|
26
|
+
|
27
|
+
#+BEGIN_EXAMPLE
|
28
|
+
def MyFunction(param1, param2, ...)
|
29
|
+
#+END_EXAMPLE
|
30
|
+
|
31
|
+
- =param1= : aaaaaaaaaaaaaaaaaaaaa
|
32
|
+
|
33
|
+
- =param2= : bbbbbbbbbbbbbbbbbbbbb
|
34
|
+
|
35
|
+
** Chapter 3
|
36
|
+
|
37
|
+
*** link, nested link
|
38
|
+
|
39
|
+
1. [[http://example.com/][link1]]
|
40
|
+
|
41
|
+
- [[http://github.com/unicorn.png]]
|
42
|
+
|
43
|
+
2. [[http://example.com/][link2]]
|
44
|
+
|
45
|
+
- [[https://github.com/][[[http://github.com/github.png]]]]
|
46
|
+
|
47
|
+
*** quote, nested quote
|
48
|
+
|
49
|
+
#+BEGIN_SRC
|
50
|
+
aaaaaaaaa
|
51
|
+
|
52
|
+
> bbbbbbbbbbbbbbbbbb
|
53
|
+
> cccccccccccccccccc
|
54
|
+
#+END_SRC
|
55
|
+
|
56
|
+
** License
|
57
|
+
|
58
|
+
Copyright © 2012 aaaaaaaaaa Licensed under the
|
59
|
+
[[http://www.apache.org/licenses/LICENSE-2.0][Apache License, Version
|
60
|
+
2.0]] Distributed under the
|
61
|
+
[[http://www.opensource.org/licenses/mit-license.php][MIT License]].
|
62
|
+
Dual licensed under the
|
63
|
+
[[http://www.opensource.org/licenses/mit-license.php][MIT license]] and
|
64
|
+
[[http://www.gnu.org/licenses/gpl.html][GPL license]].
|
data/test/test.rst
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
Title
|
2
|
+
=====
|
3
|
+
|
4
|
+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
5
|
+
|
6
|
+
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
7
|
+
|
8
|
+
`link a`_ dddddd
|
9
|
+
|
10
|
+
Chapter 1
|
11
|
+
---------
|
12
|
+
|
13
|
+
aaaaaaaaa
|
14
|
+
~~~~~~~~~
|
15
|
+
|
16
|
+
bbbbb **ccccc**
|
17
|
+
|
18
|
+
dddd
|
19
|
+
~~~~
|
20
|
+
|
21
|
+
::
|
22
|
+
|
23
|
+
function f () {
|
24
|
+
alert(10);
|
25
|
+
}
|
26
|
+
|
27
|
+
Chapter 2
|
28
|
+
---------
|
29
|
+
|
30
|
+
list, blank line, list style.
|
31
|
+
|
32
|
+
::
|
33
|
+
|
34
|
+
def MyFunction(param1, param2, ...)
|
35
|
+
|
36
|
+
- ``param1`` : aaaaaaaaaaaaaaaaaaaaa
|
37
|
+
|
38
|
+
- ``param2`` : bbbbbbbbbbbbbbbbbbbbb
|
39
|
+
|
40
|
+
Chapter 3
|
41
|
+
---------
|
42
|
+
|
43
|
+
link, nested link
|
44
|
+
~~~~~~~~~~~~~~~~~
|
45
|
+
|
46
|
+
1. `link1`_
|
47
|
+
|
48
|
+
- |image1|
|
49
|
+
|
50
|
+
2. `link2`_
|
51
|
+
|
52
|
+
- `|image2|`_
|
53
|
+
|
54
|
+
quote, nested quote
|
55
|
+
~~~~~~~~~~~~~~~~~~~
|
56
|
+
|
57
|
+
::
|
58
|
+
|
59
|
+
aaaaaaaaa
|
60
|
+
|
61
|
+
> bbbbbbbbbbbbbbbbbb
|
62
|
+
> cccccccccccccccccc
|
63
|
+
|
64
|
+
License
|
65
|
+
-------
|
66
|
+
|
67
|
+
Copyright © 2012 aaaaaaaaaa Licensed under the `Apache License, Version
|
68
|
+
2.0`_ Distributed under the `MIT License`_. Dual licensed under the `MIT
|
69
|
+
license`_ and `GPL license`_.
|
70
|
+
|
71
|
+
.. _link a: http://example.com/
|
72
|
+
.. _link1: http://example.com/
|
73
|
+
.. _link2: http://example.com/
|
74
|
+
.. _|image2|: https://github.com/
|
75
|
+
.. _Apache License, Version
|
76
|
+
2.0: http://www.apache.org/licenses/LICENSE-2.0
|
77
|
+
.. _MIT License: http://www.opensource.org/licenses/mit-license.php
|
78
|
+
.. _MIT license: http://www.opensource.org/licenses/mit-license.php
|
79
|
+
.. _GPL license: http://www.gnu.org/licenses/gpl.html
|
80
|
+
|
81
|
+
.. |image1| image:: http://github.com/unicorn.png
|
82
|
+
.. |image2| image:: http://github.com/github.png
|
data/test/test.textile
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
h1. Title
|
2
|
+
|
3
|
+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
4
|
+
|
5
|
+
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
6
|
+
|
7
|
+
"link a":http://example.com/ dddddd
|
8
|
+
|
9
|
+
h2. Chapter 1
|
10
|
+
|
11
|
+
h3. aaaaaaaaa
|
12
|
+
|
13
|
+
bbbbb *ccccc*
|
14
|
+
|
15
|
+
h3. dddd
|
16
|
+
|
17
|
+
bc. function f () {
|
18
|
+
alert(10);
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
h2. Chapter 2
|
23
|
+
|
24
|
+
list, blank line, list style.
|
25
|
+
|
26
|
+
bc. def MyFunction(param1, param2, ...)
|
27
|
+
|
28
|
+
|
29
|
+
* @param1@ : aaaaaaaaaaaaaaaaaaaaa
|
30
|
+
* @param2@ : bbbbbbbbbbbbbbbbbbbbb
|
31
|
+
|
32
|
+
h2. Chapter 3
|
33
|
+
|
34
|
+
h3. link, nested link
|
35
|
+
|
36
|
+
# "link1":http://example.com/
|
37
|
+
#* !http://github.com/unicorn.png(image title b)!
|
38
|
+
# "link2":http://example.com/
|
39
|
+
#* "!http://github.com/github.png(index type image)!":https://github.com/
|
40
|
+
|
41
|
+
h3. quote, nested quote
|
42
|
+
|
43
|
+
<pre class="sourceCode literate haskell">
|
44
|
+
aaaaaaaaa
|
45
|
+
|
46
|
+
> bbbbbbbbbbbbbbbbbb
|
47
|
+
> cccccccccccccccccc
|
48
|
+
</pre>
|
49
|
+
|
50
|
+
h2. License
|
51
|
+
|
52
|
+
Copyright © 2012 aaaaaaaaaa Licensed under the "Apache License, Version 2.0":http://www.apache.org/licenses/LICENSE-2.0 Distributed under the "MIT License":http://www.opensource.org/licenses/mit-license.php. Dual licensed under the "MIT license":http://www.opensource.org/licenses/mit-license.php and "GPL license":http://www.gnu.org/licenses/gpl.html.
|
metadata
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: markup-preview-command
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- mori_dev
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-01-08 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: github-markup
|
16
|
+
requirement: &79625690 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.7.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *79625690
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: creole
|
27
|
+
requirement: &79625130 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.3.6
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *79625130
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: redcarpet
|
38
|
+
requirement: &79624890 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - =
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.0.0
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *79624890
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: RedCloth
|
49
|
+
requirement: &79624630 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.2.0
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *79624630
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rdoc
|
60
|
+
requirement: &79624270 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 3.6.0
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *79624270
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: org-ruby
|
71
|
+
requirement: &79623900 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.5.0
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *79623900
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: wikicloth
|
82
|
+
requirement: &79623660 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 0.7.0
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *79623660
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: rake
|
93
|
+
requirement: &79623430 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.9.0
|
99
|
+
type: :runtime
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *79623430
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: slop
|
104
|
+
requirement: &79623180 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 2.4.0
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *79623180
|
113
|
+
description: ! 'Previw your wiki file as local html file. (format: markdown, rest,
|
114
|
+
textile, rdoc and so on.)'
|
115
|
+
email:
|
116
|
+
- mori.dev.asdf@gmail.com
|
117
|
+
executables:
|
118
|
+
- markup-preview
|
119
|
+
extensions: []
|
120
|
+
extra_rdoc_files: []
|
121
|
+
files:
|
122
|
+
- .gitignore
|
123
|
+
- Gemfile
|
124
|
+
- LICENSE
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- bin/markup-preview
|
128
|
+
- etc/markup-preview.el
|
129
|
+
- lib/markup-preview-command.rb
|
130
|
+
- lib/markup-preview-command/css/gollum.css
|
131
|
+
- lib/markup-preview-command/css/template.css
|
132
|
+
- lib/markup-preview-command/util/util.rb
|
133
|
+
- lib/markup-preview-command/version.rb
|
134
|
+
- lib/markup-preview-command/view/template.erb
|
135
|
+
- licenses/gollum/LICENSE.txt
|
136
|
+
- licenses/licenses.txt
|
137
|
+
- licenses/markup-preview-command/LICENSE.txt
|
138
|
+
- markup-preview-command.gemspec
|
139
|
+
- test/test.md
|
140
|
+
- test/test.org
|
141
|
+
- test/test.rst
|
142
|
+
- test/test.textile
|
143
|
+
homepage: https://github.com/wakaran/markup-preview-command
|
144
|
+
licenses: []
|
145
|
+
post_install_message:
|
146
|
+
rdoc_options: []
|
147
|
+
require_paths:
|
148
|
+
- lib
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
151
|
+
requirements:
|
152
|
+
- - ! '>='
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
requirements: []
|
162
|
+
rubyforge_project: markup-preview-command
|
163
|
+
rubygems_version: 1.8.13
|
164
|
+
signing_key:
|
165
|
+
specification_version: 3
|
166
|
+
summary: Previw your wiki file as local html file.
|
167
|
+
test_files: []
|