我正在使用他们的API生成一个GitHub注释,通过在主体中传递如下的markdown
{
"body": "Component n | --------n ![alt text](https://static.wooicon.com/files/a/rr/ow/cd50f73a0f0a769fcb10138d4f8eb98b/arrow-down.png)",
"commit_id": "8574ac234999ffb5bbf93f66fac30a84342fe396",
"path": "README.md",
"position": 4
}
我现在想使用这个页面上的表情符号来代替上面的图片URL。
我试着只传递了表情符号,如下
"body": "Component n | --------n ![alt text](:small_red_triangle_down:)",
然而,这似乎不起作用,也没有渲染图像。请告诉我如何在GitHub markdown中使用表情符号。
考虑到GitHub API在pull请求和问题中确实提到了表情符号,这可能仍然不受支持,但。。。使用CCD_ 1作为CCD_。
您可以尝试相同的媒体类型。然而,这是去年2月(2018年)的测试版。
OP Kevin Chau在评论中补充道:
我能够在代码中使用,只需连接到markdown,并使用标题
application/vnd.github.machine-man-preview+json