-
Notifications
You must be signed in to change notification settings - Fork 228
Consider expanding substitutions to include nested substitutions #761
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Context
As of v0.18 it seems the MyST substitution syntax has been changed and now substitutions must be of type (<class 'str'>, <class 'int'>, <class 'float'>)
Proposal
Would you consider adding nested items to that list?
For example, this no longer works as params is not of type str, int, float
myst:
substitutions:
params:
vars:
name: Ximena
title: Smudge
I want to be able to access that variable like this: {{ params.vars.name }}
The reason for this is because that substitution is auto-generated from a dictionary:
{"params": {"vars": {"name": "Ximena", "title": "Smudge}}}
Tasks and updates
Other suggestions on how to get around this issue are welcome, I'll trouble shoot and poke around to see if there's a good resolution with the existing codebase.
Potentially related to #747
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request