Skip to content

Definitive "document mode"ย #1045

@Lemmingh

Description

@Lemmingh

Background

Here are two stories.

Internal disorder is blocking new features and bug fixes

I tried to draft a "plugin system" (substantially a huge architecture change) earlier this year, but couldn't make any progress due to mismatches between components.

The "plugin system" was intended to fix some bugs discussed in:

We still have to deal with different Markdown flavors

Although we declare our focus on CommonMark and GFM, the reality of Markdown is wild. There are so many syntax extensions on major platforms that we cannot simply ignore them.

Examples:

Proposal

A new setting, probably called "document mode" (document.mode), governing many other settings.

Let's begin with:

{
    "markdown.extension.document.mode": {
        "type": "string",
        "default": "github",
        "markdownDescription": "Lock other settings to meet a specific platform. If you need to change each setting individually, please use `vscode`. See the [docs](https://markdown-all-in-one.github.io/docs/guide/document-mode.html) for details.",
        "enum": [
            "github",
            "commonmark",
            "gitlab",
            "vscode"
        ],
        "enumDescriptions": [
            "GitHub",
            "CommonMark",
            "GitLab",
            "Visual Studio Code"
        ]
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: EpicMega thread (plan) which may involve features, bugs, and tasks.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions