From 7763643f2e55c82af97d5db5315f051ed9cc6090 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 13 Nov 2016 15:06:16 -0800 Subject: zidify wiki content --- include/text.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index dbb0f4434..fa16a16a1 100644 --- a/include/text.php +++ b/include/text.php @@ -4,6 +4,7 @@ */ require_once("include/bbcode.php"); +require_once('include/hubloc.php'); // random string, there are 86 characters max in text mode, 128 for hex // output is urlsafe @@ -1736,6 +1737,36 @@ function zidify_links($s) { return $s; } + + + +function zidify_text_callback($match) { + $is_zid = is_matrix_url($match[2]); + $replace = '