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

Heading parsing issue. #95

Open
n-hor opened this issue Jan 28, 2025 · 0 comments
Open

Heading parsing issue. #95

n-hor opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@n-hor
Copy link

n-hor commented Jan 28, 2025

Describe the bug
The heading is not parsed.

The delta code which generates the Problem

{
"ops": [
    {
      "attributes": {
        "background": "transparent",
        "color": "#000000"
      },
      "insert": "Header"
    },
    {
      "attributes": {
        "align": "center",
        "header": 1
      },
      "insert": "\n"
    }
  ]
}

The expected html output the delta should produce

<h1 style="text-align: center;"><span style="color:#000000;background-color:transparent">Header</span></h1>

Actual result:

<p style="text-align: center;"><span style="background-color:transparent"><span style="color:#000000">Header</span></span></p>
@nadar nadar added bug Something isn't working help wanted Extra attention is needed labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants