Finally, the image is centered in Typecho
 Sidebar wallpapers
  • Accumulated writing three hundred and forty-two Articles
  • Accumulated receipt 3,566 Comments

Finally, the image is centered in Typecho

 Uncle Qin
2019-11-15 / 49 Comments / 19286 Reading / Checking whether to include

Since I switched to Typecho for blogging, the most troublesome thing is that the picture cannot be centered.

To do this, I searched for Markdown syntax on the Internet for some time. Many articles said that it was easy to use and praised, but I really didn't know anything about it. I just thought it was weak. I have read many articles about centering pictures in Typecho, but I haven't found anything that works. Today I saw an article titled "Adding HTML tag support to Typecho editors", which finally solved the problem. Original link: https://wenhairu.com/typecho-html.html

Garbage Markdown, in the end, depends on HTML to solve the problem: modify line 17 of the/var/HyperDown.php file, and add a new tag directly to the existing tag. I added a center and a tag to perfectly center and link the image in a new window.

This article has 182 words in total, and the average reading time is ≈ 1 minute
zero

Reward

poster

Generating

comment

The blogger has closed comments on all pages