Skip to content

Commit f991c91

Browse files
authoredOct 4, 2023
feat(theme): add t.strong to existing style to cope with emboldened text (e.g. **bold** in GitHub markdown) (#587)
Co-authored-by: cleverlight <cleverlight@users.noreply.github.com>
1 parent 24285de commit f991c91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎themes/github/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const githubLightInit = (options?: Partial<CreateThemeOptions>) => {
2929
{ tag: [t.keyword, t.typeName, t.typeOperator, t.typeName], color: '#d73a49' },
3030
{ tag: [t.string, t.meta, t.regexp], color: '#032f62' },
3131
{ tag: [t.name, t.quote], color: '#22863a' },
32-
{ tag: [t.heading], color: '#24292e', fontWeight: 'bold' },
32+
{ tag: [t.heading, t.strong], color: '#24292e', fontWeight: 'bold' },
3333
{ tag: [t.emphasis], color: '#24292e', fontStyle: 'italic' },
3434
{ tag: [t.deleted], color: '#b31d28', backgroundColor: 'ffeef0' },
3535
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#e36209' },
@@ -69,7 +69,7 @@ export const githubDarkInit = (options?: Partial<CreateThemeOptions>) => {
6969
{ tag: [t.keyword, t.typeName, t.typeOperator, t.typeName], color: '#ff7b72' },
7070
{ tag: [t.string, t.meta, t.regexp], color: '#a5d6ff' },
7171
{ tag: [t.name, t.quote], color: '#7ee787' },
72-
{ tag: [t.heading], color: '#d2a8ff', fontWeight: 'bold' },
72+
{ tag: [t.heading, t.strong], color: '#d2a8ff', fontWeight: 'bold' },
7373
{ tag: [t.emphasis], color: '#d2a8ff', fontStyle: 'italic' },
7474
{ tag: [t.deleted], color: '#ffdcd7', backgroundColor: 'ffeef0' },
7575
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#ffab70' },

0 commit comments

Comments
 (0)
Please sign in to comment.