X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/667fc8095ce58a5263792151dd82fd3872ea134b..72c3b81efb1079f8db070ac89e97e9b7bcedd61b:/doc/plugins/img/discussion.mdwn?ds=sidebyside diff --git a/doc/plugins/img/discussion.mdwn b/doc/plugins/img/discussion.mdwn index 492769592..bc525a562 100644 --- a/doc/plugins/img/discussion.mdwn +++ b/doc/plugins/img/discussion.mdwn @@ -19,4 +19,20 @@ progressive display. --[[kjs]] --- -Is it possible to give an external image URL, must the image be local? One use case would be displaying *badges*, like [[the number of stars|https://img.shields.io/github/stars/joeyh/ikiwiki.svg]] of a [[github project|http://github.com/joeyh/ikiwiki]], but ``\[[!img https://img.shields.io/github/stars/joeyh/ikiwiki.svg]]`` does not work: [[!img https://img.shields.io/github/stars/joeyh/ikiwiki.svg]]. +Is it possible to give an external image URL, must the image be local? One use case would be displaying *badges*, like [[the number of stars|https://img.shields.io/github/stars/joeyh/ikiwiki.svg]] of a [[github project|http://github.com/joeyh/ikiwiki]], but ``\[[!img https://img.shields.io/github/stars/joeyh/ikiwiki.svg]]`` does not work: [[!img https://img.shields.io/github/stars/joeyh/ikiwiki.svg]]. --[[Louis|spalax]] + +> Eventually wrote my own plugin: [[plugins/contrib/rimg]]. --[[Louis|spalax]] + +>> All the markup formats supported by ikiwiki can do raw HTML (possibly +>> filtered), so you can use `` for basic remote images; or you can +>> use your chosen markup format's image syntax, like +>> !\[some stars](https://img.shields.io/github/stars/joeyh/ikiwiki.svg) +>> for Markdown. I don't think ikiwiki directives should duplicate markup +>> formats' features unless it makes a significant difference to functionality +>> or usability. --[[smcv]] + +>>> I totally agree. I never think about using HTML in my markdown documents, +>>> and I did not know the `!\[Alt text](image url)`. Anyway, this plugin took +>>> me less than one hour to write and publish; I will delete it soon. +>>> +>>> Anyway, thanks for your answer. --[[Louis|spalax]]