有时候我们在JetBrains发布插件时,需要加入一些图片到plugin.xml的description标签使得“图文并茂”,like this:
这时候,我们可以借助html标签来实现,在description中插入CDATA 区段,添加如下示例代码:
<description><![CDATA[
Generate Null Object for object:<br>
Provide an object as a surrogate for the lack of an object of a given type.<br>
The Null Object provides intelligent do nothing behavior, hiding the details from its collaborators.<br>
Please contact me if you have any questions: <a href="http://blog.imuxuan.com">ForDeer</a> <br>
<br>
<b>Preview</b><br>
<br>
<img src="https://raw.githubusercontent.com/leotyndale/EnDebugBubble/master/sc/null_object.gif"/>
]]>
</description>