Italic
All the text formatted as italic
will be rendered using <i />
tag, anywhere in the document.
The element receives text
and key
as parameter and should return node type value.
ℹ️
Node Type Value is anything that can be rendered: numbers, strings, elements or an array.
Pre-Defined Syntax
annotations: {
italic: (text, key) => (
<i key={key}>
{text}
</i>
),
}