Markdown and image alignment

前端 未结 14 2377
予麋鹿
予麋鹿 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:46

    I liked learnvst's answer of using the tables because it is quite readable (which is one purpose of writing Markdown).

    However, in the case of GitBook's Markdown parser I had to, in addition to an empty header line, add a separator line under it, for the table to be recognized and properly rendered:

    | - | - |
    |---|---|
    | I am text to the left  | ![Flowers](/flowers.jpeg) |
    | ![Flowers](/flowers.jpeg) | I am text to the right |
    

    Separator lines need to include at least three dashes --- .

提交回复
热议问题