For me it's not the same feature. Both are important to have. Specifications would be having the possibility to add proprieties for font, sizes and so... and then export to PDF or JPG.
One of these feature requests in UserVoice may be a better match:
- Labeling styles and exporting a style guide
- Prep for Dev / Design Guidelines
- 'Spec Export' feature to convert designs to HTML. – Adobe XD Feedback : Feature Requests & Bugs
- Psd export and multiple formats using Extract
- Export Assets as PDF
- Export for Zeplin – Adobe XD Feedback : Feature Requests & Bugs
Feel free to up-vote any or all of them on UserVoice. However, if none of these are quite what you'd want, please feel free to add a new suggestion on UserVoice.