Skip to content

Make emmet.syntaxProfiles configuration item to support custom language Id#95

Open
C0DECHEF wants to merge 3 commits into
microsoft:mainfrom
C0DECHEF:feat-enhance-syntaxProfiles
Open

Make emmet.syntaxProfiles configuration item to support custom language Id#95
C0DECHEF wants to merge 3 commits into
microsoft:mainfrom
C0DECHEF:feat-enhance-syntaxProfiles

Conversation

@C0DECHEF

@C0DECHEF C0DECHEF commented Sep 5, 2024

Copy link
Copy Markdown

Make emmet.syntaxProfiles configuration item to support custom language Id. For example:

Previously, if you wanted to modify the final output of Markdown Emmet, you had to configure it like this:

  "emmet.includeLanguages": { "markdown": "html" },
  "emmet.syntaxProfiles": {
    "html": { // modified the html configuration
      "tag_nl": false,
      "tag_nl_leaf": false
    }
  },

Since it modifies the html configuration, the output for the HTML language will also be affected. With this commit, it is now supported:

  "emmet.includeLanguages": { "markdown": "html" },
  "emmet.syntaxProfiles": {
    "markdown": { // only modified the markdown configuration
      "tag_nl": false,
      "tag_nl_leaf": false
    }
  },

This way, only the markdown configuration is modified, and the HTML language configuration will not be affected.

@C0DECHEF

C0DECHEF commented Sep 5, 2024

Copy link
Copy Markdown
Author

@rzhao271 Looking forward to your approval 😀

@C0DECHEF

Copy link
Copy Markdown
Author

Can anyone help approve it 😭

@rzhao271

Copy link
Copy Markdown
Contributor

Hi, thanks for the bump!

Comment thread src/emmetHelper.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants