From f8dcc5e29903542f06a8c3531cd55e467b8d58ba Mon Sep 17 00:00:00 2001 From: yaozm Date: Thu, 11 Apr 2024 15:44:17 +0800 Subject: [PATCH] style(feed): improve feed command output format - Improved the feed command output format by updating the HTML structure - Changed the link presentation to be more organized --- .gitignore | 1 + app/Commands/FeedCommand.php | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 958bd9bbb93..53fdcc9f0e4 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ node_modules/ package-lock.json .ai-commit.json /eza.png +/tests.* diff --git a/app/Commands/FeedCommand.php b/app/Commands/FeedCommand.php index ea4016df3d1..cf7d98221b2 100644 --- a/app/Commands/FeedCommand.php +++ b/app/Commands/FeedCommand.php @@ -55,8 +55,13 @@ static function (Collection $carry, string $line) use (&$date): Collection { 'title' => $title = (string) $line->match('/\[.*\]/')->trim('[]'), 'link' => $link = (string) $line->match('/\(.*\)/')->trim('()'), 'content' => <<$title - https://github.com/guanguans/favorite-link +
+

$title

+
+ HTML, ]); },