1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-31 19:30:40 +02:00

moved assets to middleware for proxy detection

This commit is contained in:
trendschau
2020-10-18 08:50:58 +02:00
parent 1e6c42c98a
commit a3167a26ee
15 changed files with 183 additions and 83 deletions

View File

@@ -6,7 +6,7 @@ use \URLify;
class ParsedownExtension extends \ParsedownExtra
{
function __construct($showAnchor = NULL, $skipAbsoluteUrls = NULL)
function __construct($baseUrl = '', $showAnchor = NULL)
{
parent::__construct();
@@ -14,7 +14,7 @@ class ParsedownExtension extends \ParsedownExtra
$this->showAnchor = $showAnchor;
# base url is needed for media/images and relative links (e.g. if www.mydomain.com/mywebsite)
$this->baseUrl = $skipAbsoluteUrls ? '' : TM_BASE_URL;
$this->baseUrl = $baseUrl;
# math support
$this->BlockTypes['\\'][] = 'Math';