card-mod-markdown 0.13.2 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -0
  3. data/set/type/markdown.rb +4 -0
  4. metadata +20 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9470721e084d2098fabe61ffcde71c7da7089dabc4ab477d0a5673986cd43d6a
4
- data.tar.gz: 4881ee3083653bd84457652fd3c49c07ebc46405b34827ce5e815499fc8293b7
3
+ metadata.gz: 29b4b4b287977f962f6c47f0297eb17de045d7f8edaeb156346c08228b071d85
4
+ data.tar.gz: 4b6cc472855b61acdebf771eaf4dcfec59313b5a996307a4a2675f8e59367d48
5
5
  SHA512:
6
- metadata.gz: 557796dc05b3a26510924b3c2525fddc99201f6e6aee99e6d39c1b856b239a6a0d30103f0acdf4277c0d7cb055b7ffa4b4d18c768e7e1951b8c0f0b8fc000048
7
- data.tar.gz: 4c0fb8248d928ffaef0fe8b2933a1d80ad09d1dbadfb01e36582d842c0bf996dbc85740b208f19067186e2d11776cd6bc48bab7533c4c3c8e73b41538570cb98
6
+ metadata.gz: da54bb3f4f9611bd785ca4c69f8b483cc119df9f8ba7225d453749f1dd1aee3469ac428ba3c69bcf28a9dc5a3dff7b3d5f63f331bb77f9c4735eceed03a43c51
7
+ data.tar.gz: f3dff65793d242837ae03c346d084e95ef3f276f810ff75e5b64ef3a49681f73047d6da20b4d698b2b7bec843712fd9fad1ebc4d142f6652105f7ddb1707900d
data/README.md ADDED
@@ -0,0 +1,22 @@
1
+ <!--
2
+ # @title README - mod: markdown
3
+ -->
4
+ # Markdown mod
5
+
6
+ Markdown is a popular plain-text syntax that can easily be converted into HTML.
7
+ Sort of an HTML shorthand.
8
+
9
+ This mod adds a Markdown cardtype, with which card editors can save content as markdown
10
+ and have that content rendered as HTML
11
+
12
+ ## Sets modified
13
+
14
+ | type | content |
15
+ |:----:|:-------:|
16
+ | Markdown | plain text in Markdown syntax|
17
+
18
+ ## Nests
19
+
20
+ Card nest syntax can be used within Markdown. Everything inside double curly brackets
21
+ (`{{ }}`) is ignored by the markdown processor, so any nest syntax that conflicts with
22
+ markdown syntax (like the `*` in `{{*title}}`) doesn't have be escaped.
data/set/type/markdown.rb CHANGED
@@ -7,6 +7,10 @@ format :html do
7
7
  end
8
8
  end
9
9
 
10
+ def escape_literal literal
11
+ literal
12
+ end
13
+
10
14
  def input_type
11
15
  :ace_editor
12
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-08-06 00:00:00.000000000 Z
13
+ date: 2022-01-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,14 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.103.2
21
+ version: 1.104.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.103.2
28
+ version: 1.104.1
29
+ - !ruby/object:Gem::Dependency
30
+ name: card-mod-ace_editor
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - '='
34
+ - !ruby/object:Gem::Version
35
+ version: 0.14.1
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - '='
41
+ - !ruby/object:Gem::Version
42
+ version: 0.14.1
29
43
  - !ruby/object:Gem::Dependency
30
44
  name: kramdown
31
45
  requirement: !ruby/object:Gem::Requirement
@@ -47,6 +61,7 @@ executables: []
47
61
  extensions: []
48
62
  extra_rdoc_files: []
49
63
  files:
64
+ - README.md
50
65
  - db/migrate_cards/20150116220621_add_markdown_type.rb
51
66
  - set/type/markdown.rb
52
67
  homepage: https://decko.org
@@ -74,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
89
  - !ruby/object:Gem::Version
75
90
  version: '0'
76
91
  requirements: []
77
- rubygems_version: 3.1.6
92
+ rubygems_version: 3.2.15
78
93
  signing_key:
79
94
  specification_version: 4
80
95
  summary: markdown support for decko