This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
Suggestions for serializing individual nodes? #569
Unanswered
haveanicedavid
asked this question in
Q&A
Replies: 1 comment
-
Yea, I'm not sure – you're probably the first person to do this as the serializer is designed to work on a whole document. Perhaps you could create a fake "doc" node before passing into the serialize method? 😬 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm trying to configure a custom
value()
output that requires serializing individual nodes to markdown (instead of the entire document). Say I wanted to serialize all paragraphs:This will produce an output with correct text, but not include any marks ie if the paragraph is
Some _italic text_
, it will serialize toSome italic text
.I've been digging through the serializer code, but was hoping someone might have a suggestion as to what's going wrong
Beta Was this translation helpful? Give feedback.
All reactions