mdless 2.1.11 → 2.1.13

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: e103adb25eb7f60ff660cae6071863165cc8248d0d22a2aa673c240bc470f680
4
- data.tar.gz: 4ec87e6815250971fbd3b536776137be756ccf324fac5dda2abac16ca786fb22
3
+ metadata.gz: 83167ef6642c2dd16d917eb3bb4f41c7c2ac19dc73ba4450a06bd41f3d044294
4
+ data.tar.gz: 5b172f2f5572d107d7f8c0610fb80932faf289dd5aa1e46ed290bcb57880c916
5
5
  SHA512:
6
- metadata.gz: d45d4d1c865a9c00bc710739cf208c300c7e421ccc785d633715fe7350af81928fe79b28effe050be39cba6c33f4c64f472424e4c103c9e5225bd8dfd1b85fba
7
- data.tar.gz: 29062adc822df60367956d417fb5e9851c03d149e81aec7cb439e3e8586c55fe9df5733d8774f587b8acae4ea91ebfff246b91734ea26473bd2f43859261228d
6
+ metadata.gz: c63aa55d2e53d7773c4208868d1bfffecaf93224da8843f11a2a74fb339a77bdb2143a54144ed09deb4253e645c484c017e42ea69196f03163b83331301a6f72
7
+ data.tar.gz: 1b3ee4f2e46e131d2c2e7a3f015f3eb9dfc57f0382863794f9130e00e34a64d359a9e0b05074568a3c8ec133fcd534ec680df0efb9f4c02c82f6a1728fff2fa4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 2.1.13
2
+ : Remove debugging statement
3
+
4
+ 2.1.12
5
+ : Fix list indentation when nesting
6
+
1
7
  2.1.11
2
8
  : Better regex for highlighting raw HTML
3
9
  : Indentation in highlighted code blocks
data/README.md CHANGED
@@ -147,7 +147,7 @@ You can also use 3 or 6-digit hex codes in place of color names. These can be pr
147
147
 
148
148
  Some extra (non-color) settings are available for certain keys, e.g. `pad_char` to define the right padding character used on level 1 and 2 headlines. Note that you can change the [Pygments](http://pygments.org/) theme used for syntax highlighting with the code_block.pygments_theme setting. For a list of available styles (assuming you have Pygments installed), use `pygmentize -L styles`.
149
149
 
150
- The display of characters around emphasis and code spans can be configured. By default, the surrounding character for bold is `**`, italic is `_`, and code span is \`. You can leave these keys empty to not display characters at all. For triple-emphasized text, the text will be surrounded by italic and bold characters, in that order.
150
+ The display of characters around emphasis and code spans can be configured. By default, the surrounding character for bold is `**`, italic is `_`, and code span is a backtick. You can leave these keys empty to not display characters at all. For triple-emphasized text, the text will be surrounded by italic and bold characters, in that order.
151
151
 
152
152
  ```yaml
153
153
  emphasis:
@@ -606,9 +606,9 @@ module Redcarpet
606
606
 
607
607
  lines = input.split(/\n/)
608
608
  line1 = lines.shift
609
- pre = ' ' * (indent + 1)
610
- cols = MDLess.cols - pre.length
611
- body = lines.map { |l| "#{pre}#{l}" }.join("\n")
609
+ pre = spaces + (" " * (indent + 1))
610
+
611
+ body = lines.map { |l| "#{pre}#{l.rstrip}" }.join("\n")
612
612
  "#{line1}\n#{body}"
613
613
  end
614
614
 
@@ -648,7 +648,7 @@ module Redcarpet
648
648
  end
649
649
 
650
650
  def fix_list_spacing(input)
651
- input.gsub(/( *\n)+( *)<<listitem/, "\n\\2<<listitem").gsub(/\n{2,}/, "\n\n")
651
+ input.gsub(/( *\n)+( *)<<listitem/, "\n\\2<<listitem").gsub(/( *\n){2,}/, "\n\n")
652
652
  end
653
653
 
654
654
  def nest_lists(input, indent = 0)
@@ -695,7 +695,7 @@ module Redcarpet
695
695
  end
696
696
 
697
697
  content = m['content'] =~/<<listitem/ ? fix_items(m['content'], indent, levels) : m['content']
698
- color_list_item(' ' * indent, uncolor_grafs(content), m['type'].to_sym, levels[indent])
698
+ color_list_item(" " * indent, uncolor_grafs(content), m['type'].to_sym, levels[indent])
699
699
  end
700
700
  end
701
701
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CLIMarkdown
4
- VERSION = '2.1.11'
4
+ VERSION = '2.1.13'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdless
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.11
4
+ version: 2.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-03 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet