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
{{ message }}
Repository navigation
Bug: makeSource args type not updated with new config options for 0.2.5 release #243
In the 0.2.5 release notes, for MDX, it's recommended to use a new mdxOptions property, but the PartialArgs type that makeSource expects hasn't been updated for this as far as I can tell. Whereas with the markdown field, it was correctly updated to optionally support a builder callback function. Here's a link the relevant code:
Ah, as for #192 I see that in fact the rawDocumentData was added to the VFile data object, which was undocumented in the release notes. So that does solve for my problem. Thanks!
Clarity may still be needed for this issue though on the makeSource arg types.
This topic is specifically about the types the library is shipping need to be updated. Currently you cannot use mdxOptions as documented because it raises a type error. So no, it's not a documentation issue, it's missing code. Either that or the release notes were inaccurate.
Read the section on MDX Processing in the page I linked above. You cannot use the code snippet there because it raises a type error.
Activity
Saeris commentedon Jun 1, 2022
Ah, as for #192 I see that in fact the
rawDocumentDatawas added to the VFile data object, which was undocumented in the release notes. So that does solve for my problem. Thanks!Clarity may still be needed for this issue though on the
makeSourcearg types.seancdavis commentedon Jun 3, 2022
@Saeris There are two issues on the website repo for better documenting markdown behavior:
Do you suspect properly completing those issues would solve this topic here?
Saeris commentedon Jun 4, 2022
This topic is specifically about the types the library is shipping need to be updated. Currently you cannot use
mdxOptionsas documented because it raises a type error. So no, it's not a documentation issue, it's missing code. Either that or the release notes were inaccurate.Read the section on MDX Processing in the page I linked above. You cannot use the code snippet there because it raises a type error.
`@contentlayer/core`: Fix PartialArgs type definition (#243)
schickling commentedon Jul 8, 2022
This should be addressed with the
0.2.6release. 🎉