import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./cache-DUthuMSu.mjs";import{t as n}from"./rss-parser-CtkSf1Et.mjs";import{load as r}from"cheerio";const i={path:`/blog`,categories:[`programming`],example:`/zed/blog`,url:`zed.dev`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`zed.dev`],target:`/blog`}],name:`Blog`,maintainers:[`cscnk52`],handler:a,description:`Provides a better reading experience (full articles) over the official ones.`,view:5};async function a(){let i=await n.parseURL(`https://zed.dev/blog.rss`),a=await Promise.all(i.items.map(n=>t.tryGet(n.link,async()=>{let t=r(await e(n.link))(`article`);return t.find(`style`).remove(),t.find(`[style]`).removeAttr(`style`),t.find(`[class]`).removeAttr(`class`),t.find(`[id]`).removeAttr(`id`),t.find(`[preload]`).removeAttr(`preload`),t.find(`script`).remove(),t.find(`figcaption`).remove(),t.find(`aside`).remove(),n.content=t.html(),{title:n.title,link:n.link,description:n.content,pubDate:n.pubDate,author:n.creator}})));return{title:i.title,link:i.link,description:i.description,item:a,language:`en`}}export{i as route};