I added the lazyload function to the page, and wanted to render the picture link to data-src on makrdown rendering


#1

我给页面添加了lazyload功能,想让makrdown渲染时把图片链接渲染到data-src上
比如,后台markdown编写如下
img
markdown渲染之后的HTML想要如下样子
<img alt=“img” data-src=“http://xxx.com/demo.jpg” src