summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/html.source.sh7
-rw-r--r--lib/template.source.sh9
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/html.source.sh b/lib/html.source.sh
index 3c2a3dc..f6ee8e6 100644
--- a/lib/html.source.sh
+++ b/lib/html.source.sh
@@ -345,12 +345,5 @@ if [ -z $foo ]; then
fi
```'
assert::contains "$(html::fromgmi <<< "$input_block")" 'GNU source-highlight'
-
- input_block='```AUTO
-if [ -z $foo ]; then
- echo $foo
-fi
-```'
- assert::contains "$(html::fromgmi <<< "$input_block")" 'GNU source-highlight'
fi
}
diff --git a/lib/template.source.sh b/lib/template.source.sh
index 8ab19d5..9a2ff38 100644
--- a/lib/template.source.sh
+++ b/lib/template.source.sh
@@ -65,7 +65,14 @@ $line"
echo "$line"
;;
esac
- done | $SED 's/^\[\[\[/<<</; s/^\]\]\]/>>>/; s/^\[\[/<</; s/^\]/>/;'
+ done | $SED -E '
+ /^```/,/^```/! {
+ s/^\[\[\[/<<</;
+ s/^\]\]\]/>>>/;
+ s/^\[\[/<</;
+ s/^\]/>/;
+ }
+ '
}
template::_line () {