8000 Preview button is not working · Issue #78 · ghiscoding/angular-markdown-editor · GitHub
[go: up one dir, main page]

Skip to content
Preview button is not working #78
Closed
@SDAdham

Description

@SDAdham

Describe the bug

There are no errors, no warnings, nothing. And the preview does open but it's blank!

I tried to take as much as I can from https://github.com/ghiscoding/angular-markdown-editor/blob/master/src/app/template/template.component.ts

I have a feeling that your library is still on the old version of ngx-markdown maybe? the only difference between my work and yours is MARKED_OPTIONS instead of MarkedOptions in module imports (forRoot) that you have.

Reproduction

importProvidersFrom(
      MarkdownModule.forRoot({
        loader: HttpClient,
        markedOptions: {
          provide: MARKED_OPTIONS,
          useValue: {
            gfm: true,
            breaks: false,
            pedantic: false,
            smartLists: true,
            smartypants: false
          }
        }
      }),
      AngularMarkdownEditorModule.forRoot({ iconlibrary: 'fa' })
)

The rest is from the template and documentation.

Environment Info

Angular 19.2.10
angular-markdown-editor 3.1.1

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0