Partly finished: weibo picbed

This commit is contained in:
Molunerfinn
2017-11-28 23:56:15 +08:00
parent 3814125986
commit 4dd6586cb4
9 changed files with 318 additions and 50 deletions

View File

@@ -0,0 +1,9 @@
export default (style, url) => {
const tpl = {
'markdown': `![](${url})`,
'HTML': `<img src="${url}"/>`,
'URL': url,
'UBB': `[IMG]${url}[/IMG]`
}
return tpl[style]
}