Skip to content

Files

Latest commit

 

History

History
59 lines (45 loc) · 986 Bytes

source-rouge.adoc

File metadata and controls

59 lines (45 loc) · 986 Bytes

Source Code with Rouge

Requirements

Warning
This will not work from Asciidoctor.js
Note

For this to work. You need to add:

gem 'rouge'

to your Gemfile and re-run:

bundle install

Use the Source

fn main() {
    println!("Hello World!");
}

Stretch the Source

fn main() {
    println!("Hello stretched World!");
}

Rouge Features

This is broken see TODO in this source

ORDERED_LIST_KEYWORDS = {
  'loweralpha' => 'a',
  'lowerroman' => 'i',
  'upperalpha' => 'A',
  'upperroman' => 'I',
}