Skip to content

[Feature Request] Interpolation Expression in code block (Allow no v-pre at code block) #413

Closed
@fago

Description

@fago

I'm using vue press 0.8.4 for technical docs and generally works great, thanks a lot for the great project!

However, we'd like to use variable expansion in markdown code. Example, a code block like


```
cd ~/projects/{{ $project }}/vcs/
```

would show cd ~/projects/{{ $project }}/vcs/ although the variable $project is registered. It works correctly when markdown code formatting is not used.
Is there a way to make variable expansion / vue processing of markdown processed html work?

This feature would allow the technical docs to use replacement patterns where meaningful, so any changes to those docs can be done easily by changing the variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions