Tencent / Tencent/cherry-markdown

还是关于主题参数配置

Open
#892 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
4.9k
Forks
572
Avg merge
17h 5m
Merged PRs (30d)
14

Description

请问mainTheme、codeBlockTheme、inlineCodeTheme、toolbarTheme这些参数的选项,只能从上面themeList列表里面选择吗?例如代码主题里面有one-dark、coy这两个主题,但是themeList里面并没有这两个主题,这要怎么操作?如果不是从themeList里面选,其他的参数为什么没有一个list?

themeSettings: {
    themeList: [
      { className: 'default', label: '默认' },
      { className: 'dark', label: '暗黑' },
      { className: 'light', label: '明亮' },
      { className: 'green', label: '清新' },
      { className: 'red', label: '热情' },
      { className: 'violet', label: '淡雅' },
      { className: 'blue', label: '清幽' },
    ],
    mainTheme: 'light',
    codeBlockTheme: 'default',
    inlineCodeTheme: 'red', // red or black
    toolbarTheme: 'dark', // light or dark 优先级低于mainTheme
  },

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the themeSettings example in the issue, especially themeList, mainTheme, codeBlockTheme, inlineCodeTheme, and toolbarTheme. Check the configuration source or existing documentation to determine whether values such as one-dark and coy are supported outside themeList. Done means the accepted values and selection rules are documented clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.