markita 6.0.250327 → 6.0.251026

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: 11db8c0e395b47ad07e8df75d4bd195dd61edb8a31a719f2226aea3ea1bcc807
4
+ data.tar.gz: c20ee63dd911a49665e44abc0ec267931ddd651b36370b3e9522837b084b7aa3
5
5
  SHA512:
6
- metadata.gz: 4feb3c5ba26177dc86f27ab90599c120a3d0631f24d5919d28efacb39edd7bbdb5d6a76d9eb28ee852ec0b0bfdfc41ea3097b82f1bdc29d533686f95756bb13f
7
- data.tar.gz: b8dfe46d0853061fe8d7d8a666e1c102b249a12cd3ad26558b05ebe5893d899b03add66fe8d9da41fd984e27e7d158cb0b69d1967e7fe365f703c2e2ba74ae20
6
+ metadata.gz: aa12e6ada1cfc147ca8f33f7b9d59d42a6bd5ad15dc3412c8600370f271637532ceadea8cd63c1bb0047156f46fc72d2b27bc6f95a090da58ae4274bec8592d1
7
+ data.tar.gz: ff18ea4be13baefcbc69383d0e734464e0ef9a6dcbd9c5aad6fb53ed23bf339fc0648c6b9879d760a0fa5c86616a20bd27c85e2c9977aa9c38156a23a09ff6e6
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.251026](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
@@ -13,7 +13,8 @@ module Markita
13
13
  @@parsers << :html_markup
14
14
 
15
15
  def html_markup
16
- return false unless Markup::RGX.match(@line)
16
+ return false unless Markup::RGX.match?(@line)
17
+ return false if @line.start_with?('<script') # handled separately
17
18
 
18
19
  @html << @line
19
20
  line_gets
@@ -14,7 +14,7 @@ module Markita
14
14
 
15
15
  # :reek:TooManyStatements :reek:DuplicateMethodCall
16
16
  def script
17
- return false unless Script::RGX.match(@line)
17
+ return false unless Script::RGX.match?(@line)
18
18
 
19
19
  @html << @line
20
20
  while line_gets
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.251026'
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.251026
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-26 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.1
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.1
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.7.2
182
183
  specification_version: 4
183
184
  summary: A Sinatra Markdown server.
184
185
  test_files: []