mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-03 06:05:45 +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>
16 lines
279 B
Markdown
16 lines
279 B
Markdown
````
|
|
% 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>
|
|
````
|