alphagov / google-docs-to-11ty

Convert a docs export to an 11ty website
0 stars 0 forks source link

See if we can make the parsing and serialising of the `html` nodes part of the processor #14

Open romaricpascal opened 6 months ago

romaricpascal commented 6 months ago

The parsing of HTML seems close to be a plugin that could be the first to run.

For the serialisation, we could use the handlers option of mdast-to-markdown to handle unknow nodes. This might require a little trickery and passing a Proxy to let us intercept unknown nodes, as the tool is harsh on unknown nodes.