title: Rendering RichText in a Lotus Notes document
body: <p>I am trying to create documents inside a LotusNotes Database by using the COM API. So far everything is working, except for the rendering of the RichText.</p>
  
  <p>The RichText is created by converting a MarkDown document to RichText using Pandoc. Afterwards, I create a new <code>RichTextItem</code>.</p>
  
  <p>In PowerShell it looks like this:</p>
  
  <pre><code># A LotusNotes document
  $Document = $Database.CreateDocument()
  
  # Add a Body field as type RichText
  $RTI = $Document.CreateRichTextItem("Body")
  
  # Append the RichText to the field
  $RTI.AppendText("THE_CONVERTED_MARKDOWN_COMES_HERE")
  $Document.Save($true, $true)
  </code></pre>
  
  <p>But when I view the document, I only see the raw unformatted RichText in the body field. How can I render the text?</p>