diff options
| author | Paul Buetow <paul@buetow.org> | 2021-05-13 18:08:41 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-05-21 05:11:05 +0100 |
| commit | 0e3cf3d5e42f884c022720b02f79e87fe060f93a (patch) | |
| tree | 36b38b2d48f1d349812b9734608872934a14279f /modules | |
| parent | 5cab54c35ef2b256b31754fb3df0a376becee897 (diff) | |
simplify html css style
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/html.source.sh | 4 |
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")" \ |
