Files
John MacFarlaneandClaude Opus 4.5 f0991cfcbb Reveal.js writer: add idiomatic highlight.js support.
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>
2026-01-25 13:53:38 +00:00

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(&quot;Hello&quot;)</code></pre>
</section>