From 5bdd1d1ef7286db0438ed5c779e7f9cda18175ae Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Tue, 8 Apr 2025 22:06:12 +0100 Subject: Add build a town note --- tools/note.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/note.lua') diff --git a/tools/note.lua b/tools/note.lua index 199d5c0..8a44f2f 100644 --- a/tools/note.lua +++ b/tools/note.lua @@ -5,7 +5,7 @@ local meta_tools = require("tools/meta_tools") local status_map = {"seedling", "budding", "evergreen"} function Link(link) - if not string.find(link.target, "://") then + if not string.find(link.target, "://") and not string.sub(link.target, 1, 7) == "mailto:" then local note = meta_tools.get_note(link.target) local text = note["title"] if string.len(stringify(link.content)) ~= 0 then -- cgit v1.2.3