chore: use markdown image syntax (#83)

This commit is contained in:
Steven
2022-06-21 22:14:52 +08:00
committed by GitHub
parent 9f81362027
commit f80f0f2422
10 changed files with 16 additions and 16 deletions

View File

@ -23,7 +23,7 @@ const Memo: React.FC<Props> = (props: Props) => {
createdAtStr: utils.getDateTimeString(propsMemo.createdTs),
};
const [showConfirmDeleteBtn, toggleConfirmDeleteBtn] = useToggle(false);
const imageUrls = Array.from(memo.content.match(IMAGE_URL_REG) ?? []);
const imageUrls = Array.from(memo.content.match(IMAGE_URL_REG) ?? []).map((s) => s.replace(IMAGE_URL_REG, "$1"));
const handleShowMemoStoryDialog = () => {
showMemoCardDialog(memo);