diff options
Diffstat (limited to 'buetow.org.sh')
| -rwxr-xr-x | buetow.org.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/buetow.org.sh b/buetow.org.sh index 356c39a5..a77da7bf 100755 --- a/buetow.org.sh +++ b/buetow.org.sh @@ -430,9 +430,9 @@ md::img () { local descr="$1"; shift if [ -z "$descr" ]; then - echo "[]($link)" + echo "[]($link) " else - echo "[]($link)" + echo "[]($link) " fi } @@ -443,29 +443,29 @@ md::link () { grep -F -q '://' <<< "$link" || link=${link/.gmi/.md} test -z "$descr" && descr="$link" - echo "[$descr]($link)" + echo "[$descr]($link) " } md::test () { local line='=> https://example.org' assert::equals "$(generate::link md "$line")" \ - '[https://example.org](https://example.org)' + '[https://example.org](https://example.org) ' line='=> index.md' assert::equals "$(generate::link md "$line")" \ - '[index.md](index.md)' + '[index.md](index.md) ' line='=> http://example.org Description of the link' assert::equals "$(generate::link md "$line")" \ - '[Description of the link](http://example.org)' + '[Description of the link](http://example.org) ' line='=> http://example.org/image.png' assert::equals "$(generate::link md "$line")" \ - '[](http://example.org/image.png)' + '[](http://example.org/image.png) ' line='=> http://example.org/image.png Image description' assert::equals "$(generate::link md "$line")" \ - '[](http://example.org/image.png)' + '[](http://example.org/image.png) ' } md::fromgmi () { |
