chore: update memo content formatting and enhance link styling

pull/5038/merge
Steven 2 weeks ago
parent d8f7a4e739
commit 2d4361d5fe

@ -3,7 +3,7 @@ INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(1,'hjnAKZ
INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(2,'a2KkqjW4hyQMUeSRRehRQ5',1,'Ok, I''m able to upload **some images**. #features','PUBLIC','{"tags":["features"]}'); INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(2,'a2KkqjW4hyQMUeSRRehRQ5',1,'Ok, I''m able to upload **some images**. #features','PUBLIC','{"tags":["features"]}');
INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(3,'8x7bm252MAJfGBqW5dHHPE',1,replace('And here are my **tasks**. #todo\n- [x] deploy memos for myself;\n- [ ] share to my friends;\n- [ ] sounds good to me!','\n',char(10)),'PUBLIC','{"tags":["todo"],"property":{"hasTaskList":true,"hasIncompleteTasks":true}}'); INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(3,'8x7bm252MAJfGBqW5dHHPE',1,replace('And here are my **tasks**. #todo\n- [x] deploy memos for myself;\n- [ ] share to my friends;\n- [ ] sounds good to me!','\n',char(10)),'PUBLIC','{"tags":["todo"],"property":{"hasTaskList":true,"hasIncompleteTasks":true}}');
INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(4,'kBfJKAyFvE52kQ9dmSZMfE',1,'Wow, it can be **referenced** too! REALLY GREAT!!! #features','PUBLIC','{"tags":["features"]}'); INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(4,'kBfJKAyFvE52kQ9dmSZMfE',1,'Wow, it can be **referenced** too! REALLY GREAT!!! #features','PUBLIC','{"tags":["features"]}');
INSERT INTO memo (id,uid,creator_id,content,visibility,pinned,payload) VALUES(5,'RF9XnAcWpcBzKttK83zQtf',1,replace('#sponsor **[Warp](https://go.warp.dev/memos)**: A modern terminal reimagined to work with AI, helping developers build faster and more efficiently.\n![Warp](https://raw.githubusercontent.com/warpdotdev/brand-assets/main/Github/Sponsor/Warp-Github-LG-02.png)','\n',char(10)),'PUBLIC',1,'{"tags":["sponsor"],"property":{"hasLink":true}}'); INSERT INTO memo (id,uid,creator_id,content,visibility,pinned,payload) VALUES(5,'RF9XnAcWpcBzKttK83zQtf',1,replace('#sponsor **[Warp](https://go.warp.dev/memos)**: A modern terminal reimagined to work with AI, helping developers build faster and more efficiently.\n[![Warp](https://raw.githubusercontent.com/warpdotdev/brand-assets/main/Github/Sponsor/Warp-Github-LG-02.png)](https://go.warp.dev/memos)','\n',char(10)),'PUBLIC',1,'{"tags":["sponsor"],"property":{"hasLink":true}}');
INSERT INTO memo_relation VALUES(4,1,'REFERENCE'); INSERT INTO memo_relation VALUES(4,1,'REFERENCE');
INSERT INTO reaction VALUES(1,1722097094,1,'memos/4','👍'); INSERT INTO reaction VALUES(1,1722097094,1,'memos/4','👍');
INSERT INTO reaction VALUES(2,1722097100,1,'memos/4','🔥'); INSERT INTO reaction VALUES(2,1722097100,1,'memos/4','🔥');

@ -4,7 +4,7 @@ interface Props {
} }
const Image: React.FC<Props> = ({ altText, url }: Props) => { const Image: React.FC<Props> = ({ altText, url }: Props) => {
return <img src={url} alt={altText} decoding="async" loading="lazy" />; return <img className="rounded" src={url} alt={altText} decoding="async" loading="lazy" />;
}; };
export default Image; export default Image;

@ -47,7 +47,7 @@ const Link: React.FC<Props> = ({ content, url }: Props) => {
<Tooltip open={showTooltip}> <Tooltip open={showTooltip}>
<TooltipTrigger asChild> <TooltipTrigger asChild>
<a <a
className="underline text-primary hover:text-primary/80" className="underline text-primary hover:opacity-80 transition-all"
target="_blank" target="_blank"
href={url} href={url}
rel="noopener noreferrer" rel="noopener noreferrer"

Loading…
Cancel
Save