mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-23 17:51:32 +00:00
Closes #11420. When using `--syntax-highlighting=idiomatic` with reveal.js output, pandoc now generates HTML compatible with reveal.js's built-in highlight.js plugin: - Code blocks use `<pre><code class="language-X">` format - The template loads highlight.js CSS, JS, and RevealHighlight plugin - Theme defaults to "monokai", configurable via `highlightjs-theme` variable Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
279 B
279 B
% pandoc -t revealjs --syntax-highlighting=idiomatic
# Slide
```python
def hello():
print("Hello")
```
^D
<section id="slide" class="slide level1">
<h1>Slide</h1>
<pre><code class="language-python">def hello():
print("Hello")</code></pre>
</section>