Closed nickmoreton closed 3 years ago
This looks good, but we're missing some documentation, and it looks like the HTML block building is incomplete. Is that to follow in another ticket?
Yes the HTML block is built in codebase ticket #70, at that point I will be able to complete the docs. There are 2 PR before that one and each one builds on the docs a little.
Satisfies https://projects.torchbox.com/projects/wordpress-to-wagtail-importer-package/tickets/66
At this point the included shortcode handler is registered. There's no output here yet that is added to the wordpress body content.
The tests here will ensure the handler is added to SHORTCODE_HANDLERS
Also tests the
pre_filter
method will find the shortcode from a passed inshortcaode_name
and output the custom HTML tag.Also tests the
construct_block
method outputs StreamField json. The json may be changed in upcoming work to suit the final use case.The initial docs have further work done in upcoming PR's