markdown_exec 1.8.1 → 1.8.2
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/Gemfile.lock +1 -1
- data/bin/tab_completion.sh +2 -2
- data/examples/colors.md +37 -20
- data/lib/ansi_formatter.rb +0 -3
- data/lib/hash_delegator.rb +320 -344
- data/lib/markdown_exec/version.rb +1 -1
- data/lib/markdown_exec.rb +12 -18
- data/lib/mdoc.rb +0 -4
- data/lib/menu.src.yml +19 -19
- data/lib/menu.yml +20 -20
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84609b91b353913fe01e7f2b0a2134af9eaf9ec09ba79bc8edfcfd94f87b11d6
|
4
|
+
data.tar.gz: 4a73cba2c97774245c39376cd310e59d31e8d3230a9c1307d623576b21061afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 734f4e6b036b5dc100b41beddd9a51faa86cbb3b4813d6e83488ae351d513f7d0a84c3ea0746fc9f96ab55bb30f61d1b2df6c5b8696af0fc95c6e6291e4a093c
|
7
|
+
data.tar.gz: 0c869ee545f85cd0b514aed9f479071d6c9b4641f1b39fac35489aa1261d26d3e55c2ea424e7edc0634c1662f79a624cd3f477bbe07d7df3c3acfb91ae1b7a6e
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/bin/tab_completion.sh
CHANGED
@@ -13,7 +13,7 @@ __filedirs_all()
|
|
13
13
|
}
|
14
14
|
|
15
15
|
_mde_echo_version() {
|
16
|
-
echo "1.8.
|
16
|
+
echo "1.8.2"
|
17
17
|
}
|
18
18
|
|
19
19
|
_mde() {
|
@@ -154,4 +154,4 @@ _mde() {
|
|
154
154
|
|
155
155
|
complete -o filenames -o nospace -F _mde mde
|
156
156
|
# _mde_echo_version
|
157
|
-
# echo "Updated: 2023-12-12
|
157
|
+
# echo "Updated: 2023-12-12 16:37:57 UTC"
|
data/examples/colors.md
CHANGED
@@ -2,28 +2,44 @@
|
|
2
2
|
|
3
3
|
::: These Opts blocks set the color for all elements.
|
4
4
|
|
5
|
+
<https://en.wikipedia.org/wiki/Complementary_colors#/media/File:RGB_color_wheel.svg>
|
6
|
+
|
7
|
+
ff0000 red - exception text
|
8
|
+
ff7f00 orange - warning text
|
9
|
+
ffff00 yellow - notification text
|
10
|
+
7fff00 chartreuse green - output frame
|
11
|
+
00ff00 green - prompt
|
12
|
+
00ff7f spring green - input frame
|
13
|
+
00ffff cyan - menu text
|
14
|
+
007fff azure - menu frame
|
15
|
+
0000ff blue
|
16
|
+
7f00ff violet - opts frame
|
17
|
+
ff00ff magenta - opts text
|
18
|
+
ff007f rose - exception frame
|
19
|
+
|
5
20
|
```opts :(document_options)
|
6
21
|
```
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
|
23
|
+
```opts :load_colors
|
24
|
+
exception_color_detail: fg_rgbh_ff_00_7f
|
25
|
+
exception_color_name: fg_rgbh_ff_00_00
|
26
|
+
execution_report_preview_frame_color: fg_rgbh_7f_ff_00
|
27
|
+
menu_bash_color: fg_rgbh_00_c0_c0
|
28
|
+
menu_chrome_color: fg_rgbh_40_c0_c0
|
29
|
+
menu_divider_color: fg_rgbh_80_d0_c0
|
30
|
+
menu_link_color: fg_rgbh_e0_e0_20
|
31
|
+
menu_note_color: fg_rgbh_b0_b0_b0
|
32
|
+
menu_opts_color: fg_rgbh_ff_00_ff
|
33
|
+
menu_opts_set_color: fg_rgbh_7f_00_ff
|
34
|
+
menu_task_color: fg_rgbh_ff_ff_ff
|
35
|
+
menu_vars_color: fg_rgbh_ff_a0_ff
|
36
|
+
menu_vars_set_color: fg_rgbh_00_ff_ff
|
37
|
+
output_execution_label_name_color: fg_rgbh_00_ff_00
|
38
|
+
output_execution_label_value_color: fg_rgbh_00_ff_00
|
39
|
+
prompt_color_after_script_execution: fg_rgbh_00_ff_00
|
40
|
+
script_execution_frame_color: fg_rgbh_00_ff_7f
|
41
|
+
script_preview_frame_color: fg_rgbh_7f_ff_00
|
42
|
+
warning_color: fg_rgbh_ff_7f_00
|
27
43
|
```
|
28
44
|
|
29
45
|
::: Example blocks
|
@@ -39,6 +55,7 @@ warning_color: fg_rgbh_E0_E0_20 # Color of warning mess
|
|
39
55
|
```vars :Vars1
|
40
56
|
```
|
41
57
|
[ ] Task1
|
58
|
+
|
42
59
|
blue; fg_rgbh_00_00_FF
|
43
60
|
green; fg_rgbh_00_FF_00
|
44
61
|
indigo; fg_rgbh_4B_00_82
|
data/lib/ansi_formatter.rb
CHANGED
@@ -145,9 +145,6 @@ class AnsiFormatter
|
|
145
145
|
results
|
146
146
|
end
|
147
147
|
|
148
|
-
# # Example usage
|
149
|
-
# scan_and_process_string("Hello world, hello universe", "hello", :plain, :color)
|
150
|
-
|
151
148
|
# Applies a color method to a string based on the provided color symbol.
|
152
149
|
# The color method is fetched from @options and applied to the string.
|
153
150
|
# @param string [String] The string to which the color will be applied.
|