Skip to content

"Exporting as markdown" for a note with a broken image results in an exception #2793

@MiloTodt

Description

@MiloTodt

Current behaviour

image

the folder for attachments is created with a 0bit file in it, the .md is not saved.

Expected behavior

As it is valid markdown syntax the file should save with it instead of throwing an exception and not saving. User's responsibility to provide good links of their own content.

Steps to reproduce

  1. Create a new note and paste this in:
![This file doesn't actually exist](:storage\Bad link on puropse)
  1. File->export as-> markdown

Environment

  • Version : 3.0.8, master branch.
  • Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Issue concerns a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions