Skip to content

Commit 3600b01

Browse files
committed
markdown-it-image
1 parent 8aefee3 commit 3600b01

File tree

10 files changed

+896
-4
lines changed

10 files changed

+896
-4
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ npm install markdown-it-vue
1616

1717
## Supports
1818

19+
- Image size and Viewer
1920
- Official markdown syntax.
2021
- GFM TOC
2122
- GFM style
@@ -49,6 +50,7 @@ npm install markdown-it-vue
4950

5051
internal plugin list:
5152

53+
- markdown-it-image
5254
- markdown-it-font-awsome
5355
- markdown-it-link-attributes
5456
- markdown-it-highlight
@@ -106,6 +108,10 @@ amd default plugins options:
106108
},
107109
mermaid: {
108110
theme: 'default'
111+
},
112+
image: {
113+
hAlign: 'left',
114+
viewer: true
109115
}
110116
}
111117
```
@@ -167,6 +173,14 @@ PR for you lang wich you want.
167173
- Prolog
168174
- Erlang
169175

176+
## image size
177+
178+
```md
179+
![image size](https://http://www.aqcoder.com/ravenq-qr.png =50x50)
180+
![image size](https://http://www.aqcoder.com/ravenq-qr.png =x50)
181+
![image size](https://http://www.aqcoder.com/ravenq-qr.png =50x)
182+
```
183+
170184
## about echarts
171185

172186
use echarts.simple to reduce the bundle size.

README_CN.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ npm install markdown-it-vue
2020

2121
## 特性
2222

23+
- 图片大小控制及图片预览
2324
- Official markdown syntax.
2425
- GFM TOC
2526
- GFM style
@@ -54,6 +55,7 @@ npm install markdown-it-vue
5455

5556
内置插件:
5657

58+
- markdown-it-image
5759
- markdown-it-font-awsome
5860
- markdown-it-link-attributes
5961
- markdown-it-highlight
@@ -111,6 +113,10 @@ options: {
111113
},
112114
mermaid: {
113115
theme: 'default'
116+
},
117+
image: {
118+
hAlign: 'left',
119+
viewer: true
114120
}
115121
}
116122
```
@@ -176,6 +182,14 @@ this.$refs.myMarkdownItVue.use(MyMarkdownItPlugin)
176182
- Prolog
177183
- Erlang
178184

185+
## 图片大小控制语法
186+
187+
```md
188+
![image size](https://http://www.aqcoder.com/ravenq-qr.png =50x50)
189+
![image size](https://http://www.aqcoder.com/ravenq-qr.png =x50)
190+
![image size](https://http://www.aqcoder.com/ravenq-qr.png =50x)
191+
```
192+
179193
## 关于 echarts
180194

181195
为了减少包的大小,只引用 echarts.simple。

example/components/example.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
export default `
22
# markdown-it-vue
33
4+
## Image size and Viewer
5+
6+
![gvf](http://www.aqcoder.com/gvf-project.png =x50)
7+
![ravenq](http://www.aqcoder.com/ravenq-qr.png =50x50)
8+
49
## GitHub Table of Contents
510
611
[toc]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdown-it-vue",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"private": false,
55
"description": "The vue lib for markdown-it",
66
"author": {

src/fonts/element-icons.ttf

54.6 KB
Binary file not shown.

src/fonts/element-icons.woff

27.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)