mdocs_kramdown 0.1.1 → 0.1.2.70320
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mdocs_kramdown/parser/fenced_admonitions.rb +8 -10
- data/lib/mdocs_kramdown/parser.rb +1 -1
- data/lib/mdocs_kramdown/version.rb +1 -1
- metadata +45 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 261462c6de58fd30d0be141e1b079323447a1cbe37cb5a727bf9212cf4067ac1
|
4
|
+
data.tar.gz: 0a6d47d0ca489b120e664c405b668cbe73045ffc690aa272e2a1c696dd4e7471
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f89f5bf9e9f1c8fed5e2fa5a7d7044dd921d8e530cb8fc95275e23d23121eb7c570ed547010ebde6098849ca393269b09adafde49a3129d6ae2642052cd169e2
|
7
|
+
data.tar.gz: 96bcece466a4423a3b4e9f304377d582129f6c305268d7d8b91f3e7bdcb25cd612dbe49ad02b3e3cfc520321876fec2d7bddeb40879ba3dd8381ca4b0a2efa64
|
@@ -4,19 +4,17 @@ module MdocsKramdown
|
|
4
4
|
FENCED_ADMONITIONS_START = /^\s{0,}!{3}/x.freeze
|
5
5
|
|
6
6
|
FENCED_ADMONITIONS_MATCH = %r{
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
\s* # any amount of trailling whitespace
|
13
|
-
\n # heading line completed
|
14
|
-
(?<content>(\s{4}.*\n)+) # content must starts with 4 spaces
|
7
|
+
\s{0,}*(?<delimeter>!{3}) # line must start with [0..] spacing and !!!
|
8
|
+
\s?
|
9
|
+
(?<type>[^\s]+)? # type of admoniation any except space. Ex: info,class1
|
10
|
+
\s?
|
11
|
+
("(?<title>[^\n]+)")? # title of the admoniation
|
15
12
|
\n
|
16
|
-
|
13
|
+
(?<content>(\s{4}.+)+) # content must starts with 4 spaces
|
14
|
+
\n}x.freeze
|
17
15
|
|
18
16
|
def self.included(klass)
|
19
|
-
klass.define_parser(:fenced_admonitions,
|
17
|
+
klass.define_parser(:fenced_admonitions, FENCED_ADMONITIONS_START)
|
20
18
|
end
|
21
19
|
|
22
20
|
def parse_fenced_admonitions
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mdocs_kramdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2.70320
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samoilenko Yuri
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab_kramdown
|
@@ -108,6 +108,48 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0.4'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: simplecov-console
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: nokogiri
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: htmlbeautifier
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.3.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.3.0
|
111
153
|
description: Mdocs Flavored Markdown extensions on top of Kramdown markup. Tries to
|
112
154
|
be as close as possible to existing extensions.
|
113
155
|
email:
|
@@ -147,8 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
189
|
- !ruby/object:Gem::Version
|
148
190
|
version: '0'
|
149
191
|
requirements: []
|
150
|
-
|
151
|
-
rubygems_version: 2.7.10
|
192
|
+
rubygems_version: 3.0.3
|
152
193
|
signing_key:
|
153
194
|
specification_version: 4
|
154
195
|
summary: Mdocs Flavored Kramdown
|