Skip to content

Are block arguments parsed properly? #804

@uliska

Description

@uliska

I'm writing a plugin and have something like this in it:

  blocks: {
      authors: {
        process: function(block) {
          return "<div class=\"authors\">Main authors: "+block.args+"</div>";
        }
      }
  }

Basically this works, but I have the impression that the last argument in the input file is not included in the args list:

{% authors "The author", "Someone else", "Yet another one" %}{% endauthors %}
will give me The author,Someone else, while
{% authors "The author" %}{% endauthors %}
will result in an empty list.

Is this a bug or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions