diff --git a/packages/framework/src/Markdown/Processing/DynamicMarkdownLinkProcessor.php b/packages/framework/src/Markdown/Processing/DynamicMarkdownLinkProcessor.php index 7dc220855e0..fc9e6b45330 100644 --- a/packages/framework/src/Markdown/Processing/DynamicMarkdownLinkProcessor.php +++ b/packages/framework/src/Markdown/Processing/DynamicMarkdownLinkProcessor.php @@ -6,6 +6,7 @@ use Hyde\Hyde; use Illuminate\Support\Str; +use Hyde\Support\Models\Route; use Hyde\Support\Filesystem\MediaFile; use Hyde\Markdown\Contracts\MarkdownPostProcessorContract; @@ -16,27 +17,35 @@ class DynamicMarkdownLinkProcessor implements MarkdownPostProcessorContract public static function postprocess(string $html): string { - foreach (static::routeMap() as $sourcePath => $route) { - $patterns = [ - sprintf('getLink()), $html); - } + return $html; + } - foreach (static::assetMap() as $sourcePath => $mediaFile) { + /** + * @param array $map + */ + protected static function processMap(array $map, string $html, string $tag, string $attribute): string + { + foreach ($map as $sourcePath => $item) { $patterns = [ - sprintf('getLink(); + } + /** @return array */ protected static function routeMap(): array {