markdown_exec 1.8 → 1.8.2

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: c4fdb41b414911d16030ffbfb8c4b07ca8c09e3684f21e123d0d99cd738dba3d
4
- data.tar.gz: 70c1ec9fb9b795d0cbdcc87ceb03809a57af5901a70dc2b1d319c9451592d687
3
+ metadata.gz: 84609b91b353913fe01e7f2b0a2134af9eaf9ec09ba79bc8edfcfd94f87b11d6
4
+ data.tar.gz: 4a73cba2c97774245c39376cd310e59d31e8d3230a9c1307d623576b21061afa
5
5
  SHA512:
6
- metadata.gz: abea63db83a4d785bce7c2ec1c9babebe6d78637872a068c4d6b2169832de8ea707a2c3ae426f6cd5ea548269194a797d95abdd7fceb286c4efa49da9d591bfe
7
- data.tar.gz: 1b102cb3e898789d6ddf2a401f90cfee04403ea135a14a5067673b250855aef569ca3b39a171570930ef5946d52874d022fb19fd9cf7c1561737144aefc5ef3c
6
+ metadata.gz: 734f4e6b036b5dc100b41beddd9a51faa86cbb3b4813d6e83488ae351d513f7d0a84c3ea0746fc9f96ab55bb30f61d1b2df6c5b8696af0fc95c6e6291e4a093c
7
+ data.tar.gz: 0c869ee545f85cd0b514aed9f479071d6c9b4641f1b39fac35489aa1261d26d3e55c2ea424e7edc0634c1662f79a624cd3f477bbe07d7df3c3acfb91ae1b7a6e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.2] - 2023-12-12
4
+
5
+ ### Changed
6
+
7
+ - Set default colors.
8
+
9
+ ## [1.8.1] - 2023-12-11
10
+
11
+ ### Changed
12
+
13
+ - Name used in script saved file.
14
+
15
+ ## [1.8] - 2023-12-11
16
+
17
+ ### Changed
18
+
19
+ - Default colors.
20
+
21
+ ### Added
22
+
23
+ - Run-time exception for unmet dependencies.
24
+ - Command to find text in directory name, file name, or file contents.
25
+ - Options to detect and display block dependency graph and exceptions.
26
+ - Options to dump parsed blocks structures.
27
+ - Options to add labels to shell code blocks.
28
+
29
+ ## [1.7] - 2023-12-01
30
+
31
+ ### Added
32
+
33
+ - Options to format menu and output blocks.
34
+ - Control display of imported content.
35
+ - Example documents.
36
+
3
37
  ## [1.6] - 2023-11-13
4
38
 
5
39
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdown_exec (1.8)
4
+ markdown_exec (1.8.2)
5
5
  clipboard (~> 1.3.6)
6
6
  open3 (~> 0.1.1)
7
7
  optparse (~> 0.1.1)
@@ -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-11 19:58:50 UTC"
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
- ```opts :(default)
8
- exception_color_detail: fg_rgbh_E0_E0_20 # Color of exception detail
9
- exception_color_name: fg_rgbh_E0_20_20 # Color of exception name
10
- execution_report_preview_frame_color: fg_rgbh_20_80_80 # execution_report_preview_frame_color
11
- menu_bash_color: fg_rgbh_40_C0_F0 # Color of menu bash
12
- menu_chrome_color: fg_rgbh_80_80_20 # Color of menu chrome
13
- menu_divider_color: fg_rgbh_20_98_80 # Color of menu divider
14
- menu_link_color: fg_rgbh_20_E0_20 # Color of menu link
15
- menu_note_color: fg_rgbh_40_A0_A0 # Color of menu note
16
- menu_opts_color: fg_rgbh_E0_60_E0 # Color of menu opts
17
- menu_opts_set_color: fg_rgbh_E0_20_20 # Color of menu opts
18
- menu_task_color: fg_rgbh_A0_20_D0 # Color of menu task
19
- menu_vars_color: fg_rgbh_E0_80_20 # Color of menu vars
20
- menu_vars_set_color: fg_rgbh_E0_80_20 # Color of menu vars
21
- output_execution_label_name_color: fg_rgbh_20_D8_80 # Color of output_execution_label_name
22
- output_execution_label_value_color: fg_rgbh_20_E0_80 # Color of output_execution_label_value
23
- prompt_color_after_script_execution: fg_rgbh_20_E8_80 # Color of prompt after script execution
24
- script_execution_frame_color: fg_rgbh_20_80_80 # script_execution_frame_color
25
- script_preview_frame_color: fg_rgbh_20_80_80 # Color of output divider
26
- warning_color: fg_rgbh_E0_E0_20 # Color of warning message
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
@@ -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.