-
Notifications
You must be signed in to change notification settings - Fork 339
Open
Labels
Issue: EpicMega thread (plan) which may involve features, bugs, and tasks.Mega thread (plan) which may involve features, bugs, and tasks.
Milestone
Description
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:
- ๐ Rewrite heading processingย #877
- Math expressions are recognized as setext headingsย #911
- Wrong VS Code slugify: Should parse heading by the same markdown-it engine as VS Code'sย #970
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:
- GitLab: Syntax decorations for code span add unwanted boxes to GitLab inline mathย #713
- Bitbucket: Incorrect preview of nested bulleted listย #1044
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"
]
}
}yzhang-gh
Metadata
Metadata
Assignees
Labels
Issue: EpicMega thread (plan) which may involve features, bugs, and tasks.Mega thread (plan) which may involve features, bugs, and tasks.