Giter Site home page Giter Site logo

Comments (12)

zihengCat avatar zihengCat commented on August 14, 2024

@ZvonimirSun
请尝试使用命令行(CLI)提交方式。
$ node src/cli.js <path/to/your/markdown/file>

from bilibili-zhuanlan-markdown-tool.

ZvonimirSun avatar ZvonimirSun commented on August 14, 2024

image
image
没有任何反馈,无论是在win环境还是ubuntu环境,同时也没有上传成功

from bilibili-zhuanlan-markdown-tool.

zihengCat avatar zihengCat commented on August 14, 2024

@ZvonimirSun
诶,真有意思,成功or出错信息都没有...
能借我下cookies配置信息与MD文档么?

from bilibili-zhuanlan-markdown-tool.

ZvonimirSun avatar ZvonimirSun commented on August 14, 2024

链接如下:dl.iszy.me/config.jsondl.iszy.me/Valine评论系统安装.md

from bilibili-zhuanlan-markdown-tool.

zihengCat avatar zihengCat commented on August 14, 2024

@ZvonimirSun
screen shot 2018-07-03 at 17 57 55

问题原因

当初设计这款工具的时候,为了安全考虑,把Markdown外链图片功能关闭了,毕竟B站不对外提供此功能嘛,也不清楚B站后端是怎么设计的。有兴趣可以看一下README.md

解决方案

建议使用内链图片,工具会自动上传本地图片至B站,B站专栏使用图片的标准方式。

![image](./image.png)

from bilibili-zhuanlan-markdown-tool.

ZvonimirSun avatar ZvonimirSun commented on August 14, 2024

新问题来了,我看图片上传成功,但是后面一堆乱码,而且报403什么意思。
image

from bilibili-zhuanlan-markdown-tool.

zihengCat avatar zihengCat commented on August 14, 2024

@ZvonimirSun

问题原因

403 Forbidden(403禁止访问)。
B站的后端做了XSS(跨站脚本攻击)防护,发现用户上传内容页中带<script>标签的,都禁止入库(403)。

解决方案

目标 Markdown 文档中的JS代码块中存在<script>标签,触发了B站防XSS机制,被禁止提交入库。
<script>标签去掉即可。
其实吧,B站专栏目前也没有对用户开放代码块功能......Orz

from bilibili-zhuanlan-markdown-tool.

ZvonimirSun avatar ZvonimirSun commented on August 14, 2024

行吧,还是换成图片比较省事了

from bilibili-zhuanlan-markdown-tool.

ZvonimirSun avatar ZvonimirSun commented on August 14, 2024

提交成功是成功了,最后提交审核完,外链都抹掉了,不知道是不是我搞错了什么

from bilibili-zhuanlan-markdown-tool.

zihengCat avatar zihengCat commented on August 14, 2024

@ZvonimirSun
slice 1
B站专栏不允许用户使用「外部超链接」,通过技术手段绕过了前端限制,在文章审核阶段发现并把外链和谐掉也不是没有可能...
要不用用类似「论文脚注」的引用方式...?如下例:


...
插件安装方式参看外部链接^[1],使用方式参考文档外部链接^[2],xxxxxx
...

参考资料

from bilibili-zhuanlan-markdown-tool.

ZvonimirSun avatar ZvonimirSun commented on August 14, 2024

from bilibili-zhuanlan-markdown-tool.

Yesterday17 avatar Yesterday17 commented on August 14, 2024

至少我在几个月前还是可以使用外链的,并且审核成功x

from bilibili-zhuanlan-markdown-tool.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.