Create slide deck written in Marp Markdown on VS Code.
We will enhance your VS Code as the slide deck writer. Mark marp: true
, and write your deck!
See the documentation of Marpit Markdown and the features of Marp Core about how to write.
Please refer https://marp.app/ for more details of Marp ecosystem. We have powerful tools for Marp Markdown: Marpit Framework, CLI tool, Web interface and so on.
Marp preview will only be enabled when marp: true
is written in front-matter.
---
marp: true
---
# Your slide deck
Start writing!
Marp for VS Code can preview your Marp Markdown with the same way as a native Markdown preview.
We have integrated Marp CLI to export your deck into several formats.
To export the content of active Markdown editor, open the quick pick from Marp icon on toolbar and select "Export slide deck...". (
markdown.marp.export
)
You can also execute command from the Command Palette (F1 or Ctrl/Cmd+Shift+P).
- HTML
- PPTX (PowerPoint document)
- PNG (First slide only)
- JPEG (First slide only)
Default file type can choose by markdown.marp.exportType
preference.
⚠️ Export except HTML requires to install Google Chrome (or Chromium). You may also specify the custom path for Chrome and Chromium-based browser by preferencemarkdown.marp.chromePath
(e.g. Microsoft Edge Insider).
You can register and use custom theme CSS for Marpit / Marp Core by setting markdown.marp.themes
, that includes remote URLs, or relative paths to local files in the current workspace.
// Please put `.vscode/settings.json` on your workspace
{
"markdown.marp.themes": [
"https://example.com/foo/bar/custom-theme.css",
"./themes/your-theme.css"
]
}
It's very similar to a way for using custom styles in ordinary Markdown preview. The registered theme can use by specifying theme name in theme
global directive.
/* @theme your-theme */
@import 'default';
section {
background: #fc9;
}
---
marp: true
theme: your-theme
---
# Use your own theme
Markdown preview will reload updated theme CSS automatically when you edited the registered local CSS file. It's very useful for creating your own theme.
We extend a native outline view to support slide pages in Marp Markdown.
ℹ️ Please choose
Sort By: Position
from context menu of its panel if you see incorrect slide order.
You can fold the content of slide in editor while editing Marp Markdown.
Are you interested in contributing? Please see CONTRIBUTING.md.
Managed by @marp-team.
Yuki Hattori (@yhatt)
This extension releases under the MIT License.