Skip to content

[Bug] Incorrect Docker icon assigned to .md files starting with "Dockerfile" #4890

Closed

Description

@IzayoiAster

Description

Markdown files prefixed with "Dockerfile" (e.g., Dockerfile-Notes.md) are mistakenly rendered with a Docker icon in the sidebar instead of the standard Markdown icon.

Steps to Reproduce

  1. Create a file named Dockerfile-Notes.md in current folder.
  2. Look at the sidebar.
  3. Observe that the file displays a Docker icon instead of a Markdown icon.

Expected Behavior

Should check file extensions strictly so that .md files always display the Markdown icon, regardless of their prefix.

Actual Behavior

The file Dockerfile-Notes.md displays a Docker icon.

Screenshots / Logs

Image

Operating System

Windows

MarkText Version

v0.20.0-rc.1

OS Version

Windows 11

Reproducibility

  • I can reliably reproduce this issue

Activity

  1. added a commit that references this issue on Sep 7, 2026
    8763c35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions