网站建设中,中国大陆地区请使用VPN访问,欢迎提建议,关注LSKR Mastodon

typora配置sm.ms图库,解决文章分享问题

利用sm.ms图床的API Token,设置typora和上传图片,解决markdown不能分享问题。
typora图库教程

问题描述

Markdown 是易于编写的,内容格式化标准简单,但是存在一个严重的问题。无法直接分享文章,原因是Markdown 文件的内容和图片是分开的,无法直接保存在同一个文件中。

前提准备 

需要有sm.ms的一个API Token(大陆用户请使用smms.app 代替)。

设置图库 

打开typora后,文件>偏好设置>图片,点击下载或更新,安装PicGo-Core插件。

 
点击打开配置文件,复制API Token Token字段
{
  "picBed": {
    "current": "smms",
    "smms": {
      "token": "" // 使用API key
    }
  },
  "picgoPlugins": {}
}
点击验证图片上传选项
请仔细检查API Token粘贴位置是否正确。国内出现:验证失败问题,请使用smms.app图床代替

上传设置 

勾选
  • 对本地位置的图片应用上述规则(本地图片的自动会上传到你的图床)
  • 对网络位置的图片应用上述规则(复制网络路径的图片也会上传到你的图床)
  • 插入时自动转义图片的URL(自定义URL)

 
请注意重启typora
sm.ms需要科学上网才能访问。大陆地区请使用smms.app网址的内容作为代替

إرسال تعليق

Cookie Consent
我们使用 Cookie 来了解您如何使用我们的网站并提升您的体验。这包括个性化内容和广告。
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.