Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDC break when using \' to escape ' inside a v-binded prop #273

Open
leo91000 opened this issue Oct 30, 2024 · 0 comments
Open

MDC break when using \' to escape ' inside a v-binded prop #273

leo91000 opened this issue Oct 30, 2024 · 0 comments

Comments

@leo91000
Copy link

To reprodruce :

::foo{:test='{"foo":"I\'d love to}'}
::

Outputs AST :

{
  "type": "root",
  "children": [
    {
      "type": "element",
      "tag": "p",
      "props": {},
      "children": [
        {
          "type": "text",
          "value": "::foo{:test='{\"foo\":\"I'd love to}'}\n::"
        }
      ]
    }
  ]
}

But what is expected :

{
  "type": "root",
  "children": [
    {
      "type": "element",
      "tag": "foo",
      "props": {
        ":test": "{\"foo\":\"I'd love to}"
      },
      "children": []
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant