diff options
author | Nicholas Johnson <nick@nicksphere.ch> | 2022-05-20 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicksphere.ch> | 2022-05-20 00:00:00 +0000 |
commit | b7769d9c2fce3ba5e05df29b2c23bf872eb5f9c83b4157c7254bf5c248960a2e (patch) | |
tree | 47f4d51f9e7c649fb7d88018a78e641565623b6ecc9380ea3889c352d3c1bd7d | |
parent | 088cb4047eca3701f9837f244e11ff2ede2b56954e787d7700aa68cb7b757da2 (diff) |
Remove noreferrer
-rw-r--r-- | src/gemini2html.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gemini2html.c b/src/gemini2html.c index 29c9581..82e8abd 100644 --- a/src/gemini2html.c +++ b/src/gemini2html.c @@ -191,8 +191,8 @@ char* convert_pre_toggle_line(const char* line, const size_t len) { * If no link text is provided, the href is used as the link text. * * Examples: - * convert_link_line("=> https://google.com Goolag ") => "<p><a rel=\"noreferrer\" href=\"https://google.com\"">Goolag </a></p>\n" - * convert_link_line("=> https://google.com") => "<p><a rel=\"noreferrer\" href=\"https://google.com\"">https://google.com</a></p>\n" + * convert_link_line("=> https://google.com Goolag ") => "<p><a href=\"https://google.com\"">Goolag </a></p>\n" + * convert_link_line("=> https://google.com") => "<p><a href=\"https://google.com\"">https://google.com</a></p>\n" */ char* convert_link_line(const char* line, const size_t len) { /* skip whitespace before href */ @@ -207,7 +207,7 @@ char* convert_link_line(const char* line, const size_t len) { size_t before_link_text = after_href; skip_whitespace(line, &before_link_text); - char* escaped_href = escape_text_add_tags("<p><a href=\"", line + before_href, "\" rel=\"noreferrer\">", + char* escaped_href = escape_text_add_tags("<p><a href=\"", line + before_href, "\">", after_href - before_href); /* escaped_href will be appended to, so remove newline */ |