Actually switch to my fork of lexical-remark

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2023-08-22 23:56:32 +02:00
parent a3bc73ac79
commit 1e2c4788b6
4 changed files with 17 additions and 16 deletions

View File

@ -1,7 +1,7 @@
import { $createImageNode } from '../nodes/image-node';
import type { ImportHandler } from '@mkljczk/lexical-remark';
import type { LexicalNode } from 'lexical';
import type { ImportHandler } from 'lexical-remark';
const importImage: ImportHandler<any> /* TODO */ = (node: LexicalNode, parser) => {
const lexicalNode = $createImageNode({ altText: node.alt ?? '', src: node.url });

View File

@ -14,9 +14,9 @@ import { LinkPlugin } from '@lexical/react/LexicalLinkPlugin';
import { ListPlugin } from '@lexical/react/LexicalListPlugin';
import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin';
import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin';
import { $createRemarkExport, $createRemarkImport } from '@mkljczk/lexical-remark';
import clsx from 'clsx';
import { $createParagraphNode, $createTextNode, $getRoot } from 'lexical';
import { $createRemarkExport, $createRemarkImport } from 'lexical-remark';
import React, { useMemo, useState } from 'react';
import { FormattedMessage } from 'react-intl';