ever wondered how notion shows text with different annotations with layers of formatting?
notion stores a piece of text in
[string, Array<TextAnnotation>] format.
for example -
a bold href text “Click here” is stored as:
[“Click here”, [[“b”], [“a”, “
stilest.com”]]