You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am stuck with rendering headings using rich text field.
It is displayed as a Normal text.
I tried different approaches, like so to no success: <RichText data={data.description} />
Also like this: const html = convertLexicalToHTML({ data: data.description })
<div dangerouslySetInnerHTML={{__html: html}} />
Actually I came to a haste conclusion, based on h1 rendering with the same font size as a regular text. And I would expect it to be bigger. I wonder why it behaves like this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am stuck with rendering headings using rich text field.

It is displayed as a Normal text.
I tried different approaches, like so to no success:
<RichText data={data.description} />
Also like this:
const html = convertLexicalToHTML({ data: data.description })
<div dangerouslySetInnerHTML={{__html: html}} />
Actually I came to a haste conclusion, based on h1 rendering with the same font size as a regular text. And I would expect it to be bigger. I wonder why it behaves like this
Beta Was this translation helpful? Give feedback.
All reactions