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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c7e7a5129c34656f11828831a861f08e63fcc47767219d8657a56b484cdf7f0
4
- data.tar.gz: 79988d64a4ae83816cd20c182c75b73549217cb5ddc060771483474faae04907
3
+ metadata.gz: 8cac99545ba0c3f73fcffcd71c8de008cbc7b0074034c7417d302eff401419e8
4
+ data.tar.gz: f9726561ce6eb1df19f5e01c473e359a9211bb89149e334a791db8f5d3d89733
5
5
  SHA512:
6
- metadata.gz: 02cbcdc557b6f9085881da520e6c3d12975937e9a9c599614b85c36f697099fab2bf752fd8b5ef57f9dfdffcd31e7d648439e833e5897bd92123cffd01c8c276
7
- data.tar.gz: 9d1ce499b5ee42bd05e5c2741be92a274e4f90e25237439932790f469ebebc5ba9a2bddaaf9cbaf7d8551ed5b8bffbc7c1a32ce6ecd516697c0aeeb48b21a0de
6
+ metadata.gz: 1582650be2cf7c13d675fe849b30e428c7e8d3e5ecf33266863f753623ce16f2d8ae1aed61882b25d9ee3986d4bba7790839a25987fb551c1b0ff944e6e6771b
7
+ data.tar.gz: 134872da40df6a1ab83760e64eb928d9b268ee74bf432c4b78b873fb515a43c2ce37f6bfc098624727c87b0987d15a81ea4c1761dc67ff6c8730ed046278e3a5
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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(s40) {|x| ordered_list_to_html x }
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
- @to_s = s240.to_s
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(/(?=<pre)/).map.with_index do |row, i|
510
+ a = s.split(/(?=\{::nomarkdown2?\})/).map.with_index do |row, i|
506
511
 
507
- row.sub(/<pre.*<\/pre>/m) do |pattern|
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
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-08-08 00:00:00.000000000 Z
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