No description
Find a file
2026-04-07 19:40:54 +08:00
.github/workflows Add release workflow 2025-01-13 18:21:07 +08:00
.vscode 更新至 1.2.3 2026-04-07 19:40:54 +08:00
example 更新至 1.2.3 2026-04-07 19:40:54 +08:00
images v 1.1.5 2025-04-11 19:23:27 +08:00
src 更新至 1.2.3 2026-04-07 19:40:54 +08:00
.editorconfig 初始版本 2024-12-27 14:21:57 +08:00
.gitignore 更新至 1.2.3 2026-04-07 19:40:54 +08:00
esbuild.config.mjs 更新至 1.2.3 2026-04-07 19:40:54 +08:00
LICENSE Initial commit 2024-12-24 16:17:23 +08:00
manifest.json feat: 更新版本号至1.2.3并添加版本映射 2026-04-07 19:15:38 +08:00
package-lock.json 更新至 1.2.3 2026-04-07 19:40:54 +08:00
package.json 更新至 1.2.3 2026-04-07 19:40:54 +08:00
README.md 更新至 1.2.3 2026-04-07 19:40:54 +08:00
README.zh-cn.md 更新至 1.2.3 2026-04-07 19:40:54 +08:00
styles.css 更新至 1.2.3 2026-04-07 19:40:54 +08:00
tsconfig.json 1.0.0 release 2024-12-27 16:10:05 +08:00
version-bump.mjs 初始版本 2024-12-27 14:21:57 +08:00
versions.json feat: 更新版本号至1.2.3并添加版本映射 2026-04-07 19:15:38 +08:00

Content Cards

Downloads Version

English | 中文

Insert content cards in Markdown, such as timeline, highlightblock, target card, book information card, music information card, movie information card, photoes ablum, business card, content subfield, countdown, SWOT, BCG.

Features

  • Obsidian Mobile supported.
  • Support English and Chinese.
  • Support Local Images.
  • Supports custom codeblock language.
  • Add new card: SWOT and BCG.

Installation

Search Content cards in the Community plugins and install it.

Usage

Each card is marked with '@card', and different parameters are added for different cards.

Some cards can be colored by adding '[color-red]' after '@card'.

Supported custom colors:

  • color-red
  • color-orange
  • color-yellow
  • color-green
  • color-cyan
  • color-blue
  • color-purple
  • color-pink

Timeline

There are two modes of the timeline, one is the vertical timeline and the other is the horizontal timeline.

Vertical timeline

Markdown Syntax

Insert a codeblock with the cards-timeline-v syntax.

```cards-timeline-v
@card
time: 2024-12-12
title: Example Titles
content:
描述描述 Sample Content 描述描述 Sample Content 描述描述 Sample Content
描述描述 Sample Content 描述描述 Sample Content 描述描述 Sample Content

@card [color-red]
time: 2024-12-12
title: Example Titles
content:
描述描述 Sample Content 描述描述 Sample Content 描述描述 Sample Content
描述描述 Sample Content 描述描述 Sample Content 描述描述 Sample Content
```

Parameters

Option Card Type Required Description
time timeline Yes date
title timeline Yes title, can be multi-line text
content timeline Yes Introduction, can be multi-line text, but only the first 3 lines will be displayed on the card

horizontal timeline

Markdown Syntax

Insert a codeblock with the cards-timeline-h syntax.

```cards-timeline-h
@card
time: 2024-12-12
title: Example Titles
content:
描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述

@card [color-red]
time: 2024-12-12
title: Example Titles
content:
描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述
```

Parameters

Option Type Required Description
time string Yes date
title string Yes title
content string Yes Introduction, can be multi-line text, but only the first 3 lines will be displayed on the card

Highlightblock

Support for custom colors The content supports markdown syntax

Markdown Syntax

Insert a codeblock with the cards-highlightblock syntax.

```cards-highlightblock
@card [color-red]
示例文字示例文字示例文字
示例文字

@card
示例文字
示例文字
```

Target card

Markdown Syntax

Insert a codeblock with the cards-target syntax.

```cards-target
@card [color-red]
title: 指标名称
value: 1000
unit: 元

@card
title: 指标名称
value: 1,200
unit: 元
```

book information card

Markdown Syntax

Insert a codeblock with the cards-book syntax.

Web Image

```cards-book
@card
title: Blindness Chronicles
cover: https://img3.doubanio.com/view/subject/s/public/s34269503.jpg
meta:
分类: 计算机
出版日期: 2022-08-27
作者: 若泽·萨拉马戈
评分: 9.1
introduction:
街上出现了第一个突然失明的人,紧接着是第二个、第三个……  一种会传染的失明症在城市蔓延,无人知晓疫情为何爆发、何时结束。  失明症造成了前所未有的恐慌与灾难
```

Local Image

```cards-book
@card
title: Blindness Chronicles
cover: ![[files/image-1.png]]
meta:
分类: 计算机
出版日期: 2022-08-27
作者: 若泽·萨拉马戈
评分: 9.1
introduction:
街上出现了第一个突然失明的人,紧接着是第二个、第三个……  一种会传染的失明症在城市蔓延,无人知晓疫情为何爆发、何时结束。  失明症造成了前所未有的恐慌与灾难
```

Parameters

Option Type Required Description
title string Yes title
cover string Yes Cover image, web url(https://...) are supported
meta object Yes meta
introduction string Yes Introduction, can be multi-line text, but only the first 3 lines will be displayed on the card

Music information card

Markdown Syntax

Insert a codeblock with the cards-music syntax.

Web Image

```cards-music
@card
title: Love Story
cover: https://p1.music.126.net/GZERNplXUdzTPkKqo2F4tA==/109951169217536854.jpg
meta:
艺术家: Taylor Swift
流派: 流行
```

Local Image

```cards-music
@card
title: Love Story
cover: ![[files/image-1.png]]
meta:
艺术家: Taylor Swift
流派: 流行
```

Parameters

Option Type Required Description
title string Yes title
cover string Yes Cover image, web url(https://...) are supported
meta object Yes meta

Movie information card

Markdown Syntax

Insert a codeblock with the cards-movie syntax.

Web Image

```cards-movie
@card
title: 流浪地球2
cover: https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
meta:
导演: 郭帆
演员: 吴京 / 刘德华 / 李雪健 / 沙溢
分类: 国产
上映日期: 2023-01-22
评分: 8.3
introduction:
在并不遥远的未来,太阳急速衰老与膨胀,再过几百年整个太阳系将被它吞噬毁灭。为了应对这场史无前例的危机,地球各国放下芥蒂,成立联合政府,试图寻找人类存续的出路。通过摸索与考量,最终推着地球逃出太阳系的“移山计划”获得压倒性胜利。人们着手建造上万台巨大的行星发动机,带着地球踏上漫漫征程。满腔赤诚的刘培强(吴京 饰)和韩朵朵(王智 饰)历经层层考验成为航天员大队的一员,并由此相知相恋。但是漫漫征途的前方,仿佛有一股神秘的力量不断破坏者人类的自救计划。看似渺小的刘培强、量子科学家图恒宇(刘德华 饰)、联合政府中国代表周喆直(李雪健 饰)以及无数平凡的地球人,构成了这项伟大计划的重要一环……
```

Local Image

```cards-movie
@card
title: 流浪地球2
cover: ![[files/image-1.png]]
meta:
导演: 郭帆
演员: 吴京 / 刘德华 / 李雪健 / 沙溢
分类: 国产
上映日期: 2023-01-22
评分: 8.3
introduction:
在并不遥远的未来,太阳急速衰老与膨胀,再过几百年整个太阳系将被它吞噬毁灭。为了应对这场史无前例的危机,地球各国放下芥蒂,成立联合政府,试图寻找人类存续的出路。通过摸索与考量,最终推着地球逃出太阳系的“移山计划”获得压倒性胜利。人们着手建造上万台巨大的行星发动机,带着地球踏上漫漫征程。满腔赤诚的刘培强(吴京 饰)和韩朵朵(王智 饰)历经层层考验成为航天员大队的一员,并由此相知相恋。但是漫漫征途的前方,仿佛有一股神秘的力量不断破坏者人类的自救计划。看似渺小的刘培强、量子科学家图恒宇(刘德华 饰)、联合政府中国代表周喆直(李雪健 饰)以及无数平凡的地球人,构成了这项伟大计划的重要一环……
```

Parameters

Option Type Required Description
title string Yes title 称
cover string Yes Cover image, web url(https://...) are supportedurl
meta object Yes meta 据
introduction string Yes Introduction, can be multi-line text, but only the first 3 lines will be displayed on the card

photoes ablum

Markdown Syntax

  • Insert a codeblock with the cards-ablum syntax.
  • Support waterfall layout mode. Add [waterfall-x] after @card, x is a number between 1-9, representing the number of columns in the waterfall layout.

Web Image

```cards-album
@card [color-blue]
title: 画册名称
images:
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg

https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
```

Local Image

```cards-album
@card [color-blue]
title: 画册名称
images:
![](https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg)
![](https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg)
![](https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg)

![[files/image-1.png]]
![[files/image-2.png]]
```

Waterfall Layout

```cards-album
@card [color-blue,waterfall-3]
title: 画册名称
images:
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
https://img9.doubanio.com/view/photo/s/public/p2885842436.jpg
```

Parameters

Option Type Required Description
title string Yes title
images string Yes Image links(support web image and local image), 1 link per line, blank lines group images of albums, with a maximum of 9 images per group

Business card

Markdown Syntax

Insert a codeblock with the cards-name syntax.

```cards-name
@card
name: 姓名
tags: 标签,标签
remark: 人物的简单描述 A brief description of the character

@card [color-green]
name: 姓名
tags: 标签,标签
remark: 人物的简单描述 A brief description of the character
```

Parameters

Option Type Required Description
name string Yes name
tags string Yes tags
remark string Yes remark

Content subfield

The content supports markdown syntax

Markdown Syntax

Insert a codeblock with the cards-subfield syntax.

```cards-subfield
@card
示例文字
示例文字

@card
示例文字
示例文字
```

Countdown

Markdown Syntax

Insert a codeblock with the cards-countdown syntax.

```cards-countdown
@card [color-red]
title: 2026 new year
type: day
time: 2026-01-01
```

Parameters

Option Type Required Description
title string Yes title
type string Yes type,currently supports day,sec
time string Yes type=day, date, eg: 2024-02-12
type=sec, timestamp, eg: 12:03:30

SWOT

Markdown Syntax

Insert a codeblock with the cards-swot syntax.

```cards-swot
@card
s-content:
## 限内容第三象限内容第三象限内容第三象限内容容第三象限内
1. 第三象限内容第三象限内容
w-content:
2. 威胁
3. 内容
## 限内容第三象限内**容第三象限内容第三**象限内容
- 第三象限内容第三象限内容
三象限内容第三象限内容三象限内容第三象限内容三象限内容第三象限内容三象限内容第三象限内容
o-content:
**机会内容**
t-content:
限内容第三象限内**容第三象限内容第三**象限内容
1. 第三象限内容第三象限内容
```

参数

Option Type Required Description
s-content string Yes s-content / Strengths Content
w-content string Yes w-content / Weaknesses Content
o-content string Yes o-content / Opportunities Content
t-content string Yes t-content / Threats Content

BCG

Markdown Syntax

Insert a codeblock with the cards-bcg syntax.

```cards-bcg
@card
x: 重要程度
y: 紧急程度
a1-title: 第一象限
a1-content: 第一象限内容
a2-title: 第二象限
a2-content: 第二象限内容
a3-title:
第三象限第三象限内容第三象限内容
第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容
a3-content:
# 第三象限内容第三象限内容第三象
## 限内容第三象限内**容第三象限内容第三**象限内容
1. 第三象限内容第三象限内容
2. 第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容第三象限内容
a4-title: 第四象限
a4-content:
2. 第四象限内容
3. neiddddd
```

参数

Option Type Required Description
x string Yes x / x 轴名称
y string Yes y / y 轴名称
a1-title string Yes a1-title / First quadrant title
a1-content string Yes a1-content / First quadrant content
a2-title string Yes a2-title / Second quadrant title
a2-content string Yes a2-content / Second quadrant content
a3-title string Yes a3-title / Third quadrant title
a3-content string Yes a3-content / Third quadrant content
a4-title string Yes a4-title / Fourth quadrant title
a4-content string Yes a4-content / Fourth quadrant content

Limitations and known bugs

You are greatly welcome to ask questions, post any suggestions, or report any bugs! The project is mainly maintained on GitHub:

Known issues:

Changelog

Version Date Notes
1.0.0 2024-12-24 Initial release
1.0.10 2025-03-12 Support English and Chinese
1.0.11 2024-03-15 Photoes Ablum Support Local Images.
1.1.0 2024-03-19 Supports custom codeblock language.
1.1.4 2024-04-02 Bookcard Musiccard Moviecard Support Local Images.
1.2.0 2024-04-11 Add SWOT Analysis and BCG Analysis.
1.2.2 2024-10-11 Album Support waterfall layout mode.
1.2.3 2026-04-07 Updated Countdown Card.

Pricing

The plugin is free, athough if you wanna say thanks, feel free to buy me a coffee.

wechart|150

License

This project is released under the MIT License.