formatPost() — astro Function Reference
Architecture documentation for the formatPost() function in content-collections.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 06200471_ead6_6a9d_96c5_efba6dc62587["formatPost()"] c5e7b2c8_0bc0_a6af_9881_0fbe13d48b4d["content-collections.test.js"] 06200471_ead6_6a9d_96c5_efba6dc62587 -->|defined in| c5e7b2c8_0bc0_a6af_9881_0fbe13d48b4d beb21e0a_5a04_1aeb_f065_5ab6c5ffe2ea["fixLineEndings()"] 06200471_ead6_6a9d_96c5_efba6dc62587 -->|calls| beb21e0a_5a04_1aeb_f065_5ab6c5ffe2ea style 06200471_ead6_6a9d_96c5_efba6dc62587 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/markdoc/test/content-collections.test.js lines 7–12
function formatPost(post) {
return {
...post,
body: fixLineEndings(post.body),
};
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does formatPost() do?
formatPost() is a function in the astro codebase, defined in packages/integrations/markdoc/test/content-collections.test.js.
Where is formatPost() defined?
formatPost() is defined in packages/integrations/markdoc/test/content-collections.test.js at line 7.
What does formatPost() call?
formatPost() calls 1 function(s): fixLineEndings.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free