Comments (2)
It's a known limitation from CSS absolute positioning for header and footer (position: absolute
). Content-aware scaling is difficult in HTML rich contents (#197), and the slide author should reduce contents or change the style such as font-size
for the current slide.
Escape-hatch: In Marp Core v3, you can use <marp-auto-scaling>
custom element directly for down-scaling. Please enable HTML rendering in the Marp tool you are using. (--html
in Marp CLI)
---
header: test
footer: test
style: |
marp-auto-scaling[data-inside-container] > * {
min-width: 1280px;
}
marp-auto-scaling[data-inside-container]::part(svg) {
height: 600px;
}
---
<marp-auto-scaling data-inside-container data-downscale-only>
# Hello
Write your contents here
</marp-auto-scaling>
---
...
from marp-core.
Awesome! Having more code lines is such a big help
from marp-core.
Related Issues (20)
- Emoji Rendering Discrepancy Between Inline and Block Elements HOT 1
- Usage or marp-core in browser context HOT 2
- Emoji plugin: Allow using other emoji vendors HOT 3
- [bug] import failure `i is not a function` HOT 5
- Trouble rendering HTML and Markdown in the same line HOT 1
- A Marp constructor option, emoji.twemoji.base, seems not working HOT 1
- Overriding hljs-attr color does not work HOT 2
- [Regression] Auto-scaling for KaTeX block is always enable regardless of `@auto-scaling` theme metadata
- TypeError: u2 is not a function HOT 7
- Nanoid error HOT 4
- Images gallery HOT 1
- per-element animations HOT 2
- How to create, publish and use a theme? HOT 1
- Enable support for HTML code snippets by default HOT 2
- Add support for hgroup HOT 2
- Code block in HTML presentation issues Uncaught DOMException: Operation is not supported HOT 3
- Transparent images broken with regular `[]()` tags but not with `[bg]()` HOT 2
- [v4] Always treat the slide container of built-in themes as block element
- Support for merge cells in tables HOT 5
- Uncaught Error: Dynamic require of "punycode" is not supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marp-core.