File tree 1 file changed +16
-10
lines changed
1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 112
112
lang : "zh-CN" ,
113
113
loading : "lazy"
114
114
} ,
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>'
124
123
}
125
- } ,
124
+ }
125
+ } ,
126
126
}
127
127
</ script >
128
+ < style >
129
+ figure {
130
+ text-align : center
131
+ }
132
+ </ style >
133
+
128
134
<!-- Docsify v4 -->
129
135
< script src ="//cdn.jsdelivr.net/npm/docsify@4 "> </ script >
130
136
You can’t perform that action at this time.
0 commit comments