Skip to content
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

Auto scaling code block & fence #23

Merged
merged 11 commits into from
Aug 27, 2018
Merged

Auto scaling code block & fence #23

merged 11 commits into from
Aug 27, 2018

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 26, 2018

This PR will support auto scaling code block & fence in default theme and gaia theme.

We have seen a lot of slides created by pre-released Marp, but sometimes several code blocks and fences have cropped codes.

In marp-core, we can make use of experience about fitting header. We apply auto scaling to code block and fence when inlineSVG option is true.

Before After
auto-scale-before auto-scale-after

This example is following Deckset's example. We can get the same feature as Deckset by this implementation. (See yhatt/marp#60)

This feature is available only in default theme and gaia theme. uncover theme has disabled this feature because we use elastic code style that has not compatible with auto scaling by SVG.

ToDo

  • Fix unavailable tests
  • Add tests about auto scaling

@yhatt yhatt changed the title [Working in Progress] Auto scaling code block & fence Auto scaling code block & fence Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant