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:
parent
a1fb076248
commit
52eaf10de2
@ -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 ")
|
||||
|
Loading…
Reference in New Issue
Block a user