Skip to content

Feature: Detect/disambiguate source file content type correctly #2569

@stanislaw

Description

@stanislaw

Description

While working on support for the ST (Structured Text) format, it became clear that StrictDoc's detection is too simple to distinguish between languages or markup formats that share the same extension.

The immediate example: .st (Structured Text) and .st (Smalltalk).

Problem

The users will run into a situation at some point where they will need to disambiguate the content types strongly.

Solution

Either:

  • Implement a custom detection mechanism where the source files are read and matched with known regexes.
  • Find a good and fast Python/Rust library that does it well enough.

Additional Information

This ticket will be worked on when a serious conflict between extensions is detected and the feature is requested by one or more users.

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