Closed
Description
args and kwargs fields of block object are incorrectly filled. When using a single argument like {% mermaid "user.mmd" %}{% endmermaid %}
, the block object get filled as
{ body: '', args: [], kwargs: 'user.mmd', blocks: [] }
and when using two arguments like {% mermaid "user.mmd", "2" %}{% endmermaid %}
it gets filled as
{ body: '', args: [ 'user.mmd' ], kwargs: '2', blocks: [] }
According to the docs, positional arguments should be filled in args
always, that makes sense. Keyword arguments ({% mermaid src="user.mmd" %}{% endmermaid %}
) seems to works as expected:
{ body: '',
args: [],
kwargs: { src: 'user.mmd', __keywords: true },
blocks: [] }
By the way, I think that __keywords
field is mostly useless...
Metadata
Metadata
Assignees
Labels
No labels