mirror of
https://github.com/caylakpenguen/bashblog.git
synced 2025-03-16 21:27:05 +03:00
Added a comment
This commit is contained in:
parent
c1a400a368
commit
b2b87e584c
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…
Reference in New Issue
Block a user