Update garnish and render_doc functions

Now all element node attributes have to be threaded through the
eph.attributes which is done by the garnish function.
This commit is contained in:
Thelonius Kort
2023-01-19 13:48:56 +01:00
parent 170883490f
commit 078db6e38e
3 changed files with 23 additions and 31 deletions

View File

@ -33,6 +33,11 @@ defmodule Outlook.InternalTree do
options,
fn prop, opts -> Map.put_new(opts, prop, []) end
)
options = Enum.reduce(
~w(elements tunits)a,
options,
fn prop, opts -> Map.put_new(opts, prop, %{}) end
)
InternalTree.garnish(tree, options)
end