@foblex/m-render 2.7.4 → 2.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1668,7 +1668,7 @@ class MarkdownService {
|
|
|
1668
1668
|
_httpClient = inject(HttpClient);
|
|
1669
1669
|
_domSanitizer = inject(DomSanitizer);
|
|
1670
1670
|
_router = inject(Router);
|
|
1671
|
-
_provider = inject(F_PREVIEW_NAVIGATION_PROVIDER);
|
|
1671
|
+
_provider = inject(F_PREVIEW_NAVIGATION_PROVIDER, { optional: true });
|
|
1672
1672
|
constructor() {
|
|
1673
1673
|
this._markdown
|
|
1674
1674
|
.use((x) => new ParseSingleCodeItem().render(x))
|
|
@@ -1679,7 +1679,7 @@ class MarkdownService {
|
|
|
1679
1679
|
.use(...new ParseAlerts().render(EMarkdownContainerType.ALERT_DANGER, this._markdown))
|
|
1680
1680
|
.use(...new ParseAlerts().render(EMarkdownContainerType.ALERT_SUCCESS, this._markdown))
|
|
1681
1681
|
.use(...new ParseGroupedCodeItems().render())
|
|
1682
|
-
.use(...new ParsePreviewGroup(this._provider
|
|
1682
|
+
.use(...new ParsePreviewGroup(this._provider?.getNavigation() || []).render())
|
|
1683
1683
|
.use(...new ParseAngularExampleWithCodeLinks().render());
|
|
1684
1684
|
}
|
|
1685
1685
|
parse(src) {
|