RenderPaper
Render and edit Markdown and LaTeX files in VS Code and compatible editors.
The original .md or .tex file remains the source document.
Features
- Preview
.md and .tex files.
- Click a rendered block to edit its source.
- Edit table cells with one click; edit the full table with a double-click.
- Update the preview while typing.
- Render only the visible parts of long documents.
- Refresh local images when image files change.
- Follow links between Markdown and LaTeX documents.
- Configure fonts, table alignment and project styles.
- Send selected source to the Agent panel in Antigravity. In VS Code, the same
Markdown context is copied to the clipboard for manual paste.
Install
- Open the Extensions view in VS Code or Antigravity.
- Choose Install from VSIX.
- Select the RenderPaper VSIX file.
- Run Developer: Reload Window after updating the extension.
Open a preview
Enable RenderPaper: Override Default Preview to use RenderPaper from:
- Open Preview to the Side;
- the editor and Explorer context menus;
Ctrl+K V.
Enable RenderPaper: Open Preview Automatically if previews should open with
Markdown and LaTeX files.
Editing
- Click a rendered paragraph, heading, formula or other block to edit it.
- Click a table cell to edit only that cell.
- Double-click a table to edit the full table source.
- Click outside the editor to finish editing.
- Use the right-click menu for Cut, Copy and Paste.
Unsupported or incomplete syntax is shown as source text instead of an error
page.
Markdown support
RenderPaper supports common Markdown, KaTeX formulas, tables, reference links,
footnotes, local images and <br> line breaks.
Local links can open Markdown and LaTeX files:
[Markdown chapter](https://github.com/mxoxwh/RenderPaper/blob/HEAD/chapters/results.md#measurements)
[TeX appendix](https://github.com/mxoxwh/RenderPaper/blob/HEAD/appendix/derivation.tex#eq:main)
LaTeX Lite support
The built-in LaTeX renderer supports:
- titles, abstracts and sections;
- text styles and links;
- formulas and common math environments;
- labels and references;
- figures, local images and captions;
- basic tables, lists, quotes, theorem/proof and code environments.
It does not run TeX, shell commands or produce PDF files. Unsupported commands
remain visible and editable as source.
Table-cell editing supports tabular, tabularx, tabular* and longtable,
including the first supported table inside a table or table* environment.
Settings
Search for RenderPaper in VS Code Settings. Available settings include:
- automatic preview;
- default-preview replacement;
- body, heading, table, code and formula font sizes;
- table alignment;
- project rendering rules.
Workspace rules are stored in .vscode/lite-editor-preview.rules.json. Run
RenderPaper: Create or Open Project Rules File to create the file.
Development
npm install
npm run check
npm run package
Generated VSIX packages should be placed in artifacts/ and are not committed
to Git.
License
MIT