Closed
Description
Type for Raw HTML
There's no type for raw
node.
Problem
In TypeScript, when try to push raw
type nodes (e.g. u('raw', 'some raw html')
) on to a hast tree, you will get a complier error, because raw
is not included in acceptable children types.
Expected behaviour
Should there be a Raw
type declared publicly?