fix: Remove image float and positioning options in comments (#5014)

* cleanup

* Split Image into SimpleImage

* ts
This commit is contained in:
Tom Moor
2023-03-09 22:17:16 -05:00
committed by GitHub
parent 8fc4cb846a
commit e786888dfb
17 changed files with 764 additions and 609 deletions

View File

@@ -43,6 +43,7 @@ import Node from "./Node";
import Notice from "./Notice";
import OrderedList from "./OrderedList";
import Paragraph from "./Paragraph";
import SimpleImage from "./SimpleImage";
import Table from "./Table";
import TableCell from "./TableCell";
import TableHeadCell from "./TableHeadCell";
@@ -60,7 +61,7 @@ export const basicExtensions: Nodes = [
Paragraph,
Emoji,
Text,
Image,
SimpleImage,
Bold,
Code,
Italic,
@@ -83,7 +84,8 @@ export const basicExtensions: Nodes = [
* editors that need advanced formatting.
*/
export const richExtensions: Nodes = [
...basicExtensions,
...basicExtensions.filter((n) => n !== SimpleImage),
Image,
HardBreak,
CodeBlock,
CodeFence,