File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,21 @@ Also read about:
47
47
48
48
** CLI**
49
49
50
+
50
51
``` bash
52
+ # Example with stdin input
51
53
$ marked -o hello.html
52
54
hello world
53
55
^D
54
56
$ cat hello.html
55
57
< p> hello world< /p>
56
58
```
57
59
60
+ ``` bash
61
+ # Print all options
62
+ $ marked --help
63
+ ```
64
+
58
65
** Browser**
59
66
60
67
``` html
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ These documentation pages are also rendered using marked 💯
30
30
** CLI**
31
31
32
32
``` bash
33
+ # Example with stdin input
33
34
$ marked -o hello.html
34
35
hello world
35
36
^D
@@ -38,10 +39,26 @@ $ cat hello.html
38
39
```
39
40
40
41
``` bash
42
+ # Example with string input
41
43
$ marked -s " *hello world*"
42
44
< p><em> hello world< /em></p>
43
45
```
44
46
47
+ ``` bash
48
+ # Example with file input
49
+
50
+ echo " **bold text example**" > readme.md
51
+
52
+ $ marked -i readme.md -o readme.html
53
+ $ cat readme.html
54
+ < p><strong> bold text example< /strong></p>
55
+ ```
56
+
57
+ ``` bash
58
+ # Print all options
59
+ $ marked --help
60
+ ```
61
+
45
62
** Browser**
46
63
47
64
``` html
You can’t perform that action at this time.
0 commit comments