Skip to content

Front-matter variables? #387

Open
Open
@boldandbusted

Description

@boldandbusted

Howdy. I'd like to use "front matter" variables in the Markdown, including in headings. Is this possible? I have made some attempts, but the heading doesn't interpret the {{ }}, it prints it literally.

I'm using this as the guide (referenced in the Marp docs): https://jekyllrb.com/docs/front-matter/#custom-variables

I'd like to do something like the following:

---
title: Making money - is it possible?
---

# Welcome to "{{ page.title }}"

# Here begins my presentation

## This is my slidedeck
## No one can make a slidedeck like I can
### I have very low hubris

Here, the first slide should contain this rendered text:

Making money - is it possible?

I hope this makes sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    better-for-pluginIt should be better as Marpit plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions