Summary
The Marpit color directive is not currently supported by MarpToPptx. In standard Marpit, color is a core directive alongside backgroundColor — both control slide appearance and are commonly used together for contrast (e.g., white text on a dark background).
Current behavior
backgroundColor is supported as a global, local, and spot directive.
color is silently ignored. Text always renders in the default color regardless of the directive value.
Expected behavior
color should be recognized in all three directive scopes (global front matter, local <!-- color: ... -->, and spot <!-- _color: ... -->), stored in SlideStyle, and applied as the default font color when rendering text shapes to PPTX.
Example
<!-- _backgroundColor: #0f3057 -->
<!-- _color: #FFFFFF -->
# White text on dark blue
Currently this renders dark text on dark blue, which is unreadable. The workaround is to avoid dark backgrounds entirely.
Reference
- Marpit directives documentation lists
color as a recognized local directive.
- The MarpToPptx feature matrix in
doc/marp-markdown.md lists supported directive keys but omits color.
Summary
The Marpit
colordirective is not currently supported by MarpToPptx. In standard Marpit,coloris a core directive alongsidebackgroundColor— both control slide appearance and are commonly used together for contrast (e.g., white text on a dark background).Current behavior
backgroundColoris supported as a global, local, and spot directive.coloris silently ignored. Text always renders in the default color regardless of the directive value.Expected behavior
colorshould be recognized in all three directive scopes (global front matter, local<!-- color: ... -->, and spot<!-- _color: ... -->), stored inSlideStyle, and applied as the default font color when rendering text shapes to PPTX.Example
Currently this renders dark text on dark blue, which is unreadable. The workaround is to avoid dark backgrounds entirely.
Reference
coloras a recognized local directive.doc/marp-markdown.mdlists supported directive keys but omitscolor.