File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Convert all html files in a single directory to markdown
2
+ #
3
+ # 1. Install pandoc
4
+ # 2. Run the script
5
+
6
+
7
+
8
+ FILES=* .html
9
+ for f in $FILES
10
+ do
11
+ # extension="${f##*.}"
12
+ filename=" ${f% .* } "
13
+ echo " Converting $f to $filename .md"
14
+ ` pandoc $f -t markdown -o ../mds/$filename .md`
15
+ # uncomment this line to delete the source file.
16
+ # rm $f
17
+ done
Original file line number Diff line number Diff line change 13
13
1 . ** 11_optimize_images_with_wand.py** : recursively grab images from a directory, then optimize them for the web
14
14
1 . ** 12_csv_split.py** : Splits a CSV file into multiple files based on command line arguments.
15
15
1 . ** 13_random_name_generator.py** : random name generator
16
+ 1 . *** 14_html_to_markdown.sh** : Convert all html files in a single directory to markdown
You can’t perform that action at this time.
0 commit comments