mdless 2.1.36 → 2.1.38

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: 99d20a886a23bd77ae38be29d68c25ed6673fe32815ac8c06f621cf7fd101b27
4
- data.tar.gz: a87049e15d202db34aff6960212561cb9026a3a6627d73a532d700495de070fe
3
+ metadata.gz: f4dcf4b7485bc928119a2a804b7414eaa6e00495e37bc6fbaafaf7d7258de6a7
4
+ data.tar.gz: 90e2f674a49c0fa5c89b695cb082c1323db3973e26b013bc8ad752819109d0d9
5
5
  SHA512:
6
- metadata.gz: 047faebf6bc49ed8c56916b36a9b0428c0af508ae956ea76f0547792a744b7e3be80726d1c4435542b5b9fbc7a2b8339b22614bffe2ebb2042e861cd28b636e2
7
- data.tar.gz: 41c7e129de92b8cc7852aaa71ab61bca9964066a5aee1b1b196d77c6a0b23429960ca1203180a7a540a3253e387b59023e140186da36f874eed0f8eaa1020aad
6
+ metadata.gz: ffde9858c6647cdf1c2b7a157e07fb45045d91ef931b831a17fd18cc4571ec8971a0b49f8923223d9877461e1c3d65eb4d176516d080f88c12ad9e648d1f4912
7
+ data.tar.gz: 811fdb2a849587c391971a8ba9879a622701a7e21dfbbcdfbb9cf408cd7756531122df4f1e098b89df5c2977bc633d2164538f225fb31cabec48034d4659947a
@@ -806,6 +806,8 @@ module Redcarpet
806
806
  end
807
807
 
808
808
  def mmd_transclude(input)
809
+ return input unless MDLess.file || MDLess.meta.key?('transcludebase')
810
+
809
811
  input.gsub(/^{{(.*?)}}/) do |m|
810
812
  filename = Regexp.last_match(1).strip
811
813
  file = if MDLess.meta.key?('transcludebase')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CLIMarkdown
4
- VERSION = '2.1.36'
4
+ VERSION = '2.1.38'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdless
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.36
4
+ version: 2.1.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra