mirror of http://git.davidovski.xyz/shblg.git
Reformat code and add todo functions
This commit is contained in:
parent
e8e91a5025
commit
7bcc93b621
|
@ -56,6 +56,7 @@ _emph () {
|
||||||
# parse heading
|
# parse heading
|
||||||
#
|
#
|
||||||
# h [heading no.]
|
# h [heading no.]
|
||||||
|
#
|
||||||
_h () {
|
_h () {
|
||||||
local num=$1
|
local num=$1
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
|
@ -80,12 +81,11 @@ _h () {
|
||||||
|
|
||||||
# parse paragraphs
|
# parse paragraphs
|
||||||
#
|
#
|
||||||
# p
|
|
||||||
_p () {
|
_p () {
|
||||||
empty=true
|
empty=true
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
case "$line" in
|
case "$line" in
|
||||||
"#"*)
|
"#"*|">"*|"``"*)
|
||||||
printf "%s\n" "$line"
|
printf "%s\n" "$line"
|
||||||
;;
|
;;
|
||||||
"")
|
"")
|
||||||
|
@ -108,6 +108,11 @@ _p () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# parse ref-style links
|
||||||
|
#
|
||||||
|
_ref () {
|
||||||
|
}
|
||||||
|
|
||||||
# parse links
|
# parse links
|
||||||
#
|
#
|
||||||
_a_img () {
|
_a_img () {
|
||||||
|
@ -149,6 +154,15 @@ _ul () {
|
||||||
_ol () {
|
_ol () {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# parse mutliline codeblocks
|
||||||
|
#
|
||||||
|
_code () {
|
||||||
|
}
|
||||||
|
|
||||||
|
# parse quotes
|
||||||
|
#
|
||||||
|
_quote () {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# convert the markdown from stdin into html
|
# convert the markdown from stdin into html
|
||||||
|
|
Loading…
Reference in New Issue