markdown_exec 1.8.1 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8aaff8a595c31c7795c427ecc803b27ef40ae65d54be8bac9df13350c51f2fd
4
- data.tar.gz: f65aee00b1f8567e7006ab73b4a60fb7a2e340fc6e4cfec33bd357051ab3a175
3
+ metadata.gz: 84609b91b353913fe01e7f2b0a2134af9eaf9ec09ba79bc8edfcfd94f87b11d6
4
+ data.tar.gz: 4a73cba2c97774245c39376cd310e59d31e8d3230a9c1307d623576b21061afa
5
5
  SHA512:
6
- metadata.gz: fbc6f2c928ba9a6e7a02783ff5f958df4daa8e7841b25c6482e1fb886d54b784bc9770c249eb38db1829b17bff4cea15b3a95dd4480aab1aab172595de7ee8e8
7
- data.tar.gz: dbca510e5135474f9ab1ed200046469dc06781a6c051559b07dad381dbaba11e5e4e71a95fe500a69c8373fe7676ae7c4650ad339cc644bd29fdafb2aa02187c
6
+ metadata.gz: 734f4e6b036b5dc100b41beddd9a51faa86cbb3b4813d6e83488ae351d513f7d0a84c3ea0746fc9f96ab55bb30f61d1b2df6c5b8696af0fc95c6e6291e4a093c
7
+ data.tar.gz: 0c869ee545f85cd0b514aed9f479071d6c9b4641f1b39fac35489aa1261d26d3e55c2ea424e7edc0634c1662f79a624cd3f477bbe07d7df3c3acfb91ae1b7a6e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.2] - 2023-12-12
4
+
5
+ ### Changed
6
+
7
+ - Set default colors.
8
+
3
9
  ## [1.8.1] - 2023-12-11
4
10
 
5
11
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdown_exec (1.8.1)
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.1"
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 00:15:14 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.