Skip to content

Commit cc8b004

Browse files
committed
fix: rename title to heading for clarity and consistency. #693
1 parent 7fc75a2 commit cc8b004

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

core/src/commands/title1.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const title1: ICommand = {
88
shortcuts: 'ctrlcmd+1',
99
prefix: '# ',
1010
suffix: '',
11-
buttonProps: { 'aria-label': 'Insert title1 (ctrl + 1)', title: 'Insert title1 (ctrl + 1)' },
12-
icon: <div style={{ fontSize: 18, textAlign: 'left' }}>Title 1</div>,
11+
buttonProps: { 'aria-label': 'Insert Heading 1 (ctrl + 1)', title: 'Insert Heading 1 (ctrl + 1)' },
12+
icon: <div style={{ fontSize: 18, textAlign: 'left' }}>Heading 1</div>,
1313
execute: (state: ExecuteState, api: TextAreaTextApi) => {
1414
titleExecute({ state, api, prefix: state.command.prefix!, suffix: state.command.suffix });
1515
},

core/src/commands/title2.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const title2: ICommand = {
88
shortcuts: 'ctrlcmd+2',
99
prefix: '## ',
1010
suffix: '',
11-
buttonProps: { 'aria-label': 'Insert title2 (ctrl + 2)', title: 'Insert title2 (ctrl + 2)' },
12-
icon: <div style={{ fontSize: 16, textAlign: 'left' }}>Title 2</div>,
11+
buttonProps: { 'aria-label': 'Insert Heading 2 (ctrl + 2)', title: 'Insert Heading 2 (ctrl + 2)' },
12+
icon: <div style={{ fontSize: 16, textAlign: 'left' }}>Heading 2</div>,
1313
execute: (state: ExecuteState, api: TextAreaTextApi) => {
1414
titleExecute({ state, api, prefix: state.command.prefix!, suffix: state.command.suffix });
1515
},

core/src/commands/title3.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const title3: ICommand = {
88
shortcuts: 'ctrlcmd+3',
99
prefix: '### ',
1010
suffix: '',
11-
buttonProps: { 'aria-label': 'Insert title3 (ctrl + 3)', title: 'Insert title3 (ctrl + 3)' },
12-
icon: <div style={{ fontSize: 15, textAlign: 'left' }}>Title 3</div>,
11+
buttonProps: { 'aria-label': 'Insert Heading 3 (ctrl + 3)', title: 'Insert Heading 3 (ctrl + 3)' },
12+
icon: <div style={{ fontSize: 15, textAlign: 'left' }}>Heading 3</div>,
1313
execute: (state: ExecuteState, api: TextAreaTextApi) => {
1414
titleExecute({ state, api, prefix: state.command.prefix!, suffix: state.command.suffix });
1515
},

core/src/commands/title4.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const title4: ICommand = {
88
shortcuts: 'ctrlcmd+4',
99
prefix: '#### ',
1010
suffix: '',
11-
buttonProps: { 'aria-label': 'Insert title4 (ctrl + 4)', title: 'Insert title4 (ctrl + 4)' },
12-
icon: <div style={{ fontSize: 14, textAlign: 'left' }}>Title 4</div>,
11+
buttonProps: { 'aria-label': 'Insert Heading 4 (ctrl + 4)', title: 'Insert Heading 4 (ctrl + 4)' },
12+
icon: <div style={{ fontSize: 14, textAlign: 'left' }}>Heading 4</div>,
1313
execute: (state: ExecuteState, api: TextAreaTextApi) => {
1414
titleExecute({ state, api, prefix: state.command.prefix!, suffix: state.command.suffix });
1515
},

core/src/commands/title5.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const title5: ICommand = {
88
shortcuts: 'ctrlcmd+5',
99
prefix: '##### ',
1010
suffix: '',
11-
buttonProps: { 'aria-label': 'Insert title5 (ctrl + 5)', title: 'Insert title5 (ctrl + 5)' },
12-
icon: <div style={{ fontSize: 12, textAlign: 'left' }}>Title 5</div>,
11+
buttonProps: { 'aria-label': 'Insert Heading 5 (ctrl + 5)', title: 'Insert Heading 5 (ctrl + 5)' },
12+
icon: <div style={{ fontSize: 12, textAlign: 'left' }}>Heading 5</div>,
1313
execute: (state: ExecuteState, api: TextAreaTextApi) => {
1414
titleExecute({ state, api, prefix: state.command.prefix!, suffix: state.command.suffix });
1515
},

core/src/commands/title6.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const title6: ICommand = {
88
shortcuts: 'ctrlcmd+6',
99
prefix: '###### ',
1010
suffix: '',
11-
buttonProps: { 'aria-label': 'Insert title6 (ctrl + 6)', title: 'Insert title6 (ctrl + 6)' },
12-
icon: <div style={{ fontSize: 12, textAlign: 'left' }}>Title 6</div>,
11+
buttonProps: { 'aria-label': 'Insert Heading 6 (ctrl + 6)', title: 'Insert Heading 6 (ctrl + 6)' },
12+
icon: <div style={{ fontSize: 12, textAlign: 'left' }}>Heading 6</div>,
1313
execute: (state: ExecuteState, api: TextAreaTextApi) => {
1414
titleExecute({ state, api, prefix: state.command.prefix!, suffix: state.command.suffix });
1515
},

0 commit comments

Comments
 (0)