From 94b244d2001f44072888f7d89c5f3fea03c11c55 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 8 Oct 2020 10:56:48 -0400 Subject: [PATCH] Linkify ytdl:// URIs --- sundown/autolink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sundown/autolink.c b/sundown/autolink.c index a67e6ca..ceaf530 100644 --- a/sundown/autolink.c +++ b/sundown/autolink.c @@ -42,11 +42,12 @@ ishashtagend(char c) int sd_autolink_issafe(const uint8_t *link, size_t link_len) { - static const size_t valid_uris_count = 12; + static const size_t valid_uris_count = 13; static const char *valid_uris[] = { "ยง", "@", "&", "%", "#", "gemini://", "gopher://", + "ytdl://", "/", "http://", "https://", "ftp://", "mailto:" };