Skip to content

Issue: "Cannot read property 'write' of undefined" with specific markdown. #275

@ReLater

Description

@ReLater

Describe the bug
Some files don't load in FM editor if they contain specific markdown for lists.

To Reproduce
Steps to reproduce the behavior:

  • Open a md file in FM Dashboard.
  • Enter following markdown wherever you want inside body of content file.:

- This is a weird list.
- - An item that's indented by 2 "- ".
- - Another item that's indented by 2 "- ".

  • Save the file.

  • Go back to FM Dashboard.

  • Click again on file name.

  • The file tabulator displays the content.

  • The FM sidebar is loading endlessly (3 animated dots).

  • Go to Etensions > "Front Matter"

  • See tab "Runtime Status". Each time you perform the steps above, another entry appears:

Cannot read property 'write' of undefined

Expected behavior
FM sidebar loads even if the markdown code above is to be questioned. TBH: I don't know if that's invalid markdown code. Until today we hadn't issues with it.

Desktop (please complete the following information):

  • OS: Win10
  • VSCode: 1.64.2
  • Front Matter v6.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions