UNPKG

@terrible-lexical/code

Version:

This package contains the functionality for the code blocks and code highlighting for Lexical.

33 lines (31 loc) 822 B
/** @module @terrible-lexical/code */ /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ export { getEndOfCodeInLine, getStartOfCodeInLine, PrismTokenizer, registerCodeHighlighting, } from './CodeHighlighter'; export { $createCodeHighlightNode, $isCodeHighlightNode, CODE_LANGUAGE_FRIENDLY_NAME_MAP, CODE_LANGUAGE_MAP, CodeHighlightNode, DEFAULT_CODE_LANGUAGE, getCodeLanguages, getDefaultCodeLanguage, getFirstCodeNodeOfLine, getLanguageFriendlyName, getLastCodeNodeOfLine, normalizeCodeLang, } from './CodeHighlightNode'; export type {SerializedCodeNode} from './CodeNode'; export {$createCodeNode, $isCodeNode, CodeNode} from './CodeNode';