mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-11 19:53:50 +08:00
opt: optimize markdown image parser, identify image and blockquote tags
This commit is contained in:
@@ -161,3 +161,8 @@ export function substr(str, length) {
|
||||
return result
|
||||
}
|
||||
|
||||
export function isImage(url) {
|
||||
const expr = /\.(jpg|jpeg|png|gif|bmp|svg)$/i;
|
||||
return expr.test(url);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user