Raw example content from the
Source metadata containing type and title information
Object containing title, content, and type, or null if no content
tags to extract example code snippets with optional type and title information. Supports various formats including JSON, XML, cURL commands, and other code examples.
// Input: "@apiExample {json} Request
// {
// "name": "John"
// }"
// Output: { title: "Request", content: "{\n \"name\": \"John\"\n}", type: "json" }
// Input: "@apiExample {curl} Example usage
// curl -X GET http://api.example.com/users"
// Output: { title: "Example usage", content: "curl -X GET http://api.example.com/users", type: "curl" }
Parse