1
0
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:
trendschau
2021-10-06 21:39:16 +02:00
parent f279afe888
commit 5c4a7c9f6a
31 changed files with 1037 additions and 1351 deletions

View File

@@ -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] !== ' ')
{