Skip to content

Commit c432382

Browse files
committed
Use alternative markdown component till issue is resolved: dimpu/ngx-md#159
1 parent ef72421 commit c432382

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Diff for: angular.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"scripts": [
2929
"node_modules/moment/min/moment.min.js",
3030
"node_modules/bootstrap-material-design/dist/js/material.min.js",
31-
"node_modules/bootstrap-material-design/dist/js/ripples.min.js"
31+
"node_modules/bootstrap-material-design/dist/js/ripples.min.js",
32+
"node_modules/marked/lib/marked.js"
3233
]
3334
},
3435
"configurations": {

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"core-js": "^2.5.4",
3434
"moment": "^2.19.3",
3535
"ngx-clipboard": "^11.1.9",
36-
"ngx-md": "^6.0.9",
36+
"ngx-markdown": "^6.3.0",
3737
"ngx-order-pipe": "^2.0.1",
3838
"rxjs": "^6.3.3",
3939
"rxjs-tslint": "^0.1.5",

Diff for: src/app/app.module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
44
import { ReactiveFormsModule } from '@angular/forms';
55
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http';
6-
import { NgxMdModule } from 'ngx-md';
6+
import { MarkdownModule } from 'ngx-markdown';
77
import { HTTP_INTERCEPTORS } from '@angular/common/http';
88

99
import { LoginModule } from './login/login.module';
@@ -36,7 +36,7 @@ import { DockerConfigComponent } from './catalog/plugins/docker/docker.component
3636
}),
3737
AppRoutingModule,
3838
LoginModule,
39-
NgxMdModule.forRoot(),
39+
MarkdownModule.forRoot(),
4040
BrowserAnimationsModule,
4141
MyAppliancesModule,
4242
PluginsModule

Diff for: src/app/catalog/plugins/docker/docker.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ <h4><strong>Configure: {{ selectedRepoDetail.name }}</strong></h4>
3333
<hr />
3434

3535
<div class="col-md-6" style="text-overflow: ellipsis; overflow: scroll; white-space: wrap; max-height: 500px">
36-
<ngx-md >
36+
<markdown>
3737
{{ selectedRepoDetail.full_description }}
38-
</ngx-md>
38+
</markdown>
3939
</div>
4040
<div class="col-md-6" style="height: 100%; max-height: 500px">
4141
<pre style="height: 100%; max-height: 500px">

Diff for: src/app/catalog/plugins/plugins.module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { CloudMan2ConfigComponent } from './cloudman2/cloudman2.component';
1818
import { GVLConfigComponent } from './gvl/gvl.component';
1919
import { DockerConfigComponent } from './docker/docker.component';
2020
import { DockerFileEditorComponent } from './docker/components/docker-file-editor.component';
21-
import { NgxMdModule } from 'ngx-md';
21+
import { MarkdownModule } from 'ngx-markdown';
2222

2323
@NgModule({
2424
imports: [
@@ -34,7 +34,7 @@ import { NgxMdModule } from 'ngx-md';
3434
MatCheckboxModule,
3535
MatTooltipModule,
3636
LayoutModule,
37-
NgxMdModule
37+
MarkdownModule
3838
],
3939
declarations: [UbuntuConfigComponent, CloudManConfigComponent, CloudMan2ConfigComponent,
4040
GVLConfigComponent, DockerConfigComponent, DockerFileEditorComponent],

0 commit comments

Comments
 (0)