You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Side note: in my case I need it to be able to safely migrate content that is not supported in markdown (as components).
For example, say we want to migrates <iframe>s, first I convert all iframes to <pre><code class="language-sb-component-json">{"component":"iframe"....}</code></pre> and then I expand it later to a richtext component.
Of course, this could be improved or automated inside the migration module..
The text was updated successfully, but these errors were encountered:
The turndown module is able to extract code block language defined as a class, but only when
codeBlockStyle
is"fenced"
(which is not the default).So for example:
Apparently wp2storyblok, handles both cases - so it seems beneficial to use fenced style instead of indented style, to also migrate the language:
wordpress-importer/src/migration.js
Line 8 in 141c99d
Side note: in my case I need it to be able to safely migrate content that is not supported in markdown (as components).
For example, say we want to migrates <iframe>s, first I convert all iframes to
<pre><code class="language-sb-component-json">{"component":"iframe"....}</code></pre>
and then I expand it later to a richtext component.Of course, this could be improved or automated inside the migration module..
The text was updated successfully, but these errors were encountered: