External import

Mr.Hope ... 2021-2-26
  • Markdown
About 2 min

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:

![Version](https://img.shields.io/npm/v/vuepress-theme-hope.svg?style=flat-square&logo=npm)
![Downloads](https://img.shields.io/npm/dm/vuepress-theme-hope.svg?style=flat-square&logo=npm)
![Size](https://img.shields.io/bundlephobia/min/vuepress-theme-hope?style=flat-square&logo=npm)
![Dependencies](https://img.shields.io/librariesio/release/npm/vuepress-theme-hope?style=flat-square)
1
2
3
4

Output:

Version Downloads Size

You can also use it to generate static badges. You can customize the text, style, color and size by modifying the parameters.

Input:

![Theme: vuepress-theme-hope](https://img.shields.io/badge/Theme-vuepress--theme--hope-green.svg?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAwIiBoZWlnaHQ9IjEyMDAiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMzI4MC45NDQgMjgwMCI+CiAgPHBhdGggZD0iTTE2NDUuMzMyIDYwMS4wMDRoMzc1LjY3NUwxMDgxLjgyIDIyMzguNDc4IDE0Mi42MzYgNjAxLjAwNGg3MTguNDc3bDIyMC43MDggMzc5LjcwNCAyMTYuMDEzLTM3OS43MDR6IiBmaWxsPSIjNDFiODgzIiAvPgogIDxwYXRoIGQ9Ik0xNDIuNjM2IDYwMS4wMDRsOTM5LjE4NSAxNjM3LjQ3NCA5MzkuMTg2LTE2MzcuNDc0aC0zNzUuNjc1bC01NjMuNTEgOTgyLjQ4NC01NjguMjA4LTk4Mi40ODR6IiBmaWxsPSIjNDFiODgzIiAvPgogIDxwYXRoIGQ9Ik01MTMuMTg4IDYwMS4wMDRsNTY4LjIwNyA5ODcuMjMgNTYzLjUxMS05ODcuMjNoLTM0Ny40OThsLTI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4yODUgNi44NzcgMTczLjc0Ni0zMjAuOTA5aC02MTkuMDcyeiIgZmlsbD0iIzQxYjg4MyIgLz4KPC9zdmc+)
![Author: Mr.Hope](https://img.shields.io/badge/Author:Mr.Hope-Follow-blue.svg?style=social)
1
2

Output:

Theme: vuepress-theme-hope Author: Mr.Hope

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.

  1. Use Markmap (opens new window) to generate mind map HTML file
  2. Place the HTML file under .vuepress/public/
  3. Insert into Markdown via <iframe>

Input:

<iframe
  :src="$withBase('/markmap/demo.html')"
  width="100%"
  height="400"
  frameborder="0"
  scrolling="No"
  leftmargin="0"
  topmargin="0"
/>
1
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>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Last update: April 27, 2021 13:16
Contributors: Mr.Hope