From c10a06f6e4e88d9ed30bdea279d49b03be8d361c Mon Sep 17 00:00:00 2001 From: Stephen Date: Thu, 12 Sep 2024 16:39:46 -0700 Subject: [PATCH] remove parser console.log --- src/utils/markdown_parser/parser.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/utils/markdown_parser/parser.tsx b/src/utils/markdown_parser/parser.tsx index 2029d73..5d5c562 100644 --- a/src/utils/markdown_parser/parser.tsx +++ b/src/utils/markdown_parser/parser.tsx @@ -1,16 +1,16 @@ import YozoraParser from "@yozora/parser"; -import { MarkdownElement } from "./types"; -import { Blockquote, Paragraph, Code } from "./elements"; +import { ReactNode } from "react"; import { GlobalStore } from "../../store"; +import { Blockquote, Code, Paragraph } from "./elements"; import { - SlackUserMentionTokenizer, - SlackChannelMentionTokenizer, - SlackUserGroupMentionTokenizer, SlackBroadcastTokenizer, + SlackChannelMentionTokenizer, SlackDateTokenizer, SlackEmojiTokenizer, + SlackUserGroupMentionTokenizer, + SlackUserMentionTokenizer, } from "./tokenizers"; -import { ReactNode } from "react"; +import { MarkdownElement } from "./types"; const parser = new YozoraParser() .unmountTokenizer("@yozora/tokenizer-list") @@ -70,7 +70,6 @@ export const markdown_parser = (markdown: string, options: Options): ReactNode = text_string = text_string.replace(//g, "@channel"); const parsed_data = parser.parse(text_string); - console.log({ text_string, parsed_data }); const elements = parsed_data.children as unknown as MarkdownElement[];