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

[Feature Request] Add support for code block inside blockquote #1022

Closed
rgaiacs opened this issue Apr 19, 2015 · 2 comments
Closed

[Feature Request] Add support for code block inside blockquote #1022

rgaiacs opened this issue Apr 19, 2015 · 2 comments
Labels
feature Feature requests
Milestone

Comments

@rgaiacs
Copy link

rgaiacs commented Apr 19, 2015

knitr supports inline code inside blockquote. For example

```{r}
x <- 1
```

Test `r x`

> Test `r x`

is converted to

<pre class="r"><code>x &lt;- 1</code></pre>
<p>Test 1</p>
<blockquote>
<p>Test 1</p>
</blockquote>

Will be great if code block inside blockquote is also allowed. For example

> ```{r}
> x <- 1
> ```

Test `r x`

which right now gives

Error in eval(expr, envir, enclos) : object 'x' not found
Calls: <Anonymous> ... in_dir -> inline_exec -> withVisible -> eval -> eval
@yihui yihui added this to the v1.10 milestone Apr 19, 2015
@yihui yihui added the feature Feature requests label Apr 19, 2015
@yihui yihui closed this as completed in 3f52d47 Apr 19, 2015
yihui added a commit that referenced this issue Apr 19, 2015
yihui added a commit to yihui/knitr-examples that referenced this issue Apr 19, 2015
@yihui
Copy link
Owner

yihui commented Apr 19, 2015

Done. Thanks!

@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Feature requests
Projects
None yet
Development

No branches or pull requests

2 participants