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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/mdless/console.rb +5 -5
- data/lib/mdless/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83167ef6642c2dd16d917eb3bb4f41c7c2ac19dc73ba4450a06bd41f3d044294
|
4
|
+
data.tar.gz: 5b172f2f5572d107d7f8c0610fb80932faf289dd5aa1e46ed290bcb57880c916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c63aa55d2e53d7773c4208868d1bfffecaf93224da8843f11a2a74fb339a77bdb2143a54144ed09deb4253e645c484c017e42ea69196f03163b83331301a6f72
|
7
|
+
data.tar.gz: 1b3ee4f2e46e131d2c2e7a3f015f3eb9dfc57f0382863794f9130e00e34a64d359a9e0b05074568a3c8ec133fcd534ec680df0efb9f4c02c82f6a1728fff2fa4
|
data/CHANGELOG.md
CHANGED
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
|
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:
|
data/lib/mdless/console.rb
CHANGED
@@ -606,9 +606,9 @@ module Redcarpet
|
|
606
606
|
|
607
607
|
lines = input.split(/\n/)
|
608
608
|
line1 = lines.shift
|
609
|
-
pre =
|
610
|
-
|
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(
|
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(
|
698
|
+
color_list_item(" " * indent, uncolor_grafs(content), m['type'].to_sym, levels[indent])
|
699
699
|
end
|
700
700
|
end
|
701
701
|
|
data/lib/mdless/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcarpet
|