diff --git a/format/markdown/markdown.jq b/format/markdown/markdown.jq index 2b8ec853..35b9cd61 100644 --- a/format/markdown/markdown.jq +++ b/format/markdown/markdown.jq @@ -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 ")