This commit is contained in:
hackrobot
2024-05-13 14:07:01 +08:00
parent 700a45fbf7
commit 3bec52d5a5

View File

@@ -50,13 +50,13 @@ renderer.blockquote = function (quote) {
var content = match[1]; // 获取第一个捕获组的内容
console.log(content);
}
return `❣️${content}`;
return `❣️<span class="blockquote">${content}</span>`;
};
marked.use({ renderer });
const markTextStr = marked(
`![测试图片2](http://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202304081955211.png) \n
> 测试`
`![测试图片2](http://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202304081955211.png)
>测试`
);
// export default class Index extends Component {
const Index = () => {