diff --git a/libs/domain/content/src/services/cms/storyblok/normalizers/storyblok-field.normalizer.ts b/libs/domain/content/src/services/cms/storyblok/normalizers/storyblok-field.normalizer.ts index 70c41094..bf836424 100644 --- a/libs/domain/content/src/services/cms/storyblok/normalizers/storyblok-field.normalizer.ts +++ b/libs/domain/content/src/services/cms/storyblok/normalizers/storyblok-field.normalizer.ts @@ -13,6 +13,14 @@ export const StoryblokFieldNormalizer = 'oryx.StoryblokFieldNormalizer*'; export function storyblokFieldNormalizer( data: StoryblokContentField ): StoryblokContentField { + if (data.type === 'spryker' && (data.value as any).example) { + return { + ...data, + value: marked.parse((data.value as any).example as string), + }; + } + + if (data.type === 'markdown') { return { ...data, diff --git a/libs/domain/content/src/services/cms/storyblok/storyblok-content.adapter.ts b/libs/domain/content/src/services/cms/storyblok/storyblok-content.adapter.ts index 6a6ba61c..afce5a2a 100644 --- a/libs/domain/content/src/services/cms/storyblok/storyblok-content.adapter.ts +++ b/libs/domain/content/src/services/cms/storyblok/storyblok-content.adapter.ts @@ -10,6 +10,7 @@ import { of, reduce, switchMap, + tap, } from 'rxjs'; import { Content, ContentMeta, ContentQualifier } from '../../../models'; import { ContentAdapter } from '../../adapter'; @@ -62,7 +63,10 @@ export class DefaultStoryblokContentAdapter implements ContentAdapter { }, component.schema ) - ) + ), + tap(s => { + console.log(s, 's') + }) ); } diff --git a/libs/template/labs/src/articles/article-page.ts b/libs/template/labs/src/articles/article-page.ts index 91b53088..5e999d73 100644 --- a/libs/template/labs/src/articles/article-page.ts +++ b/libs/template/labs/src/articles/article-page.ts @@ -104,6 +104,12 @@ export const experienceArticlePages = [ field: 'content', }, }, + { + type: 'oryx-data-text', + options: { + field: 'spryker.example', + }, + }, ], }, { ref: 'footer' },