aboutsummaryrefslogtreecommitdiff
path: root/class/class.art.php
diff options
context:
space:
mode:
Diffstat (limited to 'class/class.art.php')
-rw-r--r--class/class.art.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/class/class.art.php b/class/class.art.php
index 54fa28d..cc7a0d0 100644
--- a/class/class.art.php
+++ b/class/class.art.php
@@ -1,6 +1,8 @@
<?php
use Michelf\Markdown;
+use Michelf\MarkdownExtra;
+
class Art
{
@@ -51,7 +53,7 @@ class Art
$this->setintro('resumé');
$this->settag('sans tag,');
$this->setdatecreation($now);
- $this->setcss('');
+ $this->setcss('article {}');
$this->sethtml('contenu');
$this->setsecure(2);
$this->setcouleurtext('#000000');
@@ -111,13 +113,14 @@ class Art
}
public function html($option)
- {
+ {
if ($option == 'md') {
return $this->html;
} elseif ($option == 'html') {
- return Markdown::defaultTransform($this->html);
+ $html = MarkdownExtra::defaultTransform($this->html);
+ $htmla = str_replace('class="b"', ' target="_blank" ', $html);
+ return $htmla;
}
- // return $this->html;
}
public function secure()