cansik / marp-vscode

Marp for VS Code: Create slide deck written in Marp Markdown on VS Code

Home Page:https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Marp for VS Code

CircleCI Codecov Visual Studio Marketplace LICENSE

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.

Usage

Marp preview will only be enabled when marp: true is written in front-matter.

---
marp: true
---

# Your slide deck

Start writing!

Features

Preview Marp Markdown

Marp for VS Code can preview your Marp Markdown with the same way as a native Markdown preview.

Export slide deck to HTML, PDF, PPTX, and image

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)

Export slide deck

You can also execute command from the Command Palette (F1 or Ctrl/Cmd+Shift+P).

Supported file types

  • HTML
  • PDF
  • 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 preference markdown.marp.chromePath (e.g. Microsoft Edge Insider).

Use custom theme

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.

Use custom theme

Outline view for each slide

We extend a native outline view to support slide pages in Marp Markdown.

Outline view for each slide

ℹ️ Please choose Sort By: Position from context menu of its panel if you see incorrect slide order.

Slide folding in editor

You can fold the content of slide in editor while editing Marp Markdown.

Slide folding in editor

Contributing

Are you interested in contributing? Please see CONTRIBUTING.md.

Author

Managed by @marp-team.

License

This extension releases under the MIT License.

About

Marp for VS Code: Create slide deck written in Marp Markdown on VS Code

https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode

License:MIT License


Languages

Language:TypeScript 93.7%Language:CSS 3.4%Language:JavaScript 2.9%