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

Clarification about code block wrap width #7

Closed
AB1908 opened this issue Aug 16, 2021 · 1 comment
Closed

Clarification about code block wrap width #7

AB1908 opened this issue Aug 16, 2021 · 1 comment

Comments

@AB1908
Copy link

AB1908 commented Aug 16, 2021

image
The first code block is wrapped properly while the second is not. Is this a design choice? If so, would you mind explaining the rationale behind it?

On a different note, many thanks for your work especially on pandoc-sidenotes. It is a supremely useful library and has saved me many hours of experimentation.

@jez
Copy link
Owner

jez commented Aug 18, 2021

The first code block is wrapped properly while the second is not. Is this a design choice? If so, would you mind explaining the rationale behind it?

https://github.com/jez/tufte-pandoc-css/blame/master/docs/index.md#L58

The first code block is a normal one, the second is a full width one. In the above example it doesn't matter, because at most desktop screen widths the code snippet will fit without scrolling or wrapping anyways. But tufte-css has .fullwidth classes for other non-prose elements, so I figured I'd do the work to make .fullwidth work for figures too.

@AB1908 AB1908 closed this as completed Aug 23, 2021
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

No branches or pull requests

2 participants