-
Hi, How to set it in Front-matter? In this way I think it's wrong, because I have two times
Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It is a specific feature for Marp Core's extended CSS theming system. Both of Marp Markdown for Marp Core and Marpit Markdown for Marpit framework have not supported defining auto scaling in the front-matter. If enabled auto scaling, some side effects for getting auto scaling will be affected to DOM. The theme CSS author has to turn on auto-scaling at a risk, and handle side effects correctly. Thus, the Markdown author cannot change this setting, to prevent breaking the design provided by theme CSS. If you want to use auto scaling, you have to make a custom theme with enabled auto scaling through the metadata: /* custom-theme.css */
/**
* @theme your-custom-theme
* @auto-scaling true
*/
section {
...
} ---
theme: your-custom-theme
---
# <!--fit--> Enabled auto scaling |
Beta Was this translation helpful? Give feedback.
It is a specific feature for Marp Core's extended CSS theming system. Both of Marp Markdown for Marp Core and Marpit Markdown for Marpit framework have not supported defining auto scaling in the front-matter.
auto-scaling
directive for Markdown front-matter has ever never provided in any Marp ecosystem tools. (Even though, many people are defined it in the front-matter WRONGLY)If enabled auto scaling, some side effects for getting auto scaling will be affected to DOM. The theme CSS author has to turn on auto-scaling at a risk, and handle side effects correctly. Thus, the Markdown author cannot change this setting, to prevent breaking the design provided by theme CSS.
If you want to use a…