Skip to content

Substitutions within code blocks #6

@lcawl

Description

@lcawl

I was playing with some content copied from https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html in #4
I noticed that with the following source content:

The Linux archive for {{es}} v{{version}} can be downloaded and installed as follows:

```{code} sh
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-{{version}}-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-{{version}}-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-{{version}}-linux-x86_64.tar.gz.sha512 <1>
tar -xzf elasticsearch-{{version}}-linux-x86_64.tar.gz
cd elasticsearch-{{version}}/ <2>
```
...

The "{{es}}" and "{{version}}" work in the paragraph but not within the code block:

Image

If this is not supported in the proposed doc system, we'll need to find an alternative way to allow users to cut and paste this type of variable command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions