( editor: Editor, type: HeadingType, )
| 58 | } |
| 59 | |
| 60 | export const getStyle = ( |
| 61 | editor: Editor, |
| 62 | type: HeadingType, |
| 63 | ): Record<HeadingFontStyleName, string> => { |
| 64 | const { style = defaultStyle } = getOptions(editor) |
| 65 | return style[type] ?? defaultStyle[type] |
| 66 | } |
| 67 | |
| 68 | const defaultTextMark: HeadingTextMark = { |
| 69 | fontSize: 'fontSize', |
no test coverage detected
searching dependent graphs…