# Example of including a file

# Basic tests

Advanced Lists

`org-ruby` supports the following list features of `org-mode`:

# Nested lists

- You can have nested lists
- This is first-level
  - This is a nested item
  - This is another nested item
- Back to the first level
- Another first level item
  1. This is a numbered list nested within the unordered list
  2. This is another numbered item

Note the list ends just some more text. Make sure both list blocks are closed.

# Multi-paragraph list items

This list will end with the end-of-file. Make sure all blocks are closed.

- This is a list item
- This list item has multiple paragraphs.

  This is paragraph two.

  And paragraph three.

- Back to a list item.
  - Nested, just for grins!
  - woo hoo!

# Hyphen, Plus and Asterisk can be used to create lists

- One
  - uno
    - ichi
  - uno
- Two
  - dos
    - ni
    - ni
- Three
- Four

BLOCKCOMMENT

Testing that the next part is ignored

And now back to normal!

# Within a commented block

    <li>[ ] &#8220;smart quotes&#8221;</li>
    <li>[ ] I think I need this for &#8216;single quotes&#8217; too. Don&#8217;t I?</li>
    <li>[ ] Em dashes would be great &#8212; wouldn&#8217;t they?</li>
    <li>[ ] I hope to develop an en dash sometime in 2010 &#8211; 2011.</li>

# Within a center block

The following included file will be centered:

Inline Images

Per the org-mode spec, you can include inline images as links without any descriptive link text, like this:

I currently do not support the caption/link syntax, but I can include the inline image. I recognize the following image file types:

- .jpg
- .png
- .gif
- .jpeg

# Within a blockquote

This is similar to the center block:

> Before Inline Images

> Per the org-mode spec, you can include inline images as links without any descriptive link text, like this:

> I currently do not support the caption/link syntax, but I can include the inline image. I recognize the following image file types:

> - .jpg
> - .png
> - .gif
> - .jpeg

> After

# Within an example block, it should not be possible to include a file.

    #+INCLUDE: "./spec/html_examples/only-list.org"

# Within a list

- A list that has an included file directive
  - Only go to the first level
    - when included it always goes to the first level and absorbs next list items
- This file has only a list
- Note it will end with nothing other than a list item.
- the world wants to know: Will org-ruby write the closing ul tag?

- 3rd level

- 3rd level, though it should be a different list

# Within a table, cannot be included

One | Two | Three
--- | --- | ---
#+INCLUDE: “./spec/html_examples/only-list.org” | Five | Six
Seven | Eight | Nine

# When including a file as an example

    - This file has only a list
    - Note it will end with nothing other than a list item.
    - the world wants to know: Will org-ruby write the closing ul tag?

# When including a file as an quote

> - This file has only a list
> - Note it will end with nothing other than a list item.
> - the world wants to know: Will org-ruby write the closing ul tag?