Open linspw opened 1 year ago
Hello,
how about below?
Transforming:
{
"type": "paragraph",
"content": [{"type": "text", "text": "Hello"}],
"attrs": {"style": {"textAlign": "left"}},
}
To:
<p style="text-align: left">Hello</p>
Side note: For style change you might wanna use mark instead of attrs, in this particular case maybe a new mark can be introduced called left
or align_left
.
Hello everything is fine? Very cool library!
Is there any option to pass all the attributes that are in the node to the attr of the html or style?
For example:
Transforming:
To:
I thank the attention