Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

moffee

> 开发工具
Open source

moffee: Make Markdown Ready to Present

1.3K stars0 likes2 views
WebsiteGitHub

About

moffee: Make Markdown Ready to Present

moffee

Make Markdown Ready to Present.

moffee is an open-source slide maker that transforms markdown documents into clean, professional slide decks.

  • moffee handles layout, pagination, and styling, so you can focus on your content.
  • There's little to learn. moffee uses simple syntax to arrange and style content to your liking.
  • A live web interface updates slides as you type, allowing you to start a slideshow or export it to PDF.

An Example

Click to expand input markdown document (29 lines)

…

Or you can use other built-in themes:

default
beam
robo











blue
gaia

Installation

moffee is written in Python and is recommended to install with pipx. See our documentation for step-by-step instructions.

bash
pipx install moffee
# or `pip install moffee`

Preview slides in a live web server or export to HTML:

bash
moffee live example.md # launch a server
# or
moffee make example.md -o output_html/ # export to HTML

Usage

To start, write in standard markdown. moffee supports most extended syntax found in Obsidian Flavored Markdown. See the syntax documentation for more details.

markdown
# Markdown Title
Use **bold** and *italic* for emphasis.

- Extended syntax like ~~strikethroughs~~ is supported.

To create a new slide, begin a new heading:

markdown
## Page 1
Some text

## Page 2
This sentence will appear on the second slide.

Alternatively, use --- to manually trigger a new slide:

markdown
## Page 1
Text on the first slide
---
Text on the next slide.

You'll notice the second slide shares the Page 1 title. moffee selects the most suitable title for each slide.

In addition to ---, moffee supports and `===` for in-slide layout. Use to separate elements horizontally:

markdown
Text on the left.

=== places elements vertically and takes precedence over ``. Use them together for flexible layouts:

markdown
Top bun
===
Patty on the left

Lettuce on the right
===
Bottom bun

Options and Styles

Front matter is used to define moffee's behavior. Here are some common used options. Refer to Configuration for the full list.

yaml
---
theme: default # Other available themes are "beam", "robo", "blue" and "gaia"
layout: content # HTML template. Use "centered" for centered alignment.
resource_dir: "." # Relative URLs are based on this directory.
aspect_ratio: "16:9" # Aspect ratio of the slides
---

Any CSS property can be set in the front matter. For example, set a dark gray background for all slides:

yaml
---
layout: content
background-color: darkgray
color: white
---

moffee also supports local style decorators with the syntax @(property=value). Use these within the document to set attributes for specific slides:

markdown
# A refined landing page
Our journey begins here
@(layout=content, background-image='url("https://placehold.co/600x400")')

Contributing

Find moffee helpful? are the best motivation to keep me improving. So thank you! ;)

To submit bug/feature requests/PR, please see CONTRIBUTING.md.

License

MIT License © 2024 Wenbo Pan

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonclicli-appmarkdownpresentation

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具