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

Prevent showing scrollbar in code block #60

Merged
merged 3 commits into from
Jan 15, 2019
Merged

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Jan 13, 2019

Marp Core is already supported auto scaling for code. However, default theme that has based on GitHub styling is assigned overflow: auto style to code. So sometimes it would appear scrollbars in code.

It means that not-working scrollbar is appeared in exported PDF. In fact, this behavior made confusion to user. See: https://stackoverflow.com/questions/44660044/markdown-to-pdf-and-scrollbars

In theory, we not have to use scrollbars in auto-scaled code. Thus, we added overflow: visible style to <pre>.

@yhatt yhatt changed the title Prevent showing scrollbar in code element Prevent showing scrollbar in code block Jan 13, 2019
@yhatt yhatt merged commit e16cd71 into master Jan 15, 2019
@yhatt yhatt deleted the default-theme-code-style branch January 15, 2019 01:27
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.

None yet

1 participant