![Alt text](/path/to/img.jpg)
或![Alt text](/path/to/img.jpg "Optional title")
,但我在将SVG放置在托管在GitHub上的MD中遇到了困难。最终我使用rails3,并且现在经常更改模型,所以我使用RailRoady生成模型的模式图的SVG。我希望将该SVG放置在ReadMe.md中并显示出来。当我在本地打开SVG文件时,它可以正常工作,那么我如何让浏览器在MD文件中呈现SVG呢?考虑到代码在最终确定之前会是动态的(似乎永远都是这样),将SVG托管在其他地方似乎有些过度,我可能错过了一种实现这一目标的方法。
我想要包含的SVG在GitHub上这里:
https://github.com/specialorange/FDXCM/blob/master/Rails/fdxcm/doc/models_brief.svg
。我已经尝试了以下方法,并且还使用了实际图像来验证语法是否有效,只是SVG代码没有被渲染出来。
![Overview][1]
[1]: https://github.com/specialorange/FDXCM/blob/master/doc/controllers_brief.svg "Overview"
<img src="https://raw.github.com/specialorange/FDXCM/master/doc/controllers_brief.svg">
![Alt text](https://raw.github.com/specialorange/FDXCM/master/doc/controllers_brief.svg)
[Google Doc](https://docs.google.com/drawings/d/1B95ajItJTAImL2WXISX0fkBLYk3nldea4Vm9eo-VyE4/edit) :
<img src="https://docs.google.com/drawings/pub?id=117XsJ1kDyaY-n8AdPS3_8jTgMyITqaoT3-ah_BSc9YQ&w=960&h=720">
<img src="https://raw.github.com/specialorange/FDXCM/master/doc/controllers_brief.svg">
<img src="https://docs.google.com/drawings/d/1B95ajItJTAImL2WXISX0fkBLYk3nldea4Vm9eo-VyE4/edit">
获取结果:
概述: 1: https://github.com/specialorange/FDXCM/blob/master/Rails/fdxcm/doc/controllers_brief.svg "概述"