mirror of
https://github.com/usememos/memos.git
synced 2025-10-27 14:56:30 +08:00
* feat: support markdown table * chore: update table style * test: for markdown table parse
30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
import CodeBlock from "./CodeBlock";
|
|
import TodoList from "./TodoList";
|
|
import DoneList from "./DoneList";
|
|
import OrderedList from "./OrderedList";
|
|
import UnorderedList from "./UnorderedList";
|
|
import Paragraph from "./Paragraph";
|
|
import Tag from "./Tag";
|
|
import Image from "./Image";
|
|
import Link from "./Link";
|
|
import Mark from "./Mark";
|
|
import Bold from "./Bold";
|
|
import Emphasis from "./Emphasis";
|
|
import PlainLink from "./PlainLink";
|
|
import InlineCode from "./InlineCode";
|
|
import PlainText from "./PlainText";
|
|
import Table from "./Table";
|
|
|
|
export { CODE_BLOCK_REG } from "./CodeBlock";
|
|
export { TODO_LIST_REG } from "./TodoList";
|
|
export { DONE_LIST_REG } from "./DoneList";
|
|
export { TAG_REG } from "./Tag";
|
|
export { IMAGE_REG } from "./Image";
|
|
export { LINK_REG } from "./Link";
|
|
export { MARK_REG } from "./Mark";
|
|
export { TABLE_REG } from "./Table";
|
|
|
|
// The order determines the order of execution.
|
|
export const blockElementParserList = [Table, CodeBlock, TodoList, DoneList, OrderedList, UnorderedList, Paragraph];
|
|
export const inlineElementParserList = [Image, Mark, Bold, Emphasis, Link, InlineCode, PlainLink, Tag, PlainText];
|
|
export const parserList = [...blockElementParserList, ...inlineElementParserList];
|