aboutsummaryrefslogtreecommitdiff
path: root/scripts/stdmarkup.php
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-08-19 03:45:59 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-08-19 03:45:59 +0000
commit29db6f17f9c9e408f3d71eba24d0ff5844410df4 (patch)
tree77e4fdb3947c5d850e371e1a9a91c521cbc08e49 /scripts/stdmarkup.php
parent2a7c4b67bf7faaf9036717d4050052dff3795a8e (diff)
downloadpmwiki.svn-29db6f17f9c9e408f3d71eba24d0ff5844410df4.tar.bz2
Add $EnableObfuscateEmails, $EnablePreserveLineBreaks.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4781 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/stdmarkup.php')
-rw-r--r--scripts/stdmarkup.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/stdmarkup.php b/scripts/stdmarkup.php
index 4abff4d8..2b46faaf 100644
--- a/scripts/stdmarkup.php
+++ b/scripts/stdmarkup.php
@@ -18,6 +18,12 @@
Script maintained by Petko YOTOV www.pmwiki.org/petko
*/
+## for simpler configuration
+if (IsEnabled($EnableObfuscateEmails, 0))
+ $LinkFunctions['mailto:'] = 'ObfuscateLinkIMap';
+if (IsEnabled($EnablePreserveLineBreaks, 0))
+ $HTMLPNewline = '<br/>';
+
## first we preserve text in [=...=] and [@...@]
function PreserveText($sigil, $text, $lead) {
if ($sigil=='=') return $lead.Keep($text);