jgm / djot

A light markup language
https://djot.net
MIT License
1.67k stars 43 forks source link

Parenthesis make attributes disapper #65

Closed matklad closed 1 year ago

matklad commented 1 year ago
(some text){.attr}
{
  "tag": "doc",
  "children": [
    {
      "tag": "para",
      "children": [
        {
          "tag": "str",
          "text": "(some text)"
        }
      ]
    }
  ],
  "footnotes": [],
  "references": []
}

There's no trace of .attr in the output, and no warnings.

I feel like something other than silently discarding attributes should happen here, though I am not sure what exactly