Replies: 1 comment 1 reply
-
Reprex: chunk_content <-
c(
"strwrap(\n \"Volcano plot - Response Size and Significance of Differential\n Expression among all miRNA at Baseline\", width = 80\n)"
)
res <- downlit::highlight(chunk_content, downlit::classes_pandoc())
xfun::raw_string(res)
#> <span class='fu'><a href='https://rdrr.io/r/base/strwrap.html'>strwrap</a></span><span class='op'>(</span>
#> <span class='st'>"Volcano plot - Response Size and Significance of Differential
#> Expression among all miRNA at Baseline"</span>, width <span class='op'>=</span> <span class='fl'>80</span>
#> <span class='op'>)</span> This is as the output in the HTLM document when Details<div class="sourceCode cell-code" id="cb1"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="fu"><a href="https://rdrr.io/r/base/strwrap.html">strwrap</a></span><span class="op">(</span>
<span class="st">"Volcano plot - Response Size and Significance of Differential
Expression among all miRNA at Baseline"</span>, width <span class="op">=</span> <span class="fl">80</span>
<span class="op">)</span></code></pre></div>
</div> As one can see, the whole text inside We get this when Details<div class="cell">
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">strwrap</span>(</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"Volcano plot - Response Size and Significance of Differential</span></span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="st"> Expression among all miRNA at Baseline"</span>, <span class="at">width =</span> <span class="dv">80</span></span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
````html
</details>
So this is probably something to handle in **downlit** directly this line wrapping preservation. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Any idea on how to preserve the within character-string newline while using the option
code-link
true?Indeed, without code-link:
If I enable the code-link, then I got troubles in the rendered code:
Edit for system information:
Beta Was this translation helpful? Give feedback.
All reactions