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

Inline code not convert properly when the code contain additional format #117

Open
drgx opened this issue Oct 10, 2022 · 0 comments
Open

Comments

@drgx
Copy link

drgx commented Oct 10, 2022

The example use case is this:

the ops

[
  {
      "insert": {
          "type": "text",
          "value": "this is "
      },
      "attributes": {
          "code": true
      }
  },
  {
      "insert": {
          "type": "text",
          "value": "code"
      },
      "attributes": {
          "bold": true,
          "code": true
      }
  }
]

Current default implementation will return

<code>This is</code> <strong></code>Code</code></strong>

image

The default renderer causing two separate code tag instead of single code block.

The expected renderer result should be

<code>This is <strong>Code</strong></code>

Expected renderer

image

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