Comments (7)
提供一个你预期的效果图,我参考一下。
from md.
只需要wx-renderer.js 把text改为title就好了,或者加一个开关,可以选择解析text或者title
from md.
建议还是搞一个选项,图注要么是title要么是anchor text(alt text),因为很多Markdown软件上传图片,anchor text都默认是文件名(比如Github、语雀就是),没有文件名的就是无意义的image字符占位,因为这个语法本来就是设计用来当图片丢失或者网络原因来占位告知是什么图片的,所以我只会给需要的图片加上title,同时其他图片保留anchor text。
现在这种改进的话,就会导致我所有的图片都有标题,有的显示title,有的显示anchor text。
from md.
你不想加 title 或者 anchor text 的地方,就不加上,它不就没显示了
from md.
嗯嗯,这不是为了更方便吗,现在这样就需要每次导出Markdown后一个个改。因为我用的笔记软件(思源笔记、语雀)就是只渲染title为图注。
不过看大佬愿不愿意有没有时间改了,我fork了一个repo,让编辑器只渲染title为图注,已经满足我的需求了。
from md.
@YangFong 只渲染 title 确实比较合理,我们改一下吧
from md.
倒是有一定的场景,我晚上补个版本,加入图注选项,选择渲染模式。
from md.
Related Issues (20)
- 是否有修改事件回调
- rendering bug of online version
- 公众号 LaTeX 渲染异常 HOT 5
- docker部署后,无法支持公式编辑 HOT 6
- 样式建议
- 数学公式展示不正常 HOT 3
- 是否能支持常规的HTML(without styles)\PDF
- 又拍云图床支持
- gh pages 同步最新版后报错 HOT 4
- 阿里云oss上传访问图片会自动下载 HOT 2
- 自定义样式中设置字体无效 HOT 5
- Mermaid SequenceDiagram的文字颜色复制后不清晰 HOT 2
- Mac 代码块左上角三个图标的显示问题 HOT 6
- Infografía
- 能否在渲染文本里带上超链接,可以用于其他平台复制的时候有超链接
- 超过三级的列表复制存在问题 HOT 3
- 如何设置默认的就是custom的,不用再选择
- 配置阿里云OSS后,上传图片报错 HOT 1
- 换行问题 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md.