diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index 1c03f9c9..9935b9f6 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -107,6 +107,13 @@ def decode_wp_content(content, br=True): content = _multi_replace(pre_tags, content) + # SyntaxHighlighter plugin format (on WP this is quote forgiving) + content = re.sub( + r'
]*\bbrush\s*:\s*([\w#+-]+)[^>]*>',
+ r'',
+ content,
+ )
+
# convert [caption] tags into
content = re.sub(
r"\[caption(?:.*?)(?:caption=\"(.*?)\")?\]"