From 91577141bdc587cba9dd1c628a1e0d6c6bf20ea6 Mon Sep 17 00:00:00 2001 From: IsaMic Date: Tue, 10 Oct 2023 09:01:26 +0200 Subject: [PATCH] feat(emscli): function match + styleValidTags (#86) --- elasticms-cli/migrate-web.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/elasticms-cli/migrate-web.md b/elasticms-cli/migrate-web.md index 24e6102..460fcec 100644 --- a/elasticms-cli/migrate-web.md +++ b/elasticms-cli/migrate-web.md @@ -150,6 +150,13 @@ The JSON config file list all web resources to synchronise for each document. } ], "validClasses": ["toc"], + "styleValidTags": [ + "table", + "th", + "tr", + "td", + "img" + ], "linkToClean": ["/^\\/fr\\/glossaire/"], "types": [ { @@ -175,8 +182,8 @@ The JSON config file list all web resources to synchronise for each document. "condition": "true" }, { - "property": "[themes]", - "expression": "data.get('themes') == '' ? null : datalinks(split('/([a-zA-Z\u00e9\u00e8\u00e0\\-][a-zA-Z \u00e9\u00e8\u00e0\\-]+)\\\\|[0-9a-f]{8}\\-[0-9a-f]{4}\\-[0-9a-f]{4}\\-[0-9a-f]{4}\\-[0-9a-f]{12} */',data.get('themes')),'taxonomy')", + "property": "[target_groups]", + "expression": "data.get('target_groups') == '' ? null : datalinks(match('/\\\\|(?P[0-9a-f]{8}\\-[0-9a-f]{4}\\-[0-9a-f]{4}\\-[0-9a-f]{4}\\-[0-9a-f]{12})/',data.get('themes')),'taxonomy')", "jsonDecode": false, "condition": "true" },