qing34 downloadsWrite screenplays in Markdown notes: Tab cycles line types, screenplay layout, import and export.
A screenplay writing workflow for Obsidian. Press Tab to cycle line types; every element is stored as plain Markdown, so the file stays readable, portable and exportable.
给 Obsidian 用的剧本写作工作流。按 Tab 轮换段落类型,每种元素都写成普通 Markdown, 文件本身可读、可迁移、能导出。界面支持中文与英文,跟随 Obsidian 语言或手动切换。
Most screenplay plugins render their own format (Fountain and friends), and the document turns into a pile of symbols outside the plugin. This one goes the other way: the document is ordinary Markdown. Screenplay elements are expressed with native structures — headings, blockquotes, background bands — so Obsidian itself renders them, editing and reading views stay consistent, and the structure survives export to Word / PDF / HTML.
| Element | Written as | Rendered |
|---|---|---|
| Scene | ## 1. INT. STUDIO - MORNING |
bold, tinted band, auto scene number |
| Shot | ### description |
bold |
| Action | ###### description |
body text |
| Character | #### NAME |
bold, pushed right |
| Parenthetical | ##### (beat) |
italic, pushed right, wrapped in full-width parentheses |
| Dialogue | > “line of dialogue” |
blockquote, indented, wrapped in quotation marks |
The interface follows the Obsidian interface language by default. Settings → Screenplay MD → Language lets you pin 中文 or English explicitly.
Two ribbon icons (also in the command palette):
.docx / PDF / .html / plain .txt. Everything except PDF uses
pandoc — set its path in the plugin settings. PDF uses Obsidian's
built-in exporter..io, Word .docx, .md / .txt.Importing .docx does not need pandoc: the plugin unzips the file and reads the text itself.
If the docx is really an altChunk exported from a web page (body parked in word/afchunk.mht),
it decodes the quoted-printable payload and reads the HTML structure.
main.js, manifest.json, styles.css from the latest release<your vault>/.obsidian/plugins/screenplay-md/The stylesheet is loaded automatically with the plugin — no CSS snippet needed.
Add this repository through BRAT while the plugin is not in the community catalog yet.
margin, text-align or text-indent:
CodeMirror computes click positions from line height and character offsets, and those
properties shift text visually without moving the caret target, so clicks land on the
wrong character. Only font size, font weight, horizontal padding and background are used.UI ships in English and Chinese, auto-following the Obsidian interface language. Both dictionaries are checked for key parity, placeholder parity and stray CJK in the English strings. The English UI has not been eyeballed in-app yet — reports welcome.
Per-version notes live in RELEASE_NOTES.md; earlier versions are on the releases page.
GPL-3.0. See LICENSE.