Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

filePath should be escaped for markdown in notifications #117

Open
@ruv

Description

@ruv

File name can be shown incorrectly in notification. The sequence \. is turned into . — for example, it is read as "\Users\user.atom\packages" instead of "\Users\user.atom\packages".

The issue is that atom.notifications.addError function interprets message as in Markdown markup. So, filePath should be properly escaped in a code like:

atom.notifications?.addError("Failed to load snippets from '#{filePath}'", {detail: error.message, dismissable: true})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions