markdown_exec 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -41
- data/lib/markdown_exec/version.rb +1 -1
- 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: d9bea3a54afa348fb845a58f5878a0ffaa7c1054c3ddcb3444d67a8ab82f3f33
|
4
|
+
data.tar.gz: 3c305eb76fc06e013f38978144d668d864a67903d2be9a9de8eaa1e0f221c448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ba10e7a6a74ad1d13c08c3f19ec7ccde273df98a15194022fd803088bfa5c11a880a1f2b094b9b9e9f8979a998b480afd133252bf7b5e960bd2a7f856f26c2f
|
7
|
+
data.tar.gz: 3e031e16cf98a6301677d05caf09da89c227a32139c62f2844567e73acb5404171aa204a0bbf823844afab4e29a54894161f12a585d57e5223e304e587f96e2b
|
data/README.md
CHANGED
@@ -1,38 +1,38 @@
|
|
1
1
|
# MarkdownExec
|
2
2
|
|
3
|
-
|
3
|
+
This gem allows you to run code blocks in markdown files.
|
4
4
|
|
5
|
-
|
5
|
+
* Code blocks can be named.
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'markdown_exec'
|
13
|
-
```
|
7
|
+
* Named blocks can be required by other blocks.
|
14
8
|
|
15
|
-
|
9
|
+
* The selected code block, and all required blocks, are collected in the order they appear in the markdown file.
|
16
10
|
|
17
|
-
|
11
|
+
## Installation
|
18
12
|
|
19
|
-
|
13
|
+
Install:
|
20
14
|
|
21
15
|
$ gem install markdown_exec
|
22
16
|
|
23
17
|
## Usage
|
24
18
|
|
25
|
-
|
19
|
+
`mde --help`
|
20
|
+
Displays help information.
|
26
21
|
|
27
|
-
|
22
|
+
`mde`
|
23
|
+
Process `README.md` file in the current directory. Displays all the blocks in the file and allows you to select using [up], [down], and [return]. Press [ctrl]-c to abort selection.
|
28
24
|
|
29
|
-
|
25
|
+
`mde -f my.md`
|
26
|
+
Process `my.md` file in the current directory.
|
30
27
|
|
31
|
-
|
28
|
+
`mde -p child`
|
29
|
+
Process markdown files in the `child` directory.
|
32
30
|
|
33
|
-
|
31
|
+
`mde --list-blocks`
|
32
|
+
List all blocks in the selected files.
|
34
33
|
|
35
|
-
|
34
|
+
`mde --list-docs`
|
35
|
+
List all markdown documents in the selected folder.
|
36
36
|
|
37
37
|
## License
|
38
38
|
|
@@ -41,26 +41,3 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
41
41
|
## Code of Conduct
|
42
42
|
|
43
43
|
Everyone interacting in the MarkdownExec project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/markdown_exec/blob/master/CODE_OF_CONDUCT.md).
|
44
|
-
|
45
|
-
# 2022-03-06
|
46
|
-
```
|
47
|
-
gem build markdown_exec.gemspec
|
48
|
-
```
|
49
|
-
```expect
|
50
|
-
Successfully built RubyGem
|
51
|
-
Name: markdown_exec
|
52
|
-
Version: 0.0.1
|
53
|
-
File: markdown_exec-0.0.1.gem
|
54
|
-
```
|
55
|
-
```
|
56
|
-
gem install ./markdown_exec-0.0.1.gem
|
57
|
-
```
|
58
|
-
```
|
59
|
-
gem list | grep exec
|
60
|
-
```
|
61
|
-
```
|
62
|
-
gem uninstall markdown_exec
|
63
|
-
```
|
64
|
-
pusher api key: rubygems_8c4b38ef685484719858c53c3161a124c15d7a9bec6cb65a
|
65
|
-
|
66
|
-
gem push markdown_exec-0.0.1.gem
|