-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Why is asis
output rendered as monospace?
#166
Comments
@fkohrt thanks for raising the issue. No matter what the results will be treated with Quarto's HTML styling. The main difference with On the raw styling, this can be achieved by specifying values for |
asis
output is rendered in monospaceasis
output is rendered as monospace?
asis
output is rendered as monospace?asis
output rendered as monospace?
@coatless Thanks for your fast response! To me it still feels like the current behavior is a bug, as I reckon {webr-r} chunks should behave similar to {r} chunks. With {r} chunks, More details{r} chunksFull
|
In any case, thank you so much for putting the effort into developing and maintaining these great Quarto extensions, it feel's awesome to mix webR and Pyodide in the same document! |
Hmm, I see what you're getting at. Thinking a bit... We must provide some structure to the output so that it falls into our output area: <div id="qwebr-output-code-area-2" class="qwebr-output-code-area" aria-live="assertive">
<pre>
<div>
# Results must appear here
</div>
</pre>
</div> The quarto-webr/_extensions/webr/qwebr-compute-engine.js Lines 117 to 129 in ebcad68
Thinking more, another option would be to add a CSS class directly to the output area if the cell is flagged as Note You can add custom CSS classes to the entire cell by using the |
Bug description
When setting the chunk option
results: "asis"
oroutput: "asis"
, the results are rendered in monospace, although I would expect them to be treated as raw HTML without any additional styling.Steps to reproduce
Your environment
Quarto check output
quarto check
The text was updated successfully, but these errors were encountered: