card-mod-markdown 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/set/type/markdown.rb +15 -0
  3. metadata +76 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '09b452ef0e7fd610a1c850138e93abc75df2a44bdb546b6ccef97cd9d5983fa1'
4
+ data.tar.gz: d097df3fe9c5d52bf87e607308cce5657a5aad68bbca310505d1aa33f264581c
5
+ SHA512:
6
+ metadata.gz: 66060f2bbd804bd0db50b99e24ecb392b74bc873df564062087765d92cdd8d28eb5b4aaccac1d83948a90046342328c80b1ba339b1d8786febc26535d8996ba3
7
+ data.tar.gz: fb3e0559b377315295fa6cf43ea590a1f60f933c4c0c66841c04c0f631ba695948bd25b33ee3476aec4fe33e0c5af1296f56ee3a35e9f9a9dd532facbf44d640
@@ -0,0 +1,15 @@
1
+ require 'kramdown'
2
+
3
+ format :html do
4
+ view :core do
5
+ Kramdown::Document.new(card.content).to_html
6
+ end
7
+
8
+ def editor
9
+ :ace_editor
10
+ end
11
+
12
+ def ace_mode
13
+ :markdown
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: card-mod-markdown
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.2'
5
+ platform: ruby
6
+ authors:
7
+ - Ethan McCutchen
8
+ - Philipp Kühl
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2018-12-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: card
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: kramdown
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ description: use markdown in decko card content
43
+ email:
44
+ - info@decko.org
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - set/type/markdown.rb
50
+ homepage: http://decko.org
51
+ licenses:
52
+ - GPL-2.0
53
+ - GPL-3.0
54
+ metadata:
55
+ card-mod: markdown
56
+ post_install_message:
57
+ rdoc_options: []
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 2.3.0
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubyforge_project:
72
+ rubygems_version: 2.7.6
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: markdown support for decko
76
+ test_files: []