Sha256: 1d4c2e96a84f99cbd5a215140ba316331dce06a6f2cfeb45544066c15fdb7fd4

Contents?: true

Size: 823 Bytes

Versions: 4

Compression:

Stored size: 823 Bytes

Contents

### Create and Include Page TOC

1.  Maintain markdown text in a separate file.
2.  Create a table of contents for the text.
3.  Use an includer file to include the contents and the text.

#### Text File

It's big, so linking instead of including:  [text file](text.md#lorem-ipsum).

#### Includer File

@[markdown](includer.md)

#### CLI

You can use the command-line interface to perform the creation and inclusion.

##### Command

@[sh](create_and_include.sh)

@[:markdown](../../pristine.md)

#### API

You can use the API to perform the creation and inclusion.

##### Ruby Code

@[ruby](create_and_include.rb)

##### Command

```sh
ruby create_and_include.rb
```

### Finished Page
            
It's big, so linking instead of including:  [page file](page.md#page-contents).

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
markdown_helper-2.1.0 markdown/use_cases/tables_of_contents/create_and_include_page_toc/use_case_template.md
markdown_helper-2.0.0 markdown/use_cases/tables_of_contents/create_and_include_page_toc/use_case_template.md
markdown_helper-1.9.9 markdown/use_cases/tables_of_contents/create_and_include_page_toc/use_case_template.md
markdown_helper-1.9.5 markdown/use_cases/tables_of_contents/create_and_include_page_toc/use_case_template.md