martile 1.4.4 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +12 -6
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cac99545ba0c3f73fcffcd71c8de008cbc7b0074034c7417d302eff401419e8
|
4
|
+
data.tar.gz: f9726561ce6eb1df19f5e01c473e359a9211bb89149e334a791db8f5d3d89733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1582650be2cf7c13d675fe849b30e428c7e8d3e5ecf33266863f753623ce16f2d8ae1aed61882b25d9ee3986d4bba7790839a25987fb551c1b0ff944e6e6771b
|
7
|
+
data.tar.gz: 134872da40df6a1ab83760e64eb928d9b268ee74bf432c4b78b873fb515a43c2ce37f6bfc098624727c87b0987d15a81ea4c1761dc67ff6c8730ed046278e3a5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -15,6 +15,10 @@ require 'jsmenubuilder'
|
|
15
15
|
require 'htmlcom'
|
16
16
|
|
17
17
|
|
18
|
+
# feature: 01-Sep-2020 Introduced the nomarkdown tag and nomarkdown2 tag.
|
19
|
+
# The nomarkdown2 tag has the advantage of being used
|
20
|
+
# inside tags which other Markdown parse don't read.
|
21
|
+
# The tag will remove itself before completion to_s.
|
18
22
|
# feature: 08-Aug-2020 Implemented #to_Webpage
|
19
23
|
# improvement: 23-Apr-2020 A self-closing sidenav tag is now valid
|
20
24
|
# feature: 01-Mar-2020 A src attribute can now be used in the sidenav tag
|
@@ -115,10 +119,11 @@ class Martile
|
|
115
119
|
#puts 's1 : ' + s1.inspect
|
116
120
|
s40 = apply_filter(s30) {|x| code_block_to_html(x.strip + "\n") }
|
117
121
|
|
122
|
+
s45 = s40.gsub(/<pre/,'{::nomarkdown}\0').gsub(/<\/pre>/,'\0{:/}')
|
118
123
|
#puts 's2 : ' + s2.inspect
|
119
124
|
#s3 = apply_filter(s2, %w(ol ul)) {|x| explicit_list_to_html x }
|
120
125
|
#puts 's3 : ' + s3.inspect
|
121
|
-
s50 = apply_filter(
|
126
|
+
s50 = apply_filter(s45) {|x| ordered_list_to_html x }
|
122
127
|
#puts 's4 : ' + s4.inspect
|
123
128
|
|
124
129
|
s60 = apply_filter(s50) {|x| unordered_list_to_html x }
|
@@ -160,10 +165,10 @@ class Martile
|
|
160
165
|
s220 = apply_filter(s210) {|x| svgtag x }
|
161
166
|
s230 = apply_filter(s220) {|x| embedtag x }
|
162
167
|
s240 = apply_filter(s230) {|x| script_out x }
|
168
|
+
s245 = s240.gsub(/\{::nomarkdown2\}/,'').gsub(/\{:2\/\}/,'')
|
169
|
+
@to_s = s245.to_s
|
163
170
|
|
164
|
-
|
165
|
-
|
166
|
-
s250 = apply_filter(s240) {|x| nomarkdown x }
|
171
|
+
s250 = apply_filter(s245) {|x| nomarkdown x }
|
167
172
|
s252 = sidenav(s250)
|
168
173
|
s253 = bang_xml(s252)
|
169
174
|
puts ('s235 after bang_xml: ' + s253.inspect).debug if @debug
|
@@ -502,15 +507,16 @@ class Martile
|
|
502
507
|
|
503
508
|
@filter = []
|
504
509
|
|
505
|
-
a = s.split(/(
|
510
|
+
a = s.split(/(?=\{::nomarkdown2?\})/).map.with_index do |row, i|
|
506
511
|
|
507
|
-
row.sub(
|
512
|
+
row.sub(/\{::nomarkdown2?\}.*{:2?\/}/m) do |pattern|
|
508
513
|
placeholder = '!' + Time.now.to_i.to_s + i.to_s
|
509
514
|
@filter << [placeholder, pattern]
|
510
515
|
placeholder
|
511
516
|
end
|
512
517
|
|
513
518
|
end
|
519
|
+
|
514
520
|
a.join
|
515
521
|
|
516
522
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: martile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
g0+rPDPUCWKVNHo7BG5zGRDcLsJO0QeIILy/AQaSAE3lQiHmC47nhsiBK0qNehWa
|
36
36
|
47XiKvz0ZVCGgrz4GEb723WC
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2020-
|
38
|
+
date: 2020-09-01 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: yatoc
|
metadata.gz.sig
CHANGED
Binary file
|