Hello,
I have the pygmentsCodeFences set to true in my site config.toml.
And here is the example code block:
+++
title = "Org Source Block"
+++
```org
# Org comment
```
With that I get this HTML (simplified to highlight the issue) generated by Hugo:
<div class="post">
<h1 class="post-title">Org Source Block</h1>
# Org comment
</div>
If I remove that language identifier:
+++
title = "Org Source Block"
+++
```
# Org comment
```
, OR set pygmentsCodeFences to false, the HTML is:
<div class="post">
<h1 class="post-title">Org Source Block</h1>
<pre><code class="language-org"># Org comment
</code></pre>
</div>
I believe this behavior is because org is not a supported Lexer by Pygments. But even in that case, can Hugo be fixed so that the HTML output is the latter of the above even with pygmentsCodeFences set to true. i.e. even if a language foo is not supported by Pygments, wrap the user-specified code block in:
<pre><code class="language-foo">some foo code
</code></pre>