mdless 2.1.37 → 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: d7615ae321af9cfb20c0b5725c020655636343f9e1798f8bff4a9a5786305313
4
- data.tar.gz: a541c60fa2b70c91c32d09fd12113257a9c9458ef7db0c2ce15a2bc5bb9b04f5
3
+ metadata.gz: f4dcf4b7485bc928119a2a804b7414eaa6e00495e37bc6fbaafaf7d7258de6a7
4
+ data.tar.gz: 90e2f674a49c0fa5c89b695cb082c1323db3973e26b013bc8ad752819109d0d9
5
5
  SHA512:
6
- metadata.gz: eef86d7e23ce2a25410092d9bc869470190cee6412d59aa7d46b57ed44bd5e3a53e259baebbee60d7e70e280a5ebd7b074f9c96741b72f7b2f96cfc569321e0e
7
- data.tar.gz: 9d062ab8f123e5cf3d10e85a098bfa678ec33b87fbbeb7cd48f75c3059a92da426d0e228f6d214eb22547b989ef2b5891af2e7539de91ac23af1ac7562b2de18
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.37'
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.37
4
+ version: 2.1.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra