Skip to content

Commit

Permalink
Merge pull request #42 from StephenTangCook/remove-console-log
Browse files Browse the repository at this point in the history
Remove parser console.log
  • Loading branch information
themashcodee authored Sep 13, 2024
2 parents 4c7240d + c10a06f commit f15ba19
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/utils/markdown_parser/parser.tsx
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -70,7 +70,6 @@ export const markdown_parser = (markdown: string, options: Options): ReactNode =
text_string = text_string.replace(/<!channel>/g, "@channel");

const parsed_data = parser.parse(text_string);
console.log({ text_string, parsed_data });

const elements = parsed_data.children as unknown as MarkdownElement[];

Expand Down

0 comments on commit f15ba19

Please sign in to comment.