summaryrefslogtreecommitdiff
path: root/modules/html.source.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/html.source.sh')
-rw-r--r--modules/html.source.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/html.source.sh b/modules/html.source.sh
index ef6e7b11..7d337b02 100644
--- a/modules/html.source.sh
+++ b/modules/html.source.sh
@@ -20,7 +20,7 @@ html::make_heading () {
html::make_quote () {
local -r quote="${1/> }"
- echo "<pre>$(html::special "$quote")</pre>"
+ echo "<p class=\"quote\"><i>$(html::special "$quote")</i></p>"
}
html::make_img () {
@@ -122,7 +122,7 @@ html::test () {
assert::equals "$(html::make_heading "$line" 3)" '<h3>Header 3</h3>'
line='> This is a quote'
- assert::equals "$(html::make_quote "$line")" '<pre>This is a quote</pre>'
+ assert::equals "$(html::make_quote "$line")" '<p class="quote"><i>This is a quote</i></p>'
line='=> https://example.org'
assert::equals "$(generate::make_link html "$line")" \