You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm trying to display a markdown in my angular 6 app. I'm using the basic configuration of this plugin and follow the steps in the readme , and it works, but the app shows the text without style. I mean, I want to displays this:
## My header
**my text**
like this :
My header
my text
But I can only show it like this, in plain text:
My header
my text
Also, it doesn't take either the headings or any of the markdown tags. what i'm doing wrong ? this is my code:
html <markdown ngPreserveWhitespaces [src]="'./assets/md/faqs.md'" ></markdown>
module.ts
import { NgModule } from '@angular/core';
import { FaqsComponent } from './faqs.component';
import { routing } from './faqs.routing';
import { HttpClientModule, HttpClient } from '@angular/common/http';
import { MarkdownModule, MarkedOptions, MarkedRenderer } from 'ngx-markdown';
@NgModule({
imports: [
HttpClientModule,
MarkdownModule.forRoot({
loader: HttpClient
}),
routing
],
declarations: [
FaqsComponent
],
providers: [],
})
export class FaqsModule {
}
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hi! I'm trying to display a markdown in my angular 6 app. I'm using the basic configuration of this plugin and follow the steps in the readme , and it works, but the app shows the text without style. I mean, I want to displays this:
like this :
My header
my text
But I can only show it like this, in plain text:
My header
my text
Also, it doesn't take either the headings or any of the markdown tags. what i'm doing wrong ? this is my code:
html
<markdown ngPreserveWhitespaces [src]="'./assets/md/faqs.md'" ></markdown>
module.ts
Thanks in advance
The text was updated successfully, but these errors were encountered: