PolyAlgebra can only be edited in advanced mode.
+PolyAlgebra can only be edited in + advanced mode.
@@ -49,14 +51,18 @@Open the context menu to add or remove nodes @@ -122,4 +131,4 @@
'; + }; + + const defaultLinkRenderer = renderer.link.bind(renderer); + renderer.link = (href, title, text) => { + const link = defaultLinkRenderer(href, title, text); + return link.startsWith(' { + href = `${baseUrl}/${href}`; + return defaultImageRenderer(href, title, text); + }; + + this._markdown.renderer = renderer; + } } export type NbMode = 'edit' | 'command'; diff --git a/src/app/plugins/notebooks/components/edit-notebook/nb-cell/nb-cell.component.html b/src/app/plugins/notebooks/components/edit-notebook/nb-cell/nb-cell.component.html index 132a56c0..d0e67f48 100644 --- a/src/app/plugins/notebooks/components/edit-notebook/nb-cell/nb-cell.component.html +++ b/src/app/plugins/notebooks/components/edit-notebook/nb-cell/nb-cell.component.html @@ -2,7 +2,7 @@ tabindex="-1">' + text + '