Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[src] dont take syntax of markdown #83

Closed
Aw3same opened this issue Jul 10, 2018 · 1 comment
Closed

[src] dont take syntax of markdown #83

Aw3same opened this issue Jul 10, 2018 · 1 comment

Comments

@Aw3same
Copy link

Aw3same commented Jul 10, 2018

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

@Aw3same Aw3same closed this as completed Jul 10, 2018
@Aw3same Aw3same reopened this Jul 10, 2018
@Aw3same
Copy link
Author

Aw3same commented Jul 10, 2018

Fixed, it was a problem with general styles

@jfcere jfcere closed this as completed Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants