This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import remarkMath from "npm:remark-math"; | |
import remarkParse from "npm:remark-parse"; | |
import { unified } from "npm:unified"; | |
import { type MessageEntity } from "npm:grammy/types"; | |
// @deno-types="npm:@types/mdast" | |
import type { RootContent } from "npm:mdast"; | |
export function mdV2(markdown: string) { | |
const processor = unified().use(remarkParse).use(remarkMath); |