Sha256: 497f758bf35ec648ec1bed2bbbc48b00b4e9de8b5e37d7cdf7e1a316fd2d567d

Contents?: true

Size: 920 Bytes

Versions: 7

Compression:

Stored size: 920 Bytes

Contents

### Include with Added Comments

By default (that is, without option ```--pristine```) file inclusion adds comments that:

* Identify the includer file.
* Identify each includee file.

#### Includee File

```includee.md```:
```markdown
Text to be included.
```

#### Includer File

```includer.md```:
```markdown
@[:markdown](includee.md)
```

#### CLI

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

##### Command

```sh
markdown_helper include includer.md included.md
```

#### API

You can use the API to perform the inclusion.

##### Ruby Code

```ruby
require 'markdown_helper'

markdown_helper = MarkdownHelper.new
markdown_helper.include(includer.md, included.md)
```

#### File with Inclusion and Added Comments

```included.md```:
```markdown
Text to be included.
```

The file path for the included file is relative to the .git directory.

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
markdown_helper-2.5.4 markdown/use_cases/include/include_with_added_comments/use_case.md
markdown_helper-2.5.3 markdown/use_cases/include/include_with_added_comments/use_case.md
markdown_helper-2.5.2 markdown/use_cases/include/include_with_added_comments/use_case.md
markdown_helper-2.5.1 markdown/use_cases/include/include_with_added_comments/use_case.md
markdown_helper-2.5.0 markdown/use_cases/include/include_with_added_comments/use_case.md
markdown_helper-2.4.0 markdown/use_cases/include/include_with_added_comments/use_case.md
markdown_helper-2.3.0 markdown/use_cases/include_files/include_with_added_comments/use_case.md