gbt7771k downloads文章信息追加器:一键插入/更新自动统计信息或自定义内容,含文字/图片/特殊块统计、编辑标记、自定义图文、文章结构思维导图。Article Info Inserter: insert auto-counted stats or custom content into frontmatter、article; one click re-counts all. Mind map included.
文章信息追加器:在文章的属性区、开头三行、末尾三行,按照你的设置,一键插入自动统计出来的文档信息、或者你的自定义内容;点一下更新,这些内容还会按照文章当前状态重新统计、自动变更。这些信息包括:文字统计,图片统计,各种特殊块统计,编辑标记,作者名,自定义文字、图片、链接,自动生成“文章结构思维导图”。以上可插入内容都拥有丰富的自定义选项,可按你的喜好 DIY。

Article Info Inserter is an Obsidian community plugin. With one click it inserts auto-counted document info — or your own custom content — into the note's frontmatter, its first three lines, or its last three lines, exactly as you configure it. Press Update and everything is re-counted from the note's current state; the previous insertion is replaced in place, so nothing is duplicated.
What you can insert: word, image and block statistics, edit marks, author name, custom text, images and links, plus an auto-generated article structure mind map. Every one of them comes with rich customization options — DIY it however you like.
| Group | Available items |
|---|---|
| Text stats | word count, character count, reading time, page count |
| Image stats | total images, local images, network images |
| Blocks | embeds, links, comments, footnotes, code blocks |
| Edit marks | created time, modified time (date-only or full timestamp), author |
| Fixed media | 4 configurable link / image slots |
| Free form | 3 custom text slots |
| Content frame | the article structure mind map (3.0) |
Every item is optional, orderable, and styleable. Up to 3 lines can be inserted at the head and 3 at the tail (6 in total), each with its own alignment and indentation.
Point the plugin at a note and it draws the outline as an SVG mind map, inserts the image link, and refreshes it whenever the outline changes — no more screenshotting a mind-map plugin by hand.

From the community plugin market (recommended)
Manual install
main.js and manifest.json from
Releases;<vault>/.obsidian/plugins/article-info-inserter/;| Append content | Statistics rules | Global and per-level styles |
|---|---|---|
![]() |
![]() |
![]() |
Also available: four independent presets you can switch between with one click (one per platform, for example), a bilingual UI (Chinese / English), and no automatic refresh — updating is always an explicit action.
For each slot you can choose what happens to the note's Frontmatter:
| Option | Effect |
|---|---|
| Leave | do nothing, keep the Frontmatter as it is |
| Write | create the field and write the value |
| Delete | remove the field and its value |
| Clear | keep the field but empty its value |
This lets tools that read Frontmatter — the built-in Bases, Dataview, and similar — query the numbers the plugin computed.
Note: the plugin writes its own computed values into the Frontmatter. It does not read and display your existing properties. Editing Frontmatter is not the plugin's focus; if you need fine-grained property management, use a dedicated plugin.
Info lines are written as a single-line HTML block,
<div data-aii="marker">…</div>. On each update the plugin removes the block it
inserted last time under that marker and re-inserts the fresh one, so your own
text is never touched. Bold, italic, and color can be applied per element, and the
resulting line exports cleanly to PDF and HTML.
Exporting to Word / DOCX with those styles preserved takes one extra step — an
optional Pandoc filter pack shipped in
optional/word-export/. Without custom styling
no extra step is needed.
| Word export |
|---|
![]() |
crypto and fs for image MD5
de-duplication and for copying images into your attachment folder, so it is
marked isDesktopOnly: true and does not run on mobile.| Path | Purpose |
|---|---|
main.js, manifest.json |
the plugin itself |
docs/中文使用教程.md |
full Chinese walkthrough |
docs/release-notes-*.md |
per-version release notes |
optional/word-export/ |
Pandoc filters for styled DOCX export |
PUBLISH.md |
release process notes for maintainers |
MIT