Skip to content

Commit

Permalink
将标题文本从中文更改为英文,并更新下拉菜单选项以移除 H1
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Nov 22, 2024
1 parent 5e2dc34 commit 4fe8009
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MarkdownEditor/editor/tools/ToolBar/BaseBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import { EditorUtils } from '../../utils/editorUtils';
import { getInsertOptions } from '../InsertAutocomplete';

const HeatTextMap = {
1: '主标题',
2: '段标题',
3: '小标题',
1: 'Heading 1',
2: 'Heading 2',
3: 'Heading 3',
};

const LineCode = () => {
Expand Down Expand Up @@ -245,7 +245,7 @@ export const BaseToolBar = observer(
<Dropdown
key="head"
menu={{
items: ['H1', 'H2', 'H3'].map((item, index) => {
items: ['H2', 'H3'].map((item, index) => {
return {
label: HeatTextMap[item.replace('H', '') as '1'] || item,
key: item,
Expand Down

1 comment on commit 4fe8009

@vercel
Copy link

@vercel vercel bot commented on 4fe8009 Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.