Closed nickmoreton closed 3 years ago
I think these module paths are a bit long, would it be possible to re-export them from wagtail_wordpress_import.prefilters to make them shorter and more memorable? For example:
wagtail_wordpress_import.prefilters
WAGTAIL_WORDPRESS_IMPORT_PREFILTERS = [ { "FUNCTION": "wagtail_wordpress_import.prefilters.linebreaks_wp", }, { "FUNCTION": "wagtail_wordpress_import.prefilters.normalize_style_attrs", }, { "FUNCTION": "wagtail_wordpress_import.prefilters.fix_styles", }, { "FUNCTION": "wagtail_wordpress_import.prefilters.bleach_clean", }, ]
Also, think we could pick a better name for fix_styles. How about styles_to_tags?
fix_styles
styles_to_tags
_Originally posted by @kaedroho in https://github.com/torchbox/wagtail-wordpress-import/pull/36#discussion_r726486501_
Look at renaming / shortening imports
Fixed in https://github.com/torchbox/wagtail-wordpress-import/pull/35
I think these module paths are a bit long, would it be possible to re-export them from
wagtail_wordpress_import.prefilters
to make them shorter and more memorable? For example:Also, think we could pick a better name for
fix_styles
. How aboutstyles_to_tags
?_Originally posted by @kaedroho in https://github.com/torchbox/wagtail-wordpress-import/pull/36#discussion_r726486501_