Skip to main content

Transform a flat markdown to a reveal.js presentation.

Project description

mdtoreveal

It's an extremly basic Markdown to reveal.js conversion tool.

Yes reveal already supports Markdown, but it needs specifically crafted Markdown with strange separators which I don't personally like. And yes you can also do this using pandoc but it mess with syntax highlighting by handling it.

Usage

mdtoreveal my_prez.md --output my_prez.html

It's also allowed to skip the output file, so its name is guessed, the previous command is equivalent to the following one:

mdtoreveal my_prez.md

Syntax

Let's start with pure Markdown:

# Big titles makes reveal.js "columns"

## Sub titles make reveal.js "slides" inside columns.

```python
print("Syntax highlighting works")
```

::: notes

Look, this is a personal note, it's not mandatory to use them, but you still can.
Everything betwen `::: notes` and the next slide is only visible by the presenter.

## 2nd slide

Blah blah …

Example

It converts this into this (this one uses a .gitlab-ci.yml to publish on push).

Configuration

There's not, deal with it, don't loose your time on fine-tuning, and focus on your presentation.

Still, you prefer a dark theme? It's unreadable on video projectors, keep this one, trust me.

You want bigger code blocks? You already have 12 lines and 61 columns, if you stuff more, it won't be readable anyway, stick to it.

You want a bigger font for your code blocks, so it's still readable from the end of the room? I can understand that, I used to use a bigger one too, let's talk in the issues.

You're using a Makefile?

Me too ♥ this should do:

SRCS := $(wildcard *.md)
HTML := $(SRCS:.md=.html)

.PHONY: static
static: $(HTML)

%.html: %.md
	mdtoreveal $< -o $@

Contributing

pip install -e .[dev]
tox -p all

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdtoreveal-0.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdtoreveal-0.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file mdtoreveal-0.4.tar.gz.

File metadata

  • Download URL: mdtoreveal-0.4.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mdtoreveal-0.4.tar.gz
Algorithm Hash digest
SHA256 6994656ffed61229f39818347e81392f1ba87608699ff04e33ad8575ec1a21c4
MD5 c59b3437c23c005a0f0357acdb9ac354
BLAKE2b-256 a6e89fbe12fdc2b10435765a6f031712024c53d282d50c3609267896a2031ad0

See more details on using hashes here.

File details

Details for the file mdtoreveal-0.4-py3-none-any.whl.

File metadata

  • Download URL: mdtoreveal-0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mdtoreveal-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 73b080dcfc294cd8d7e7231e290ddec76dbaa6f49b3100a45244c7c7eb7dc8da
MD5 cee282113d790f20d7e1da4abf432dfd
BLAKE2b-256 c6b5efb9f8414a57257787ea3430058892664f046b30ddfc1785b08ba462842f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page