Skip to content

Conversation

niansi-z
Copy link
Contributor

Description

GitHub-flavored Alerts
Cannot set global custom titles by configuring markdown.container.

// config.ts
export default defineConfig({
  // ...
  markdown: {
    container: {
      infoLabel: '相关信息',
      noteLabel: '注',
      tipLabel: '提示',
      warningLabel: '注意',
      dangerLabel: '危险',
      detailsLabel: '详情',
      importantLabel: '重要',
      cautionLabel: '警告'
    }
  }
  // ...
})

@niansi-z
Copy link
Contributor Author

I didn't understand why GitHub-flavored Alerts say "They will be rendered the same as the custom containers," but it's not possible to modify the global custom titles through the container configuration.

@brc-dd brc-dd merged commit 52f0eaa into vuejs:main Jul 23, 2025
9 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants