HCL-TECH-SOFTWARE / domino-jnx

Modern Domino Java API based on JNA access to Domino's C API
https://opensource.hcltechsw.com/domino-jnx/
Apache License 2.0
14 stars 3 forks source link

Add option to emit CD record stream for rich text in document JSON serialization #182

Open jesse-gallagher opened 3 years ago

jesse-gallagher commented 3 years ago

Currently, when using Document JSON serialization, rich-text bodies are converted to HTML and emitted as such. It would be good to have an option when configuring the serializer to emit arrays of CD records instead, as in the design API.

artcathcl commented 3 years ago

Can you give an example? I'm not sure the context exactly, sorry :)

jesse-gallagher commented 3 years ago

Non-design documents go through a different path from design elements - for them, they output the document contents item-by-item. Currently, rich-text items are only emitted as HTML by running it through Domino's CD-to-HTML converter, but we now have enough CD-record support that it would be useful to have an option to emit that instead.