mark down图片上传博客失败解决方法

1 · · Feb. 26, 2022, 8:46 a.m.
第一种修改属性值打开博客所在的文件夹,找到_config.yml文件,修改post_asset_folder的值为 true每次执行hexo n “文件名”命令,文件所在文件夹同时创建一个与同名文件执行时的文件夹,就可以把文件找寻这个文件夹内。打开你的 md 文件,使用标签插件来插入同名文件夹内代码的图片![图片描述](/md文件夹名字/name.jpg)如果不能正常显示则往下看第二种安装插件在目录 blog 调用 git bash输入命令npm install https://github.com/CodeFalling/hexo-asset-image --save找到/node_modules/hexo-asset-image/index.js文件,修改文件内容'use strict';var cheerio = require('cheerio');// http://stackoverflow.com/questions/14480345/how-to-get-the-nth-occurrence-in-a-stringfunction getPosition(str, m,...