Skip to content

Markdown Code fails to indent consistently #185

@Dudecor3

Description

@Dudecor3

When I'm using the module and writing code blocks within markdown, it will sometimes display the code properly (with indents) and sometimes without. Example below:

@Component({
    selector: 'app-mobile-navigation',
    templateUrl: './mobile-navigation.component.html',
    styleUrls: ['./mobile-navigation.component.scss']
})
export class MobileNavigationComponent{}

Sometimes it will render this way, however sometimes it will render without the indentation

@Component({
selector: 'app-mobile-navigation',
templateUrl: './mobile-navigation.component.html',
styleUrls: ['./mobile-navigation.component.scss']
})
export class MobileNavigationComponent{}

I'll attach some images
image

image

Browser: Version 79.0.3945.88 (Official Build) (64-bit)
Angular:

    "@angular/animations": "~8.2.9",
    "@angular/common": "~8.2.9",
    "@angular/compiler": "~8.2.9",
    "@angular/core": "~8.2.9",
    "@angular/forms": "~8.2.9",
    "@angular/platform-browser": "~8.2.9",
    "@angular/platform-browser-dynamic": "~8.2.9",
    "@angular/pwa": "^0.803.20",
    "@angular/router": "~8.2.9",
    "@angular/service-worker": "~8.2.9",

ngx-md version: "^8.0.0"

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