mirror of
https://github.com/wader/fq.git
synced 2024-10-26 20:06:29 +03:00
help: Render mailto:addr as <addr>
This commit is contained in:
parent
a1fb076248
commit
52eaf10de2
@ -57,8 +57,12 @@ def _markdown_children_to_text($width):
|
|||||||
| join("")
|
| join("")
|
||||||
) as $text
|
) as $text
|
||||||
| if $text == .destination then $text
|
| if $text == .destination then $text
|
||||||
|
else
|
||||||
|
if .destination | startswith("mailto:") then
|
||||||
|
"<\(.destination[7:])>"
|
||||||
else "\($text) (\(.destination))"
|
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 ")
|
||||||
elif .type == "code" then .literal
|
elif .type == "code" then .literal
|
||||||
|
Loading…
Reference in New Issue
Block a user