mirror of
http://git.davidovski.xyz/shblg.git
synced 2024-08-15 00:43:48 +00:00
Fix paragraph
This commit is contained in:
parent
b1ffc4b5ba
commit
6bc6d5fb6b
1 changed files with 9 additions and 7 deletions
|
@ -85,14 +85,16 @@ _p () {
|
|||
empty=true
|
||||
while IFS= read -r line; do
|
||||
case "$line" in
|
||||
"#"*|">"*|"``"*)
|
||||
"#"*|">"*|'``'*|'<'*'>'*)
|
||||
$empty &&
|
||||
printf "%s\n" "$line"
|
||||
;;
|
||||
"")
|
||||
$empty ||
|
||||
$empty || {
|
||||
printf "</p>\n"
|
||||
|
||||
empty=true ;;
|
||||
empty=true
|
||||
}
|
||||
;;
|
||||
*)
|
||||
$empty &&
|
||||
printf "<p>%s " "$line" ||
|
||||
|
@ -250,10 +252,10 @@ _ol () {
|
|||
#
|
||||
md2html () {
|
||||
|
||||
_p \
|
||||
| _pre_emph \
|
||||
_pre_emph \
|
||||
| _ul \
|
||||
| _ol \
|
||||
| _p \
|
||||
| _emph '__' "<strong>" "</strong>" \
|
||||
| _emph '_' "<em>" "</em>" \
|
||||
| _emph '`' "<code>" "</code>" \
|
||||
|
|
Loading…
Reference in a new issue