Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 1.58 KB

basic-example.adoc

File metadata and controls

76 lines (54 loc) · 1.58 KB

Document Title

A simple AsciiDoc document.

Introduction

A paragraph followed by an unordered list[1] with square bullets.[2]

  • item 1

  • item 2

Here’s how you say “Hello, World!” in Prawn:

Listing 1. Create a basic PDF document using Prawn
require 'prawn'

Prawn::Document.generate 'example.pdf' do
  text 'Hello, World!' // (1)
end
  1. Add Hello, World! as text

Equations and Formulas

If you need to get technical in your writing, Asciidoctor integrates with MathJax.

Here some examples:

\$sqrt(4) = 2\$

Water (\$H_2O\$) is a critical component.

Icons

Size & title

Do you want to drink a small [cocktail] or a tall [beer] ?

Fixed-width

[ruler vertical] vertical ruler
[ruler horizontal] horizontal ruler

Rotate

[flag]
[flag]
[flag]
[flag]
[flag]

Octicons

You can [repo forked] me on [mark github]…​ bip bip bop [hubot@octicons]

FontAwesome solid (default), regular and brand

[address book] [address book] [chrome@fab]

Conclusion

That’s all, folks!


1. AsciiDoc supports unordered, ordered, and description lists.
2. You may choose from square, disc, and circle for the bullet style.