Daniel Avissar10 downloadsWrite a CV in Markdown and see it rendered live beside the note, with a page-fit check and PDF export.
An Obsidian plugin for writing a CV in Markdown. It renders the note live in a side pane, checks the page fit, and exports a PDF through headless Chrome. It ships three themes (see "Themes"). Desktop only.
From Community plugins (once listed): open Settings > Community plugins > Browse, search "CV Live Preview", install, and enable.
Manual install from a release:
main.js, manifest.json, and styles.css from the latest release.<vault>/.obsidian/plugins/cv-live-preview/.Build from source:
npm ci
npm run build
npm run install-plugin -- <path to vault>
The build writes main.js, manifest.json, and styles.css to dist/; the
fonts are inside main.js. Then enable the plugin as above.
Sample CV.md to
your vault (numbered if the name is taken) and opens the preview.name and headline). On a note without
them, the preview names the missing fields and offers "Create sample CV".-ing endings.next-to-note, fixed folder, or ask with a save
dialog), export folder (absolute or vault-relative; created if missing),
filename template, collision handling (overwrite or counter), action after
export (none, reveal, open), PDF metadata on or off.cv-theme line.CHROME_BIN).The folder picker and save dialog use Electron through electron.remote or
@electron/remote. If neither is exposed, the picker shows a notice and the
export falls back to the configured location.
Default {name} - {headline}. Tokens: {name}, {headline}, {title} (note
name), {variant} (frontmatter variant), any other frontmatter key such as
{company} (a missing or empty key, and the empty () it leaves, are dropped;
built-in tokens win over a same-named key), {date} and {date:FORMAT} with
YYYY, MM, DD. Illegal characters are removed, whitespace is collapsed, and
separators left dangling by empty tokens are trimmed. An empty result becomes
CV.
| Id | Design | Pages |
|---|---|---|
classic |
The original compact layout, 8.75 pt text | 1 |
a |
Two columns with a sidebar, 10.5 pt text (default) | up to 2 |
b |
Single column; skills, education, and languages follow the experience | up to 2 |
The dropdown in the preview bar writes cv-theme: <id> into the note's
frontmatter. It changes only that line and leaves the rest of the note as is.
"Default theme" clears the line, so the note follows the default in settings.
Themes a and b share one stylesheet (src/themes/modern.css) and run
page numbers ("Page 2 of 2") from page 2. The preview estimates the page count;
the export notice reports the exact count of the PDF.
a and bTwo A4 pages is the intended length, never squeezed to one. The type floors (body 10.5 pt, dates and labels 9 pt) hold; to fit, trim content or spacing, not type size.
--s5 to as low as 11 pt,
shorten the summary. Never shrink fonts, narrow margins, or split job 2.modern.css: headings and entry heads stay
with the text after them, and bullets, skill groups, education entries, and
languages never split.modern.css. For a white print copy, set --page-bg to #ffffff.After a change, print and check: exactly 2 pages, job 2's last bullet ends page
1, job 3's company opens page 2, the sidebar ends on page 1, page 1 has five
working links, and copied text has no broken words such as "L ANGUAGES" (reduce
--track-h2 if it does). The preview's page estimate does not check where the
split falls; check the PDF.
Frontmatter keys override the settings for one note:
| Key | Effect |
|---|---|
cv-theme |
Theme for this note: classic, a, or b |
cv-export-folder |
Export to this folder (implies folder mode) |
cv-filename |
Filename template |
cv-pdf-title, cv-pdf-author, cv-pdf-subject |
PDF metadata |
cv-pdf-keywords |
PDF keywords, comma separated |
After Chrome prints, the plugin sets Title (name - headline), Author, Subject
(headline), Keywords (frontmatter keywords, else the Skills keywords), and
Creator/Producer ("CV Live Preview") with pdf-lib. Chrome output keeps real
text with font objects; the export warns if no font objects are found.
name, headline, email, phone, website: <url> | <label>.
Optional: linkedin, github, and obsidian (a URL, or <url> | <label>), shown in the
header with icons; location, shown by the classic theme only; variant,
keywords, and the cv-* overrides above.email, phone, website, linkedin,
github, obsidian, and location in classic) in frontmatter order. The
modern themes put them on one row, which wraps when the labels are long.
Short labels (<url> | LinkedIn) keep the row to one line.## is the summary.## Experience and ## Projects: ### Company · Position · period, then bullets.## Skills: ### Group, then a comma-separated keyword line.## Education: ### Degree · Area · School · period.## Languages: - Language | Fluency.npm run render -- cv.md out/cv.pdf [--theme classic|a|b] [--watch] [--html-only] [--no-metadata]
node scripts/json-to-md.mjs <resume.json> cv.md # one-off conversion
Chrome is auto-detected; set CHROME_BIN to use a specific binary. PDF
metadata is applied unless --no-metadata is passed.
child_process to print the PDF.main.js
under the SIL Open Font License; the license texts are in assets/fonts/.npm test) cover rendering, filenames, export paths, the linter,
keyword coverage, PDF metadata, and Chrome detection. The plugin UI, Electron
dialogs, and the Chrome print step are not covered by automated tests.