Sha256: 1a068315c1061dccf07505c5ad48bf8f18f2d18e79a85d9ec4ffdd3d610ba02b

Contents?: true

Size: 1.41 KB

Versions: 11

Compression:

Stored size: 1.41 KB

Contents

# Demo block nicknames

```opts :(document_options)
pause_after_script_execution: true
```

## Blocks with no name
::: This block has no name.
::: The code block is displayed.

```bash
echo This block has no name.
```

## Blocks with nicknames
::: The code block is displayed.
::: The nickname can be used to require the block.

```bash :[A]
echo 'This block has a nickname: [A].'
echo The full block is displayed in the menu.
```

### Nicknames in documents
::: Execute this block that requires the block above by its nickname.
```bash :[B] +[A]
echo 'This block has a nickname: [B].'
echo 'This block requires block [A].'
```

### Nicknames from the command line
Block `[A]` is called from the command line.
```bash
mde examples/nickname.md '[A]'
```

## Blocks with hidden names
### There is a hidden block here.
::: This block has a hidden name: (C).
::: This block does not appear in the menu.
::: This block requires the block above by its nickname.
```bash :(C) +[A]
echo 'This block has a hidden name: (C).'
echo This block is hidden from the menu.
echo 'This block requires block [A].'
```

### Hidden names from the command line
Block `(C)` is called from the command line.
```bash
mde examples/nickname.md '(C)'
```

### Block without a name
::: This block does not have a name.
::: It requires hidden block (D).
```bash +(D)
echo "Block without a name"
```
::: This block has a hidden name: (D).
```bash :(D)
echo "Block D"
```

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
markdown_exec-2.5.0 examples/nickname.md
markdown_exec-2.4.0 examples/nickname.md
markdown_exec-2.3.0 examples/nickname.md
markdown_exec-2.2.0 examples/nickname.md
markdown_exec-2.1.0 examples/nickname.md
markdown_exec-2.0.8.4 examples/nickname.md
markdown_exec-2.0.8.3 examples/nickname.md
markdown_exec-2.0.8.2 examples/nickname.md
markdown_exec-2.0.8.1 examples/nickname.md
markdown_exec-2.0.8 examples/nickname.md
markdown_exec-2.0.7 examples/nickname.md