Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Contract Word Export

kevinsong0kevinsong025 downloads

Export notes to Word documents with a Chinese contract layout: A4, FangSong and Times New Roman, cover page, and page numbers.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Export an Obsidian note to a .docx file that follows a Chinese contract layout. The plugin is self-contained: no Python, no external converter, and it works on desktop and mobile.

Cover preview

Layout

  • A4, margins 37 / 35 / 28 / 26 mm.
  • Body text 12 pt, exact 18 pt line spacing, 2-character first-line indent, justified.
  • Headings 22 / 15 / 15 / 12 pt, bold.
  • Tables 10.5 pt, centered, thick outer border, thin inner borders, grey header row.
  • Optional cover page, body page numbers restart at 1.
  • Signature blocks written with ideographic spaces become a two-column block.
  • Images are embedded from the vault; wiki links and wiki embeds are resolved.
  • Merged table cells (colspan / rowspan) are supported.

Install

Once the plugin is in the community directory: Settings → Community plugins → Browse → Contract Word Export → Install → Enable.

Manual install: copy main.js, manifest.json, and styles.css from a release into <vault>/.obsidian/plugins/contract-word-export/, then enable the plugin.

Use

Open a Markdown note, then use one of:

  • the ribbon button;
  • the command Export current note to Word (6.0 contract layout);
  • the note's right-click menu, or the editor context menu.

The .docx is written into the vault. Set an Export folder in the plugin settings, or leave it empty to save next to the note.

Cover page

Add cssclasses: contract-pdf to the note properties. The first five blocks of the note must be, in order:

  1. the logo image;
  2. <div class="contract-cover-meta"> with one <p> per line;
  3. the agreement title as # Heading 1;
  4. <div class="contract-cover-parties"> with one <p> per party;
  5. <div class="contract-cover-supervisor">.

Example:

---
cssclasses: contract-pdf
---

![Logo](../../attachments/logo.png)

<div class="contract-cover-meta">
<p>密  级:内部</p>
<p>合同编号:____</p>
<p>签约日期:____ 年 __ 月 __ 日</p>
<p>签约地点:____</p>
</div>

# 顾问服务协议

<div class="contract-cover-parties">
<p>甲方:____</p>
<p>乙方:____</p>
</div>

<div class="contract-cover-supervisor">
<p>监制:____</p>
</div>

If the five blocks are incomplete, the note is exported without a cover and the plugin shows a warning.

Body page numbering

Place this paragraph where the numbered body starts:

<p class="body-start-note">(以下为正文)</p>

The paragraph ends the front section and starts a new section whose page numbers begin at 1. Without it the whole note keeps continuous numbering.

Other blocks

  • Signature block: write two paragraphs, one per party, separated by at least four ideographic spaces ( ). Consecutive matching paragraphs form one two-column blockless table.
  • Page break: <div class="contract-page-break"></div>.
  • Party information: wrap it in <div class="party-block"> to indent the block.
  • Numbered lists: use hanging-indent in cssclasses to switch from first-line indent to a hanging indent.
  • Links: [[Note]] renders as the note name, [[Note|text]] as text.
  • Tables: Markdown tables and raw HTML tables are both supported.

Fonts

The font names are written into the document; the fonts themselves are not embedded.

  • Default Chinese font: FandolFang (the 6.0 layout reference). Change it to FangSong, STFangsong, or another installed font in the settings.
  • Default Latin font: Times New Roman.

If a font is not installed on the machine that opens the document, Word substitutes another font and pagination can change.

Development

npm install
npm test        # build and run the conversion test
npm run build   # type-check and bundle main.js

The test fixture test/fixtures/contract-6.0.md covers the cover, headings, lists, tables, images, signatures, and page numbering. npm test writes test/tmp/out-js.docx; open it in Word or LibreOffice to inspect the layout.

License

MIT. See LICENSE.

HealthExcellent
ReviewPassed
About
Export an Obsidian note to a .docx file formatted to a Chinese contract layout. Apply A4 sizing with precise margins, specified typography and justified body text with first-line indent, styled headings and table rules (thick outer border, merged cells supported), embed images, resolve wiki links/embeds, and add an optional structured cover page; save the .docx in the vault and run on desktop or mobile.
ExportTablesImages
Details
Current version
1.0.2
Last updated
3 days ago
Created
3 days ago
Updates
3 releases
Downloads
25
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
kevinsong0kevinsong0
GitHubkevinsong0
  1. Community
  2. Plugins
  3. Export
  4. Contract Word Export

Related plugins

Wechat Converter

将 Markdown 转换为微信公众号排版,并支持一键发送到微信(weixin/wx)公众号(支持自定义 CSS和公众号贴图)、飞书、小红书(rednote)、知乎、微博、CSDN等20+平台。

Share My List

Share the enabled plugins in list/table format.

Node Screenshot

Capture node effortlessly with precision screenshot.

Export Image plugin

Easily convert your article to image.

Advanced Tables

Improved table navigation, formatting, and manipulation.

TTRPG Tools - Maps

A toolbox for interactive fantasy maps.

Image Captions

Add captions to images with inline Markdown and link support. The caption format is compatible with the Commonmark spec and other Markdown applications.

Ink

Handwriting and drawing directly between paragraphs using a digital pen, stylus, or Apple pencil.

Voice

Listen to your notes as natural speech with text-to-speech (TTS). Read notes aloud, play them like an audiobook in the voice player, download MP3 audio and listen offline hands-free on mobile.

Featured Image

Automatically set a featured image property in your notes based on the first image.