@@ -10,10 +10,8 @@ import { Steps } from "~/components";
1010import { format } from " date-fns" ;
1111import { getChangelogs } from " ~/util/changelog" ;
1212import { productsByGroup } from " ~/util/products" ;
13- import { entryToString } from " ~/util/container" ;
14- import { process } from " ~/util/rehype" ;
1513
16- import rehypeShiftHeadings from " ~/plugins/rehype/shift-headings.ts " ;
14+ import { render } from " astro:content " ;
1715
1816const notes = await getChangelogs ({
1917 filter : (entry ) => ! entry .data .hidden ,
@@ -45,8 +43,7 @@ const props = {
4543 .map ((group ) => group [0 ])
4644 .sort ();
4745
48- const html = await entryToString (entry , Astro .locals );
49- const processed = await process (html , [[rehypeShiftHeadings ]]);
46+ const { Content } = await render (entry );
5047
5148 return (
5249 <div
@@ -62,7 +59,7 @@ const props = {
6259 >
6360 <time
6461 datetime = { entry .data .date .toISOString ()}
65- class = " whitespace-nowrap text-xs font-bold leading-6 sm:pr-4 sm:text-right"
62+ class = " text-xs leading-6 font-bold whitespace-nowrap sm:pr-4 sm:text-right"
6663 >
6764 { date }
6865 </time >
@@ -80,7 +77,7 @@ const props = {
8077 </h3 >
8178 <ProductPills products = { entry .data .products } />
8279 </div >
83- <p set : html = { processed } />
80+ <Content />
8481 </li >
8582 </ol >
8683 </Steps >
@@ -91,7 +88,7 @@ const props = {
9188 <div class =" flex items-center justify-center" >
9289 <button
9390 id =" changelogs-next-button"
94- class =" h-12 cursor-pointer rounded-sm bg-cl1-brand-orange px-6 font-medium text-cl1-black "
91+ class =" bg-cl1-brand-orange text-cl1-black h-12 cursor-pointer rounded-sm px-6 font-medium"
9592 >
9693 Load more items
9794 </button >
0 commit comments