mirror of
https://tildegit.org/sbgodin/HtmGem.git
synced 2023-08-25 13:53:12 +02:00
Permet de désactiver la décoration du texte
This commit is contained in:
parent
805522cdd5
commit
b162501f0c
@ -14,6 +14,8 @@ define("DASHES"
|
|||||||
|
|
||||||
$style = @$_REQUEST['style'];
|
$style = @$_REQUEST['style'];
|
||||||
|
|
||||||
|
# to false only if textDecoration=0 in the URL
|
||||||
|
$textDecoration = "0" != @$_REQUEST['textDecoration'];
|
||||||
|
|
||||||
/* The url argument is always absolute compared to the document root
|
/* The url argument is always absolute compared to the document root
|
||||||
* The leading slash is removed. so url=/foo/bar and url=foo/bar ar the same.
|
* The leading slash is removed. so url=/foo/bar and url=foo/bar ar the same.
|
||||||
@ -107,6 +109,8 @@ function markupPreg($instruction, $markup, &$text) {
|
|||||||
* @param $line the line to process
|
* @param $line the line to process
|
||||||
*/
|
*/
|
||||||
function addTextAttributes(&$line) {
|
function addTextAttributes(&$line) {
|
||||||
|
global $textDecoration;
|
||||||
|
if (!$textDecoration) return;
|
||||||
markupPreg("__", "u", $line);
|
markupPreg("__", "u", $line);
|
||||||
markupPreg("\*\*", "strong", $line);
|
markupPreg("\*\*", "strong", $line);
|
||||||
markupPreg("//", "em", $line);
|
markupPreg("//", "em", $line);
|
||||||
|
Loading…
Reference in New Issue
Block a user