mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-27 19:20:24 +08:00
Partly finished: weibo picbed
This commit is contained in:
9
src/main/utils/pasteTemplate.js
Normal file
9
src/main/utils/pasteTemplate.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export default (style, url) => {
|
||||
const tpl = {
|
||||
'markdown': ``,
|
||||
'HTML': `<img src="${url}"/>`,
|
||||
'URL': url,
|
||||
'UBB': `[IMG]${url}[/IMG]`
|
||||
}
|
||||
return tpl[style]
|
||||
}
|
||||
Reference in New Issue
Block a user