[fix] mail stream title

[add] markup: auto paragraph
This commit is contained in:
hkau 2024-03-30 12:17:39 -04:00
parent 32162e1635
commit 27f605d820
5 changed files with 7 additions and 4 deletions

View File

@ -158,6 +158,9 @@ pub fn render(input: &str) -> String {
out = regex_replace(&out, "(<link.*>)", "");
out = regex_replace(&out, "(<meta.*>)", "");
// auto paragraph
out = regex_replace_dmnl(&out, "^(.*?)\n{2,}", "<p>\n$1\n</p>");
// return
out
}

View File

@ -5,7 +5,7 @@
{% block toolbar %}
<a class="button" href="/{{ board.name }}" style="border-left: 0">
{% if board.name.starts_with("inbox-") %}
"inbox"
inbox
{% else %}
{{ board.name }}
{% endif %}

View File

@ -5,7 +5,7 @@
{% block toolbar %}
<a class="button" href="/{{ board.name }}" style="border-left: 0">
{% if board.name.starts_with("inbox-") %}
"inbox"
inbox
{% else %}
{{ board.name }}
{% endif %}

View File

@ -5,7 +5,7 @@
{% block toolbar %}
<a class="button" href="/{{ board.name }}" style="border-left: 0">
{% if board.name.starts_with("inbox-") %}
"inbox"
inbox
{% else %}
{{ board.name }}
{% endif %}

View File

@ -5,7 +5,7 @@
{% block toolbar %}
<a class="button" href="/{{ board.name }}" style="border-left: 0">
{% if board.name.starts_with("inbox-") %}
"inbox"
inbox
{% else %}
{{ board.name }}
{% endif %}