✨ Major Changes
-
#11861
3ab3b4eThanks @bluwy! - Cleans up Astro-specfic metadata attached tovfile.datain Remark and Rehype plugins. Previously, the metadata was attached in different locations with inconsistent names. The metadata is now renamed as below:vfile.data.__astroHeadings->vfile.data.astro.headingsvfile.data.imagePaths->vfile.data.astro.imagePaths
The types of
imagePathshas also been updated fromSet<string>tostring[]. Thevfile.data.astro.frontmattermetadata is left unchanged.While we don’t consider these APIs public, they can be accessed by Remark and Rehype plugins that want to re-use Astro’s metadata. If you are using these APIs, make sure to access them in the new locations.
-
#11825
560ef15Thanks @bluwy! - Updates return object ofcreateShikiHighlighterascodeToHastandcodeToHtmlto allow generating either the hast or html string directly -
#11861
3ab3b4eThanks @bluwy! - RemovesInvalidAstroDataError,safelyGetAstroData, andsetVfileFrontmatterAPIs in favour ofisFrontmatterValid