1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-29 00:46:41 +07:00

fix links parsing

This commit is contained in:
Fedor Katurov 2025-02-24 20:30:24 +07:00
parent 2131447939
commit f28f291ac2
8 changed files with 68 additions and 33 deletions

View file

@ -9,7 +9,7 @@ import path from "path";
import hb from "handlebars";
import strip from "strip-markdown";
import { VFileCompatible } from "vfile";
import transformMDLinks from "../../utils/transformMDLinks";
import { transformMDLinks } from "../../utils/links";
const removeFrontmatter = () => (tree) => {
tree.children = tree.children.filter((item) => item.type !== "yaml");

View file

@ -11,7 +11,7 @@ import {
User,
} from "typegram";
import { keys } from "lodash";
import { extractURLs } from "../../../utils/extract";
import { extractURLs } from "../../../utils/links";
import logger from "../../logger";
import Composer from "telegraf";
import { Template } from "../../template";