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

code blocks have wrapping #44

Closed
aronatkins opened this issue Jun 28, 2021 · 2 comments
Closed

code blocks have wrapping #44

aronatkins opened this issue Jun 28, 2021 · 2 comments

Comments

@aronatkins
Copy link
Contributor

Quarto version: 0.1.296

Using a Markdown document with very-long-line code block:

---
title: wrapping
---

A very long fixed-font block.

```bash
export SOME_VERY_LONG_VARIABLE="https://${SOME_VERY_LONG_SERVER_NAME}:${SOME_VERY_LONG_PORT}/"
```

Rendering this document:

quarto render index.md

Produces the layout (on Safari):

image

The export is on a separate line than the variable definition.

Additionally, the scrollable region has the following appearance when scrolled to the right:

image

The code-block text bleeds out of the grey box is is supposed to be contained in.

On hover:

image

The copy button stays with the box, which means it is to the left of the end of the text.

@aronatkins
Copy link
Contributor Author

aronatkins commented Jun 28, 2021

In comparison, a simple pandoc render (using zenburn to make the boundaries more obvious):

/Library/Quarto/bin/pandoc --self-contained --highlight zenburn index.md -o index.html

produces no line wrapping:

image

and correctly bounds the (scrolled) code:

image

@jjallaire
Copy link
Collaborator

Thanks! Fixed via 047d142

cc @dragonstyle could you review this?

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