Sha256: 636f579e68c8e1392840a6eec40f368713f1ea13c43a49417fbed8374b0aa62b
Contents?: true
Size: 1.18 KB
Versions: 7
Compression:
Stored size: 1.18 KB
Contents
### Nest Inclusions An included markdown file can itself include more files. #### File To Be Included ```includee.md```: ```markdown Text for inclusion, and a nested inclusion. @[:markdown](nested_includee.md) ``` #### File For Nested Inclusion ```nested_includee.md```: ```markdown Text for nested inclusion. ``` #### Includer File ```includer.md```: ```markdown File to do nested inclusion. @[:markdown](includee.md) ``` #### Include Via <code>markdown_helper</code> <details> <summary>CLI</summary> ```sh markdown_helper include --pristine includer.md included.md ``` (Option ```--pristine``` suppresses comment insertion.) </details> <details> <summary>API</summary> ```include.rb```: ```ruby require 'markdown_helper' # Option :pristine suppresses comment insertion. markdown_helper = MarkdownHelper.new(:pristine => true) markdown_helper.include('includer.md', 'included.md') ``` </details> #### File with Inclusion Here's the finished file with the inclusion and nested inclusion: ```included.md```: ```markdown File to do nested inclusion. Text for inclusion, and a nested inclusion. Text for nested inclusion. ```
Version data entries
7 entries across 7 versions & 1 rubygems