External import
To using new syntax inside Markdown to enhance content, you can also use <iframe>
or <img>
to import external links to enhance your Markdown content.
# shields.io (opens new window)
You can use shields.io (opens new window) to generate lots of dynamic badges, such as the project’s Stars, npm version number, downloads, etc.
Input:




2
3
4
Output:
You can also use it to generate static badges. You can customize the text, style, color and size by modifying the parameters.
Input:


2
Output:
Info
For detailed parameters and usage, please see Home (opens new window).
# Markmap
Markmap is a tool for converting Markdown into mind maps. It supports more format and content than the built-in flowchart of the theme.
- Use Markmap (opens new window) to generate mind map HTML file
- Place the HTML file under
.vuepress/public/
- Insert into Markdown via
<iframe>
Input:
<iframe
:src="$withBase('/markmap/demo.html')"
width="100%"
height="400"
frameborder="0"
scrolling="No"
leftmargin="0"
topmargin="0"
/>
2
3
4
5
6
7
8
9
Output:
# CodePen
You can use CodePen (opens new window) to create code demo and embed them.
<iframe
height="265"
style="width: 100%;"
scrolling="no"
title="Solar System animation - Pure CSS"
src="https://codepen.io/kowlor/embed/ZYYQoy?height=265&theme-id=light&default-tab=css,result"
frameborder="no"
loading="lazy"
allowtransparency="true"
allowfullscreen="true"
>
See the Pen
<a href="https://codepen.io/kowlor/pen/ZYYQoy"
>Solar System animation - Pure CSS</a
>
by Malik Dellidj (<a href="https://codepen.io/kowlor">@kowlor</a>) on
<a href="https://codepen.io">CodePen</a>.
</iframe>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18