 
       iex> callback = fn (result) -> {:ok, result} end
       iex> Cmark.to_xml(~s(Something "smart" and ... ---you get it!), callback, [:smart])
-      {:ok, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">
-      <document xmlns=\"http://commonmark.org/xml/1.0\">\n  <paragraph>\n    <text>Something </text>
-          <text>“</text>\n    <text>smart</text>\n    <text>”</text>\n    <text> and </text>\n    <text>…</text>
-          <text> </text>\n    <text>—</text>\n    <text>you get it</text>\n    <text>!</text>\n  </paragraph>
-      </document>\n"}
-
-      iex> callback = fn (results) ->
-      iex>   Enum.map(results, &String.strip/1) |> Enum.join("<joiner>")
+      {
+        :ok,
+        "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n  <paragraph>\n    <text xml:space=\"preserve\">Something “smart” and … —you get it!</text>\n  </paragraph>\n</document>\n"
+      }
+
+      iex> callback = fn (results) ->
+      iex>   Enum.map(results, &String.trim/1) |> Enum.join("<joiner>")
       iex> end
       iex> Cmark.to_xml(["en-dash --", "ellipsis..."], callback, [:smart])
-      "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">
-      <document xmlns=\"http://commonmark.org/xml/1.0\">\n  <paragraph>\n    <text>en</text>\n    <text>-</text>
-          <text>dash </text>\n    <text>–</text>\n  </paragraph>
-      </document><joiner><?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">
-      <document xmlns=\"http://commonmark.org/xml/1.0\">\n  <paragraph>\n    <text>ellipsis</text>\n    <text>…</text>
-        </paragraph>\n</document>"
+      "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n  <paragraph>\n    <text xml:space=\"preserve\">en-dash –</text>\n  </paragraph>\n</document><joiner><?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n  <paragraph>\n    <text xml:space=\"preserve\">ellipsis…</text>\n  </paragraph>\n</document>"
 
   """
   @spec to_xml(string_or_list, callback_fun, options_list) :: string_or_list


  ## Examples

      iex> callback = fn (result) -> "HTML is #{result}" |> String.strip end
      iex> Cmark.to_html("test", callback)
      "HTML is <p>test</p>"

      iex> callback = fn (results) ->
      iex>   Enum.map(results, &String.strip/1) |> Enum.join("<hr>")
      iex> end
      iex> Cmark.to_html(["list", "test"], callback)
      "<p>list</p><hr><p>test</p>"


  ## Examples

      iex> callback = fn (result) -> "Manpage is #{result}" |> String.trim end
      iex> Cmark.to_man("test", callback)
      "Manpage is .PP\ntest"

      iex> callback = fn (results) ->
      iex>   Enum.map(results, &String.trim/1) |> Enum.join("%%joiner%%")
      iex> end
      iex> Cmark.to_man(["list", "test"], callback)
      ".PP\nlist%%joiner%%.PP\ntest"
