Skip to content

Instantly share code, notes, and snippets.

@paulhibbitts
Last active May 13, 2024 15:48
Show Gist options
  • Save paulhibbitts/4f0340cbc85212c005dc4324dbdc2390 to your computer and use it in GitHub Desktop.
Save paulhibbitts/4f0340cbc85212c005dc4324dbdc2390 to your computer and use it in GitHub Desktop.

Document Title

Table of Contents

An example of a basic AsciiDoc document prepared by Doc Writer.

Introduction

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

  • item 1

  • item 2

  • item 3

Main

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!'
end

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment