Added a comment
This commit is contained in:
parent
c1a400a368
commit
b2b87e584c
1 changed files with 2 additions and 1 deletions
3
bb.sh
3
bb.sh
|
@ -399,8 +399,9 @@ parse_file() {
|
|||
title=""
|
||||
while read line; do
|
||||
if [[ "$title" == "" ]]; then
|
||||
title=$(echo "$line" | sed 's/<\/*p>//g')
|
||||
# set title and
|
||||
# remove extra <p> and </p> added by markdown
|
||||
title=$(echo "$line" | sed 's/<\/*p>//g')
|
||||
filename="$(echo $title | tr [:upper:] [:lower:])"
|
||||
filename="$(echo $filename | sed 's/\ /-/g')"
|
||||
filename="$(echo $filename | tr -dc '[:alnum:]-')" # html likes alphanumeric
|
||||
|
|
Loading…
Add table
Reference in a new issue