New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need support for variables/macros in marp #179

csj-github opened this Issue May 12, 2017 · 1 comment


None yet
2 participants

csj-github commented May 12, 2017

Today I use the footer on each slide as the "Presentation Title".

This requires to explicitly define the footer separately. Tomorrow if we change the Presentation Title, I will need to update the Footer separately. It should be possible to define a variable with a "text string" and use it as text content with in the presentation


<!-- Comment: First Slide --->
<var1>This is the title for my presentation!</var1>
# $var1$

<!-- Comment: Second Slide --->
<!-- Footer: $var1$ -->


This comment has been minimized.


SuperV1234 commented Oct 8, 2017

@csj-github: I implemented Javascript slide metaprogramming in my fork by literally calling eval(...) on the Markdown source, adding some syntactic sugar for injection. Here's an example:


PRs welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment