examples/source-rouge.adoc in asciidoctor-revealjs-3.1.0 vs examples/source-rouge.adoc in asciidoctor-revealjs-4.0.0
- old
+ new
@@ -4,10 +4,11 @@
// :header_footer:
= Source Code with Rouge
:icons: font
:source-highlighter: rouge
:rouge-style: monokai
+:docinfo: private
== Requirements
WARNING: This will not work from Asciidoctor.js
@@ -35,7 +36,24 @@
[source, rust, role="stretch"]
----
fn main() {
println!("Hello stretched World!");
+}
+----
+
+== Rouge Features
+
+// TODO missing `hll` class from styles provided Asciidoctor for rouge
+// TODO linenums feature affects listing size
+
+This is broken see `TODO` in this source
+
+[source,ruby,highlight=2..4]
+----
+ORDERED_LIST_KEYWORDS = {
+ 'loweralpha' => 'a',
+ 'lowerroman' => 'i',
+ 'upperalpha' => 'A',
+ 'upperroman' => 'I',
}
----