markita 6.0.250327 → 6.0.251015

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ed48aca2238e0b8ac390519ddc7d4c0e8e5e6f798b87a7654da9454f5f92cd3
4
- data.tar.gz: bfec77d804b3e803c282e4581c6ac7008a716ad0c2d91c2e9dca170b9ecb987a
3
+ metadata.gz: 21a67b87c8ca2df79de3be5215aed19ab62ca227d98605929b64d45a14e1ff98
4
+ data.tar.gz: 86d8fa6166dbc759f1e456799123baa492deaacaab3c7d248526785598252d0c
5
5
  SHA512:
6
- metadata.gz: 4feb3c5ba26177dc86f27ab90599c120a3d0631f24d5919d28efacb39edd7bbdb5d6a76d9eb28ee852ec0b0bfdfc41ea3097b82f1bdc29d533686f95756bb13f
7
- data.tar.gz: b8dfe46d0853061fe8d7d8a666e1c102b249a12cd3ad26558b05ebe5893d899b03add66fe8d9da41fd984e27e7d158cb0b69d1967e7fe365f703c2e2ba74ae20
6
+ metadata.gz: 998cc045c833cb56073639f7bf40f61a1234338453d12f43f0c5c853473910cf4d9d04a74869df6f7150e2237464a85255506f1fa4e9152e60a048ee7ac64593
7
+ data.tar.gz: 1101459bb6b8ac05fb3c9dd7c45c5c3102e568f9d73e5b100daf95dd54c69eba7c4d364667053903184cf9348ab2796afc3290e33f06ef58c6890efecede33e9
data/CREDITS.md ADDED
@@ -0,0 +1,20 @@
1
+ # Credits
2
+
3
+ We want to credit where credit is due.
4
+ This project owes thanks to the authors of this repository (see their commits),
5
+ the third-party libraries we rely on (check the dependencies),
6
+ and the diffuse pool of ideas and inspirations that shaped it.
7
+
8
+ We welcome contributions to this list!
9
+ If you feel someone or something is missing,
10
+ please submit a pull request with the suggested addition.
11
+
12
+ + [VimWiki](https://github.com/vimwiki/vimwiki): VimWiki is a personal wiki for Vim
13
+ + [GitHub Markdown](https://docs.github.com/en/get-started/writing-on-github): Main specs target
14
+
15
+ And then many alternate specs for Markdown:
16
+
17
+ * [adam-p: Markdown-Cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)
18
+ * [lifeparticle: Markdown-Cheatsheed](https://github.com/lifeparticle/Markdown-Cheatsheet)
19
+ * [CommonMark Spec](https://spec.commonmark.org/)
20
+ * [CommonMark Cheat Sheet](https://commonmark.org/help/)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Markita
2
2
 
3
- * [VERSION 6.0.250327](https://github.com/carlosjhr64/markita/releases)
3
+ * [VERSION 6.0.251015](https://github.com/carlosjhr64/markita/releases)
4
4
  * [github](https://www.github.com/carlosjhr64/markita)
5
5
  * [rubygems](https://rubygems.org/gems/markita)
6
6
 
@@ -14,6 +14,8 @@ With many extra non-standard features.
14
14
  ```console
15
15
  $ gem install markita
16
16
  ```
17
+ * Required Ruby version: `>= 3.4`
18
+
17
19
  ## HELP
18
20
  ```console
19
21
  $ markita --help
@@ -331,3 +333,5 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
331
333
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
332
334
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
333
335
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
336
+
337
+ ## [CREDITS](CREDITS.md)
@@ -7,7 +7,7 @@ module Markita
7
7
  class Markdown
8
8
  # Module to isolate from Markdown
9
9
  module Attributes
10
- RGX = /^\{:( [^\{\}]+)\}/
10
+ RGX = /^\{:( [^{}]+)\}/
11
11
  end
12
12
 
13
13
  @@parsers << :attributes
@@ -20,6 +20,7 @@ module Markita
20
20
  # category: method
21
21
  # :reek:DuplicateMethodCall :reek:TooManyStatements
22
22
  # rubocop:disable Metrics/MethodLength
23
+ # rubocop:disable Lint/UselessAssignment
23
24
  def blockquote
24
25
  return false unless (level, quote = Blockquote.level_quote(@line))
25
26
 
@@ -27,6 +28,7 @@ module Markita
27
28
  current = level
28
29
  while current.eql?(level)
29
30
  @html << "#{inline(quote)}\n"
31
+ # `quote` is being used... Code is just gnarly.
30
32
  current, quote = Blockquote.level_quote(line_gets)
31
33
  next unless current&.>(level)
32
34
 
@@ -36,6 +38,7 @@ module Markita
36
38
  @html << "</blockquote>\n"
37
39
  true
38
40
  end
41
+ # rubocop:enable Lint/UselessAssignment
39
42
  # rubocop:enable Metrics/MethodLength
40
43
  end
41
44
  end
@@ -7,7 +7,7 @@ module Markita
7
7
  class Markdown
8
8
  # Module to isolate from Markdown
9
9
  module Code
10
- RGX = /^[`]{3}\s*(\w+)?$/
10
+ RGX = /^`{3}\s*(\w+)?$/
11
11
 
12
12
  def self.code(file, lang, code = String.new)
13
13
  # Note that we can ignore the final shifted
@@ -7,7 +7,7 @@ module Markita
7
7
  class Markdown
8
8
  # Module to isolate from Markdown
9
9
  module Definitions
10
- RGX = /^[+] (\S.+)$/
10
+ RGX = /^[+]\s+(\S.+)$/
11
11
  def self.phrase(line)
12
12
  mdt = RGX.match(line)
13
13
  mdt[1] if mdt
data/lib/markita.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # :reek:ClassVariable
5
5
  # rubocop:disable Style/ClassVars
6
6
  module Markita
7
- VERSION = '6.0.250327'
7
+ VERSION = '6.0.251015'
8
8
 
9
9
  @@no = []
10
10
  def self.no = @@no
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markita
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.250327
4
+ version: 6.0.251015
5
5
  platform: ruby
6
6
  authors:
7
7
  - CarlosJHR64
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-28 00:00:00.000000000 Z
10
+ date: 2025-10-15 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: colorize
@@ -55,40 +55,40 @@ dependencies:
55
55
  requirements:
56
56
  - - "~>"
57
57
  - !ruby/object:Gem::Version
58
- version: '4.5'
58
+ version: '4.6'
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 4.5.1
61
+ version: 4.6.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '4.5'
68
+ version: '4.6'
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: 4.5.1
71
+ version: 4.6.0
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: sinatra
74
74
  requirement: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - "~>"
77
77
  - !ruby/object:Gem::Version
78
- version: '4.1'
78
+ version: '4.2'
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: 4.1.1
81
+ version: 4.2.1
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '4.1'
88
+ version: '4.2'
89
89
  - - ">="
90
90
  - !ruby/object:Gem::Version
91
- version: 4.1.1
91
+ version: 4.2.1
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: webrick
94
94
  requirement: !ruby/object:Gem::Requirement
@@ -119,6 +119,7 @@ executables:
119
119
  extensions: []
120
120
  extra_rdoc_files: []
121
121
  files:
122
+ - CREDITS.md
122
123
  - README.md
123
124
  - bin/markita
124
125
  - data/emojis.tsv
@@ -178,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
179
  - !ruby/object:Gem::Version
179
180
  version: '0'
180
181
  requirements: []
181
- rubygems_version: 3.6.6
182
+ rubygems_version: 3.6.9
182
183
  specification_version: 4
183
184
  summary: A Sinatra Markdown server.
184
185
  test_files: []