mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: get markdown image from backend (#581)
This commit is contained in:
@ -146,10 +146,12 @@ const Memo: React.FC<Props> = (props: Props) => {
|
||||
const imageUrls =
|
||||
memo.content.match(/!\[.*?\]\((.*?)\)/g)?.map(
|
||||
(item) =>
|
||||
`/o/get/image?url=${
|
||||
item
|
||||
.match(/\((.*?)\)/g)
|
||||
?.slice(-1)[0]
|
||||
.slice(1, -1) ?? ""
|
||||
}`
|
||||
) ?? [];
|
||||
showPreviewImageDialog(
|
||||
imageUrls,
|
||||
|
Reference in New Issue
Block a user