Skip to content

Commit b6910d8

Browse files
committed
fix: move plugin page to .mdx file to enable images in tables
1 parent 0237c79 commit b6910d8

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

src/data/plugins/general-converter/plugin.md renamed to src/data/plugins/general-converter/plugin.mdx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ id: 73f2c04d-176a-4586-9ff5-69fae63321ef
66
tags:
77
- Calculators & Converters
88
---
9+
import Distance from "./images/Distance.png";
10+
import Volume from "./images/Volume.png";
11+
import Area from "./images/Area.png";
12+
import Weight from "./images/Weight.png";
13+
import Temperature from "./images/Temperature.png";
14+
import Speed from "./images/Speed.png";
15+
import Energy from "./images/Energy.png";
16+
917
# General Converter (Flow.Launcher.GenConvert)
1018

1119
General weight, volume, distance, area, temperature, speed and energy converter for the [Flow Launcher](https://github.com/Flow-Launcher/Flow.Launcher)
@@ -16,8 +24,8 @@ Currently English and Chinese language supported. Edit the .env file to change t
1624

1725
### Usage
1826

19-
| Keyword | Description |
20-
| ------------------------------------------------------------- | -------------------------------------------------- |
27+
| Keyword | Description |
28+
| ------------------------------------------------------------- | --------------------------------------------------- |
2129
| `gc <amount> <from unit abbreviation> <to unit abbreviation>` | Convert the amount of the from unit to the to unit. |
2230

2331
The from and to unit are case sensitive.
@@ -36,10 +44,10 @@ The following units and their abbreviations can be used (each table can only con
3644
<th>Subject</th>
3745
<th>Unit</th>
3846
<th>Abbreviation</th>
39-
<th rowspan="10" align="center"><img src="images/Distance.png" alt="Distance Logo"></th>
47+
<th rowspan="10" align="center"><img src={Distance.src} alt="Distance Logo"/></th>
4048
</tr>
4149
<tr>
42-
<td rowspan="9" align="center"> Distance</td>
50+
<td rowspan="9" align="center">Distance</td>
4351
<td>millimetre</td>
4452
<td>mm</td>
4553
</tr>
@@ -82,7 +90,7 @@ The following units and their abbreviations can be used (each table can only con
8290
<th>Subject</th>
8391
<th>Unit</th>
8492
<th>Abbreviation</th>
85-
<th rowspan="27" align="center"><img src="images/Volume.png" alt="Volume Logo"></th>
93+
<th rowspan="27" align="center"><img src={Volume.src} alt="Volume Logo"/></th>
8694
</tr>
8795
<tr>
8896
<td rowspan="26" align="center">Volume</td>
@@ -196,7 +204,7 @@ The following units and their abbreviations can be used (each table can only con
196204
<th>Subject</th>
197205
<th>Unit</th>
198206
<th>Abbreviation</th>
199-
<th rowspan="10" align="center"><img src="images/Area.png" alt="Area Logo"></th>
207+
<th rowspan="10" align="center"><img src={Area.src} alt="Area Logo"/></th>
200208
</tr>
201209
<tr>
202210
<td rowspan="9" align="center">Area</td>
@@ -242,7 +250,7 @@ The following units and their abbreviations can be used (each table can only con
242250
<th>Subject</th>
243251
<th>Unit</th>
244252
<th>Abbreviation</th>
245-
<th rowspan="7" align="center"><img src="images/Weight.png" alt="Weight Logo"></th>
253+
<th rowspan="7" align="center"><img src={Weight.src} alt="Weight Logo"/></th>
246254
</tr>
247255
<tr>
248256
<td rowspan="6" align="center">Weight</td>
@@ -276,7 +284,7 @@ The following units and their abbreviations can be used (each table can only con
276284
<th>Subject</th>
277285
<th>Unit</th>
278286
<th>Abbreviation</th>
279-
<th rowspan="4" align="center"><img src="images/Temperature.png" alt="Temperature Logo"></th>
287+
<th rowspan="4" align="center"><img src={Temperature.src} alt="Temperature Logo"/></th>
280288
</tr>
281289
<tr>
282290
<td rowspan = "3" align="center">Temperature</td>
@@ -298,7 +306,7 @@ The following units and their abbreviations can be used (each table can only con
298306
<th>Subject</th>
299307
<th>Unit</th>
300308
<th>Abbreviation</th>
301-
<th rowspan="4" align="center"><img src="images/Speed.png" alt="Speed Logo"></th>
309+
<th rowspan="4" align="center"><img src={Speed.src} alt="Speed Logo"/></th>
302310
</tr>
303311
<tr>
304312
<td rowspan = "3" align="center">Speed</td>
@@ -320,7 +328,7 @@ The following units and their abbreviations can be used (each table can only con
320328
<th>Subject</th>
321329
<th>Unit</th>
322330
<th>Abbreviation</th>
323-
<th rowspan="8" align="center"><img src="images/Energy.png" alt="Energy Logo"></th>
331+
<th rowspan="8" align="center"><img src={Energy.src} alt="Energy Logo"/></th>
324332
</tr>
325333
<tr>
326334
<td rowspan = "7" align="center">Energy</td>
@@ -351,4 +359,4 @@ The following units and their abbreviations can be used (each table can only con
351359
<td>British thermal units</td>
352360
<td>BTU</td>
353361
</tr>
354-
</table>
362+
</table>

0 commit comments

Comments
 (0)