Free plan

Markdown to Slides

Turn simple text into a slide presentation
POST
/v1/documents/slides

About this tool

You write your slides as simple text, using a line with --- or a heading starting with # to begin a new slide. The tool turns it into slides. You can get a PDF with one page per slide, or an HTML slideshow that opens in any web browser. You can pick a colour theme and the slide shape.
For example, you type a list of points under a few headings and get a presentation to show.

How to use it

  1. Choose this tool.
  2. Type or paste your slide text, with --- between slides or # headings.
  3. Choose PDF or slideshow, the theme and the slide shape.
  4. Press Generate.
  5. Download the presentation.

What you get back

You get a PDF or one HTML slideshow file to download. It is not a PowerPoint file.
GOOD TO KNOW
Text in, a PDF or an HTML file out. The PDF is printed by the same browser engine as HTML to PDF, offline. Counts as one document.
TEST IT LIVE

Try Markdown to Slides in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Documents
Plan
Free
Method
POST
Endpoint
/v1/documents/slides
Tool ID
documents.slides
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Documents
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/documents/slides" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'markdown=# My talk

---

## Why

- Fast
- Simple' \
  -F 'format=pdf' \
  -F 'theme=light'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.documents.slides({
    "markdown": "# My talk\n\n---\n\n## Why\n\n- Fast\n- Simple",
    "format": "pdf",
    "theme": "light"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->documents()->slides([
    'markdown' => '# My talk

---

## Why

- Fast
- Simple',
    'format' => 'pdf',
    'theme' => 'light',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Turn Markdown text into a slide deck: a PDF with one page per slide, or one HTML slideshow you can open in any browser. Slides are split at lines with — (or at # and ## headings), code is coloured, speaker notes are kept out of the slides.

Markdown to Slides works from text and settings, so no file is needed. The required inputs are markdown.

Markdown to Slides is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/documents/slides with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.