Giter Site home page Giter Site logo

Comments (7)

YangFong avatar YangFong commented on June 11, 2024

提供一个你预期的效果图,我参考一下。

from md.

Achuan-2 avatar Achuan-2 commented on June 11, 2024

只需要wx-renderer.js 把text改为title就好了,或者加一个开关,可以选择解析text或者title
Clip_2024-04-27_17-51-30
Clip_2024-04-27_17-51-55

from md.

Achuan-2 avatar Achuan-2 commented on June 11, 2024

建议还是搞一个选项,图注要么是title要么是anchor text(alt text),因为很多Markdown软件上传图片,anchor text都默认是文件名(比如Github、语雀就是),没有文件名的就是无意义的image字符占位,因为这个语法本来就是设计用来当图片丢失或者网络原因来占位告知是什么图片的,所以我只会给需要的图片加上title,同时其他图片保留anchor text。
现在这种改进的话,就会导致我所有的图片都有标题,有的显示title,有的显示anchor text。

from md.

yanglbme avatar yanglbme commented on June 11, 2024

你不想加 title 或者 anchor text 的地方,就不加上,它不就没显示了

from md.

Achuan-2 avatar Achuan-2 commented on June 11, 2024

嗯嗯,这不是为了更方便吗,现在这样就需要每次导出Markdown后一个个改。因为我用的笔记软件(思源笔记、语雀)就是只渲染title为图注。
不过看大佬愿不愿意有没有时间改了,我fork了一个repo,让编辑器只渲染title为图注,已经满足我的需求了。

from md.

yanglbme avatar yanglbme commented on June 11, 2024

@YangFong 只渲染 title 确实比较合理,我们改一下吧

from md.

YangFong avatar YangFong commented on June 11, 2024

倒是有一定的场景,我晚上补个版本,加入图注选项,选择渲染模式。

from md.

Related Issues (20)

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.