Markdown and image alignment

前端 未结 14 2368
予麋鹿
予麋鹿 2020-12-02 04:06

I am making a site that publishes articles in issues each month. It is straightforward, and I think using a Markdown editor (like the WMD one here in Stack Overflow) wo

14条回答
  •  不思量自难忘°
    2020-12-02 04:43

    If you implement it in Python, there is an extension that lets you add HTML key/value pairs, and class/id labels. The syntax is for this is:

    ![A picture of a cat](cat.png){: style="float:right"}
    

    Or, if embedded styling doesn't float your boat,

    ![A picture of a cat](cat.png){: .floatright}
    

    with a corresponding stylesheet, stylish.css:

    .floatright {
        float: right;
        /* etc. */
    }
    

提交回复
热议问题