Skip to content

Commit a3097e5

Browse files
committed
Fix #231
1 parent 38911f7 commit a3097e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Actions/MarkdownConverter.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class MarkdownConverter
1515
* @param string $markdown
1616
* @return string $html
1717
*/
18-
public static function parse(string $markdown): string
18+
public static function parse(string $markdown, ?string $sourceModel = null): string
1919
{
20-
return (new MarkdownConverterService($markdown))->parse();
20+
return (new MarkdownConverterService($markdown, $sourceModel))->parse();
2121
}
2222
}

src/StaticPageBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private function compileDocs(): string
117117
return view('hyde::layouts/docs')->with([
118118
'docs' => $this->page,
119119
'title' => $this->page->title,
120-
'markdown' => MarkdownConverter::parse($this->page->body),
120+
'markdown' => MarkdownConverter::parse($this->page->body, DocumentationPage::class),
121121
'currentPage' => Hyde::docsDirectory().'/'.$this->page->slug,
122122
])->render();
123123
}

0 commit comments

Comments
 (0)