mirror of
https://github.com/wader/fq.git
synced 2024-08-17 16:00:41 +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("")
|
| join("")
|
||||||
) as $text
|
) as $text
|
||||||
| if $text == .destination then $text
|
| if $text == .destination then $text
|
||||||
else "\($text) (\(.destination))"
|
else
|
||||||
|
if .destination | startswith("mailto:") then
|
||||||
|
"<\(.destination[7:])>"
|
||||||
|
else "\($text) (\(.destination))"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
elif .type == "code_block" then .literal | rtrimstr("\n") | split("\n") | " " + join("\n ")
|
elif .type == "code_block" then .literal | rtrimstr("\n") | split("\n") | " " + join("\n ")
|
||||||
|
Loading…
Reference in New Issue
Block a user