Skip to content

Test checking the markup arguments #1005

Open
@mihnita

Description

@mihnita

In u-options.json we have the following test case:

{
  "src": "{#tag u:dir=rtl u:locale=ar}content{/ns:tag}",
  "exp": "content",
  "expErrors": [{ "type": "bad-option" }, { "type": "bad-option" }],
  "expParts": [
    {
      "type": "markup",
      "kind": "open",
      "name": "tag"
    },
    {
      "type": "literal",
      "value": "content"
    },
    {
      "type": "markup",
      "kind": "close",
      "name": "ns:tag"
    }
  ]
},

I think there should not be any error here.

Implementations are free to use markdown as needed, as friendly as possible for the environment where they are used.
The markdown is largely left unspecified.
We don't say what options are valid or not.

I guess in the test above the expErrors is caused by u:dir=rtl and u:locale=ar?
These are in fact very useful options to have in markdown.
If one uses the MF2 markdown to produce html then these options map very naturally to dir and lang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LDML48LDML48 Releasetest-suiteIssue pertains to testsu-namespaceIssue pertains to items in the u: namespace

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions