Sha256: e2fa404e4156da66810f5d3f736c034601f88a2d749854b245fd9aa747330231

Contents?: true

Size: 1.23 KB

Versions: 24

Compression:

Stored size: 1.23 KB

Contents

# Demo document linking

```opts :(document_options)
dump_inherited_lines: true
pause_after_script_execution: false
user_must_approve: false
```

::: * This is document 1 *
::: This document links to a matching document to demonstrate navigation between documents.

::: This Bash block displays the value of variables "page1_var_via_environment" and "page2_var_via_environment"

```bash :show_vars
source bin/colorize_env_vars.sh
colorize_env_vars 'vars for page2' PAGE2_VAR_VIA_INHERIT page2_var_via_environment
colorize_env_vars 'vars for page3' PAGE3_VAR_VIA_INHERIT page3_var_via_environment
```

```bash :(vars2)
PAGE2_VAR_VIA_INHERIT=for_page2_from_page1_via_inherited_code_blocks
```

```link :linked2 +(vars2)
file: examples/linked2.md
```

```link :(linked2) +(vars2)
file: examples/linked2.md
```

::: This Link block
::: 1. requires a block that sets environment variable PAGE2_VAR_VIA_INHERIT,
::: 2. navigates to document 2, and
::: 3. executes block "show_vars" to display the imported PAGE2_VAR_VIA_INHERIT.
::: Any script generated by page 2 will contain the inherited code.

```link :linked2_import_vars +(vars2)
file: examples/linked2.md
block: show_vars
vars:
  page2_var_via_environment: for_page2_from_page1_via_current_environment
```

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
markdown_exec-2.5.0 examples/linked1.md
markdown_exec-2.4.0 examples/linked1.md
markdown_exec-2.3.0 examples/linked1.md
markdown_exec-2.2.0 examples/linked1.md
markdown_exec-2.1.0 examples/linked1.md
markdown_exec-2.0.8.4 examples/linked1.md
markdown_exec-2.0.8.3 examples/linked1.md
markdown_exec-2.0.8.2 examples/linked1.md
markdown_exec-2.0.8.1 examples/linked1.md
markdown_exec-2.0.8 examples/linked1.md
markdown_exec-2.0.7 examples/linked1.md
markdown_exec-2.0.6 examples/linked1.md
markdown_exec-2.0.5 examples/linked1.md
markdown_exec-2.0.4 examples/linked1.md
markdown_exec-2.0.3.2 examples/linked1.md
markdown_exec-2.0.3.1 examples/linked1.md
markdown_exec-2.0.3 examples/linked1.md
markdown_exec-2.0.2 examples/linked1.md
markdown_exec-2.0.1 examples/linked1.md
markdown_exec-2.0.0 examples/linked1.md