UNPKG

@atlaskit/editor-plugin-code-block-advanced

Version:

CodeBlockAdvanced plugin for @atlaskit/editor-core

16 lines (15 loc) 734 B
import { HighlightStyle } from '@codemirror/language'; import type { Language } from '@codemirror/language'; export declare const highlightStyle: HighlightStyle; /** * Prismjs (renderer) and codemirror (editor) tokenise slightly differently, * Occasionally we may want to override tokens for certain languages to * get closer to renderer. * * Note the way that codemirror works - these styles get added on top of the styling above * (and override existing tags). * * @param language Codemirror language to scope the changes to a specific language * @returns Highlight style which can be used with the syntax highlighting extension */ export declare const languageStyling: (language: Language) => HighlightStyle | undefined;