mirror of
https://github.com/typemill/typemill.git
synced 2025-08-04 13:17:29 +02:00
Version 1.4.9-1.5.0: Refactor controller logic
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Typemill\Extensions;
|
||||
|
||||
use \URLify;
|
||||
use Typemill\Models\Folder;
|
||||
|
||||
class ParsedownExtension extends \ParsedownExtra
|
||||
{
|
||||
@@ -10,6 +10,8 @@ class ParsedownExtension extends \ParsedownExtra
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->settings = $settings;
|
||||
|
||||
# show anchor next to headline?
|
||||
$this->showAnchor = isset($settings['headlineanchors']) ? $settings['headlineanchors'] : false;
|
||||
|
||||
@@ -329,7 +331,7 @@ class ParsedownExtension extends \ParsedownExtra
|
||||
}
|
||||
|
||||
$text = trim($Line['text'], '#');
|
||||
$headline = URLify::filter($Line['text']);
|
||||
$headline = Folder::createSlug($Line['text'], $this->settings);
|
||||
|
||||
if ($this->strictMode and isset($text[0]) and $text[0] !== ' ')
|
||||
{
|
||||
|
Reference in New Issue
Block a user