yihui/knitr — Issue #99: Potential Bug: Incorrect Output Format for Markdown Files
Author: ramnathv
Created: 2012-01-22 19:50:55+00:00
State: open

While knitting markdown files, I am not able to get `knitr` to respect the output format. Here is a minimal reproducible example

```markdown

```

On knitting this document, I get

```markdown
{% highlight r %}
opts_knit$set(out.format = "jekyll")
{% endhighlight %}
```
which is incorrect, since setting `out.format=gfm` should wrap code blocks in backticks and not what we see here.

Either I am doing something incorrect, or this is a bug.