diff options
| author | Paul Buetow <paul@buetow.org> | 2021-05-13 18:08:41 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-05-13 18:08:41 +0100 |
| commit | 67ab04928160f06f2b95ef6708fa4d47cf920aef (patch) | |
| tree | 1c39499f479a1cd3d4e5804cfd6819d777192a93 /modules | |
| parent | c10c16ba69ff74440f03192242741ee2a77d6448 (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")" \ |
