mdpreview 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,54 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <title>Markdown Preview Editor</title>
6
+ <link rel="stylesheet" href="css/preview.css" />
7
+ <link rel="stylesheet" href="css/style.css" />
8
+ <script type="text/javascript" src="js/jquery.js"></script>
9
+ <script type="text/javascript" src="js/made.js"></script>
10
+ <script type="text/javascript" src="js/ace.js"></script>
11
+ <script type="text/javascript" src="js/mode-markdown.js"></script>
12
+ <script type="text/javascript" src="js/theme-twilight.js"></script>
13
+ <script type="text/javascript" src="js/theme-textmate.js"></script>
14
+ <script type="text/javascript" src="js/Markdown.Converter.js"></script>
15
+ </head>
16
+ <body>
17
+ <div id="bar">
18
+ <h1 id="title">MDPE <span class="desc">An Editor for markdown</span></h1>
19
+ <div id="control">
20
+ <a href="#" class="button" id="import_button">
21
+ <span class="label">Import</span>
22
+ </a>
23
+ <input type="file" id="import_file_button"/>
24
+ <div id="export_button_wrapper">
25
+ <a href="#" class="button" id="export_button">
26
+ <span class="label">Export ▾</span>
27
+ </a>
28
+ <ul class="menu" id="export_menu">
29
+ <li>
30
+ <a class="menuitem" href="#" id="export_source_button">Export Source</a>
31
+ </li>
32
+ <li>
33
+ <a class="menuitem" href="#" id="export_html_button">Export HTML</a>
34
+ </li>
35
+ <li>
36
+ <a class="menuitem" href="#" id="export_full_html_button">Export HTML(Full)</a>
37
+ </li>
38
+ </ul>
39
+ </div>
40
+ </div>
41
+ <div id="color_scheme"><label>Color Scheme</label>
42
+ <a href="dark" id="color_scheme_dark" class="selected"><span/></a>
43
+ <a href="light" id="color_scheme_light"><span/></a>
44
+ </div>
45
+ </div>
46
+ <div id="container">
47
+ <div class="pane" id="input" placeholder="type some markdown code or drag & drop a .md file here"></div>
48
+ <div id="preview_pane" class="pane">
49
+ <div id="preview"></div>
50
+ </div>
51
+ </div>
52
+ </body>
53
+ </html>
54
+
data/vendor/sample.md ADDED
@@ -0,0 +1,52 @@
1
+ # This is an H1
2
+ ## This is an H2
3
+ ### This is an H3
4
+ #### This is an H4
5
+ ##### This is an H5
6
+ ###### This is an H6
7
+
8
+ > This is the first level of quoting.
9
+ >
10
+ > > This is nested blockquote.
11
+ >
12
+ > Back to the first level.
13
+
14
+ ### Unordered List
15
+ - Red
16
+ - Green
17
+ - Blue
18
+
19
+ ### Ordered List
20
+ 1. Red
21
+ 2. Green
22
+ 3. Blue
23
+ * Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
24
+ Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
25
+ viverra nec, fringilla in, laoreet vitae, risus.
26
+ * Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
27
+ Suspendisse id sem consectetuer libero luctus adipiscing.
28
+
29
+ A sample text here. And some code below:
30
+
31
+ import sys
32
+ import gobject
33
+ def init():
34
+ for i in range(0, 10):
35
+ print 'task %d, done' % i
36
+
37
+ if __name__ == '__main__':
38
+ init()
39
+
40
+ Inline code `printf()` here.
41
+
42
+ This is a link to [Google](http://google.com).
43
+
44
+ *single asterisks*
45
+
46
+ **double asterisks**
47
+
48
+ Create fake iPhone text conversations. Enter a conversation: Example: Dad: Your mom and I are going to divorce next month. Son: Why ? Call me please.
49
+
50
+ Create fake iPhone text conversations. Enter a conversation: Example: Dad: Your mom and I are going to divorce next month. Son: Why ? Call me please.
51
+
52
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdpreview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -19,16 +19,29 @@ executables:
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
- - .gitignore
23
- - Gemfile
24
- - LICENSE.txt
25
- - README.md
26
- - Rakefile
27
- - bin/mdpreview
28
- - lib/mdpreview.rb
29
22
  - lib/mdpreview/translator.rb
30
23
  - lib/mdpreview/version.rb
31
- - mdpreview.gemspec
24
+ - lib/mdpreview.rb
25
+ - bin/mdpreview
26
+ - vendor/ed/_locales/en/messages.json
27
+ - vendor/ed/css/preview.css
28
+ - vendor/ed/css/style.css
29
+ - vendor/ed/image/ic128_made.png
30
+ - vendor/ed/image/ic128_made_alt.png
31
+ - vendor/ed/image/ic16_made.png
32
+ - vendor/ed/image/ic24_made.png
33
+ - vendor/ed/js/ace.js
34
+ - vendor/ed/js/jquery.js
35
+ - vendor/ed/js/made.js
36
+ - vendor/ed/js/Markdown.Converter.js
37
+ - vendor/ed/js/mode-markdown.js
38
+ - vendor/ed/js/theme-textmate.js
39
+ - vendor/ed/js/theme-twilight.js
40
+ - vendor/ed/manifest.json
41
+ - vendor/ed/mdp.html
42
+ - vendor/LGPL-license.txt
43
+ - vendor/MIT-license.txt
44
+ - vendor/sample.md
32
45
  homepage: ''
33
46
  licenses: []
34
47
  post_install_message:
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'http://ruby.taobao.org'
2
-
3
- # Specify your gem's dependencies in mdpreview.gemspec
4
- gemspec
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2013 shiren1118
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md DELETED
@@ -1,29 +0,0 @@
1
- # Mdpreview
2
-
3
- TODO: Write a gem description
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'mdpreview'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install mdpreview
18
-
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Contributing
24
-
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
data/Rakefile DELETED
@@ -1,58 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
3
- namespace :mdp do
4
- desc 'setup devise example migrating db and creating a default user'
5
- task :clean do
6
- ['d.txt'].each{|x|
7
- File.delete(x);
8
- }
9
- end
10
-
11
- desc 'setup devise example migrating db and creating a default user'
12
- task :setup => ['db:drop', 'db:create', 'db:migrate', 'environment'] do
13
- user = User.create! do |u|
14
- u.email = 'user@test.com'
15
- u.password = 'user123'
16
- u.password_confirmation = 'user123'
17
- u.ensure_authentication_token!
18
- end
19
- user.confirm!
20
- puts 'New user created!'
21
- puts 'Email : ' << user.email
22
- puts 'Password: ' << user.password
23
-
24
- admin = Admin.create! do |u|
25
- u.email = 'admin@test.com'
26
- u.password = 'admin123'
27
- u.password_confirmation = 'admin123'
28
- end
29
- #admin.confirm!
30
- puts 'New admin created!'
31
- puts 'Email : ' << admin.email
32
- puts 'Password: ' << admin.password
33
- end
34
-
35
- # desc "Test lib source"
36
- # Rake::TestTask.new(:lib) do |t|
37
- # t.libs << "test"
38
- # t.pattern = 'test/lib/**/*_test.rb'
39
- # t.verbose = true
40
- # end
41
- end
42
-
43
-
44
- # namespace :test do
45
- # desc "Test lib source"
46
- # Rake::TestTask.new(:lib) do |t|
47
- # t.libs << "test"
48
- # t.pattern = 'test/lib/**/*_test.rb'
49
- # t.verbose = true
50
- # end
51
- #
52
- # end
53
-
54
- # lib_task = Rake::Task["test:lib"]
55
- # test_task = Rake::Task[:test]
56
- # test_task.enhance { lib_task.invoke }
57
-
58
-
data/mdpreview.gemspec DELETED
@@ -1,19 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'mdpreview/version'
5
-
6
- Gem::Specification.new do |gem|
7
- gem.name = "mdpreview"
8
- gem.version = Mdpreview::VERSION
9
- gem.authors = ["shiren1118"]
10
- gem.email = ["shiren1118@126.com"]
11
- gem.description = %q{dsdfn}
12
- gem.summary = %q{dsfsdf}
13
- gem.homepage = ""
14
-
15
- gem.files = `git ls-files`.split($/)
16
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
- gem.require_paths = ["lib"]
19
- end