Skip to content

Instantly share code, notes, and snippets.

@maxott
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxott/36b90cb2d34e8c54a64c to your computer and use it in GitHub Desktop.
Save maxott/36b90cb2d34e8c54a64c to your computer and use it in GitHub Desktop.
Testing AsciiDoc

Lightweight Markup Languages

require 'asciidoctor'  # (1)

puts Asciidoctor.convert_file('sample.adoc', :header_footer => true)  # (2)
  1. Imports the library

  2. Reads, parses and renders the file

Related information

This is aside text.

It is used to present information related to the main content.

Firefox

Web Browser

Ruby

Programming Language

TorqueBox

Application Server

class BlockProcessor
class DiagramBlock
class DitaaBlock
class PlantUmlBlock

BlockProcessor <|-- DiagramBlock
DiagramBlock <|-- DitaaBlock
DiagramBlock <|-- PlantUmlBlock

Whatever

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment