/** * codemirror-obsidian-mode * * Obsidian-style Live Preview mode for CodeMirror 6 * * @packageDocumentation */ // Core export { collapseOnSelectionFacet } from './core/facets'; export { markdownModeFacet } from './core/facets'; export type { MarkdownMode } from './core/facets'; export { mouseSelectingField, setMouseSelecting } from './core/mouseSelecting'; export { shouldShowSource } from './core/shouldShowSource'; export { checkUpdateAction } from './core/pluginUpdateHelper'; export type { UpdateAction } from './core/pluginUpdateHelper'; // Plugins export { livePreviewPlugin } from './plugins/livePreview'; export { markdownStylePlugin } from './plugins/markdownStyle'; export { mathPlugin, blockMathField } from './plugins/math'; export { tableField } from './plugins/table'; export { tableEditorPlugin, tableEditorField, setTableSourceMode } from './plugins/tableEditor'; export { codeBlockField, codeBlockEditorPlugin, setCodeBlockSourceMode } from './plugins/codeBlock'; export type { CodeBlockEditorOptions, CodeBlockOptions } from './plugins/codeBlock'; export { imageField } from './plugins/image'; export type { ImageOptions } from './plugins/image'; export { linkPlugin } from './plugins/link'; export type { LinkOptions } from './plugins/link'; // Theme export { editorTheme, darkEditorTheme } from './theme/default'; export { listPlugin } from './plugins/list'; export { editorInteractions } from './core/interactions'; export { obsidianMarkdown } from './syntax/obsidian'; export { calloutPlugin } from './plugins/callout'; export { footnotePlugin } from './plugins/footnote'; export { liveMarkdown } from './setup'; export type { LiveMarkdownOptions } from './setup'; export { toggleInlineFormat, toggleBold, toggleItalic, toggleStrikethrough, toggleInlineCode, toggleHighlight, insertLink, toggleTask, insertTable, markdownFormattingKeymap, } from './commands'; export { getDocumentOutline } from './outline'; export type { Heading } from './outline'; export { initMathRenderer } from './utils/mathCache'; export { wikiLinkCompletion, wikiLinkAutocomplete } from './completion'; export type { WikiLinkTarget, WikiLinkSource } from './completion'; export type { MathRenderer } from './utils/mathCache'; export { attachmentPlugin } from './attachments'; export type { AttachmentOptions } from './attachments'; export { codePreviewPlugin } from './plugins/codePreview'; export type { CodeRenderer } from './plugins/codePreview'; // Utils export { renderMath, clearMathCache } from './utils/mathCache'; export { highlightCode, highlightCodeHast, registerLanguage, isLanguageRegistered, initHighlighter, isHighlighterAvailable, } from './utils/codeHighlight'; export type { HighlightResult } from './utils/codeHighlight'; export { loadImage, preloadImages, clearImageCache, resolveImagePath } from './utils/imageLoader'; export type { LoadedImage, LoadImageOptions } from './utils/imageLoader'; // Re-export types from CodeMirror for convenience export type { Extension } from '@codemirror/state'; export type { EditorView } from '@codemirror/view';