1
1
mirror of https://github.com/wader/fq.git synced 2024-07-14 23:30:28 +03:00

help: Render mailto:addr as <addr>

This commit is contained in:
Mattias Wadman 2024-06-14 21:01:53 +02:00
parent a1fb076248
commit 52eaf10de2

View File

@ -57,7 +57,11 @@ def _markdown_children_to_text($width):
| join("")
) as $text
| if $text == .destination then $text
else "\($text) (\(.destination))"
else
if .destination | startswith("mailto:") then
"<\(.destination[7:])>"
else "\($text) (\(.destination))"
end
end
)
elif .type == "code_block" then .literal | rtrimstr("\n") | split("\n") | " " + join("\n ")