diff --git a/src/components/SwagChangelogWrapper.vue b/src/components/SwagChangelogWrapper.vue index 6fc7eadc..c523b3bb 100644 --- a/src/components/SwagChangelogWrapper.vue +++ b/src/components/SwagChangelogWrapper.vue @@ -5,9 +5,8 @@
-

Shopware version 6.5.1.1

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis quis sem dui. Etiam suscipit, eros sit amet - elementum accumsan, lorem nulla tincidunt sem, in ullamcorper libero nibh non sapien....

+

{{ latestData.__pageData.title }}

+

@@ -55,6 +54,12 @@ const latestData = await latestSource(); const headers = latestData.__pageData.headers; const improvements = headers.find(({title}) => title === 'Improvements')?.children || []; const links = improvements.map(({title, slug}) => ({title, slug})); + +const md = `..${latestRelease.link.replace('.html', '.md')}`; + +const module = await import(/* @vite-ignore */md); +const content = module.default.render().children[0].children; +const intro = new DOMParser().parseFromString(content, "text/html").querySelector('p').innerText;