chore(ckeditor5/plugins): integrate markdown inline

This commit is contained in:
Elian Doran 2025-05-03 17:22:49 +03:00
parent 2f09411c0d
commit a44eaeaf10
No known key found for this signature in database
4 changed files with 6 additions and 5 deletions

View File

@ -17,6 +17,7 @@ declare global {
getHeaders(): Promise<Record<string, string>>;
getReferenceLinkTitle(href: string): Promise<string>;
getReferenceLinkTitleSync(href: string): string;
importMarkdownInline(): void;
}
}

View File

@ -9,6 +9,7 @@ import ReferenceLink from "./plugins/referencelink.js";
import RemoveFormatLinksPlugin from "./plugins/remove_format_links.js";
import SpecialCharactersEmojiPlugin from "./plugins/special_characters_emoji.js";
import IndentBlockShortcutPlugin from "./plugins/indent_block_shortcut.js";
import MarkdownImportPlugin from "./plugins/markdownimport.js";
const TRILIUM_PLUGINS: typeof Plugin[] = [
CutToNotePlugin,
@ -19,7 +20,8 @@ const TRILIUM_PLUGINS: typeof Plugin[] = [
InternalLinkPlugin,
RemoveFormatLinksPlugin,
SpecialCharactersEmojiPlugin,
IndentBlockShortcutPlugin
IndentBlockShortcutPlugin,
MarkdownImportPlugin
];
export const COMMON_PLUGINS: typeof Plugin[] = [
@ -77,7 +79,6 @@ export const COMMON_PLUGINS: typeof Plugin[] = [
SpecialCharactersEssentials,
FindAndReplace,
Mention,
// MarkdownImportPlugin,
// MentionCustomization,
// IncludeNote,
PageBreak,

View File

@ -1,6 +1,5 @@
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import markdownIcon from './icons/markdown-mark.svg';
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
import { ButtonView, Plugin } from 'ckeditor5';
import markdownIcon from '../icons/markdown-mark.svg?raw';
export default class MarkdownImportPlugin extends Plugin {
init() {