Skip to content

Commit f09ae23

Browse files
authored
Update index.html
1 parent e977808 commit f09ae23

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

index.html

+16-10
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,25 @@
112112
lang: "zh-CN",
113113
loading: "lazy"
114114
},
115-
markdown: {
116-
renderer: {
117-
image: function(href, title, text) {
118-
// 按照原来的渲染 img
119-
var image_html = this.origin.image.apply(this, arguments)
120-
// 用 figure 包一下图片,实现居中
121-
return '<figure>' + image_html + '<figcaption>' + text +
122-
'</figcaption></figure>'
123-
}
115+
markdown: {
116+
renderer: {
117+
image: function(href, title, text) {
118+
// 按照原来的渲染 img
119+
var image_html = this.origin.image.apply(this, arguments)
120+
// 用 figure 包一下图片,实现居中
121+
return '<figure>' + image_html + '<figcaption>' + text +
122+
'</figcaption></figure>'
124123
}
125-
}
124+
}
125+
}
126126
}
127127
</script>
128+
<style>
129+
figure {
130+
text-align: center
131+
}
132+
</style>
133+
128134
<!-- Docsify v4 -->
129135
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
130136

0 commit comments

Comments
 (0)