[{"data":1,"prerenderedAt":1209},["ShallowReactive",2],{"navigation_docs":3,"-docs-advanced-transformers":205,"-docs-advanced-transformers-surround":1206},[4,24,51,73,95,112,158,171],{"title":5,"path":6,"stem":7,"children":8,"icon":23},"Getting Started","/docs/getting-started","docs/1.getting-started/1.index",[9,11,15,19],{"title":10,"path":6,"stem":7},"Introduction",{"title":12,"path":13,"stem":14},"Installation","/docs/getting-started/installation","docs/1.getting-started/2.installation",{"title":16,"path":17,"stem":18},"Configuration","/docs/getting-started/configuration","docs/1.getting-started/3.configuration",{"title":20,"path":21,"stem":22},"Migration","/docs/getting-started/migration","docs/1.getting-started/4.migration","i-lucide-square-play",{"title":25,"icon":26,"path":27,"stem":28,"children":29,"page":50},"Collections","i-lucide-database","/docs/collections","docs/2.collections",[30,34,38,42,46],{"title":31,"path":32,"stem":33},"Define","/docs/collections/define","docs/2.collections/1.define",{"title":35,"path":36,"stem":37},"Types","/docs/collections/types","docs/2.collections/2.types",{"title":39,"path":40,"stem":41},"Sources","/docs/collections/sources","docs/2.collections/3.sources",{"title":43,"path":44,"stem":45},"Validators","/docs/collections/validators","docs/2.collections/4.validators",{"title":47,"path":48,"stem":49},"Components","/docs/collections/inherit-schema-from-component","docs/2.collections/5.inherit-schema-from-component",false,{"title":52,"icon":53,"path":54,"stem":55,"children":56,"page":50},"Files","i-lucide-file","/docs/files","docs/3.files",[57,61,65,69],{"title":58,"path":59,"stem":60},"Markdown","/docs/files/markdown","docs/3.files/1.markdown",{"title":62,"path":63,"stem":64},"YAML","/docs/files/yaml","docs/3.files/2.yaml",{"title":66,"path":67,"stem":68},"JSON","/docs/files/json","docs/3.files/3.json",{"title":70,"path":71,"stem":72},"CSV","/docs/files/csv","docs/3.files/4.csv",{"title":74,"icon":75,"path":76,"stem":77,"children":78,"page":50},"Query Utils","i-lucide-square-function","/docs/utils","docs/4.utils",[79,83,87,91],{"title":80,"path":81,"stem":82},"queryCollection","/docs/utils/query-collection","docs/4.utils/1.query-collection",{"title":84,"path":85,"stem":86},"queryCollectionNavigation","/docs/utils/query-collection-navigation","docs/4.utils/2.query-collection-navigation",{"title":88,"path":89,"stem":90},"queryCollectionItemSurroundings","/docs/utils/query-collection-item-surroundings","docs/4.utils/3.query-collection-item-surroundings",{"title":92,"path":93,"stem":94},"queryCollectionSearchSections","/docs/utils/query-collection-search-sections","docs/4.utils/4.query-collection-search-sections",{"title":47,"icon":96,"path":97,"stem":98,"children":99,"page":50},"i-lucide-square-code","/docs/components","docs/5.components",[100,104,108],{"title":101,"path":102,"stem":103},"ContentRenderer","/docs/components/content-renderer","docs/5.components/0.content-renderer",{"title":105,"path":106,"stem":107},"Slot","/docs/components/slot","docs/5.components/1.slot",{"title":109,"path":110,"stem":111},"Prose Components","/docs/components/prose","docs/5.components/2.prose",{"title":113,"icon":114,"path":115,"stem":116,"children":117,"page":50},"Deploy","i-lucide-cloud-upload","/docs/deploy","docs/6.deploy",[118,122,126,130,134,138,142,146,150,154],{"title":119,"path":120,"stem":121},"Server","/docs/deploy/server","docs/6.deploy/1.server",{"title":123,"path":124,"stem":125},"Static","/docs/deploy/static","docs/6.deploy/10.static",{"title":127,"path":128,"stem":129},"Serverless","/docs/deploy/serverless","docs/6.deploy/2.serverless",{"title":131,"path":132,"stem":133},"NuxtHub","/docs/deploy/nuxthub","docs/6.deploy/3.nuxthub",{"title":135,"path":136,"stem":137},"Cloudflare Pages","/docs/deploy/cloudflare-pages","docs/6.deploy/4.cloudflare-pages",{"title":139,"path":140,"stem":141},"Cloudflare Workers","/docs/deploy/cloudflare-workers","docs/6.deploy/5.cloudflare-workers",{"title":143,"path":144,"stem":145},"Vercel","/docs/deploy/vercel","docs/6.deploy/6.vercel",{"title":147,"path":148,"stem":149},"Netlify","/docs/deploy/netlify","docs/6.deploy/7.netlify",{"title":151,"path":152,"stem":153},"AWS Amplify","/docs/deploy/aws-amplify","docs/6.deploy/8.aws-amplify",{"title":155,"path":156,"stem":157},"Docker","/docs/deploy/docker","docs/6.deploy/9.docker",{"title":159,"icon":114,"path":160,"stem":161,"children":162,"page":50},"Integrations","/docs/integrations","docs/7.integrations",[163,167],{"title":164,"path":165,"stem":166},"Nuxt i18n","/docs/integrations/i18n","docs/7.integrations/01.i18n",{"title":168,"path":169,"stem":170},"Nuxt LLMs","/docs/integrations/llms","docs/7.integrations/02.llms",{"title":172,"icon":173,"path":174,"stem":175,"children":176,"page":50},"Advanced","i-lucide-code-xml","/docs/advanced","docs/8.advanced",[177,181,185,189,193,197,201],{"title":178,"path":179,"stem":180},"Full-Text Search","/docs/advanced/fulltext-search","docs/8.advanced/1.fulltext-search",{"title":182,"path":183,"stem":184},"Raw Content","/docs/advanced/raw-content","docs/8.advanced/2.raw-content",{"title":186,"path":187,"stem":188},"SQL Storage","/docs/advanced/database","docs/8.advanced/3.database",{"title":190,"path":191,"stem":192},"Debugging tools","/docs/advanced/tools","docs/8.advanced/4.tools",{"title":194,"path":195,"stem":196},"Hooks","/docs/advanced/hooks","docs/8.advanced/5.hooks",{"title":198,"path":199,"stem":200},"Custom Source","/docs/advanced/custom-source","docs/8.advanced/6.custom-source",{"title":202,"path":203,"stem":204},"Transformers","/docs/advanced/transformers","docs/8.advanced/8.transformers",{"id":206,"title":202,"body":207,"description":1200,"extension":1201,"links":1202,"meta":1203,"navigation":294,"path":203,"seo":1204,"stem":204,"__hash__":1205},"docs/docs/8.advanced/8.transformers.md",{"type":208,"value":209,"toc":1189},"minimark",[210,214,230,235,247,454,459,486,490,496,587,591,598,800,810,814,880,888,892,899,903,914,1102,1105,1182,1185],[211,212,213],"p",{},"Transformers in Nuxt Content allow you to programmatically parse, modify, or analyze your content files as they are processed. They are especially useful for:",[215,216,217,221,224,227],"ul",{},[218,219,220],"li",{},"Adding or modifying fields (e.g., appending to the title, generating slugs)",[218,222,223],{},"Extracting metadata (e.g., listing used components)",[218,225,226],{},"Enriching content with computed data",[218,228,229],{},"Supporting new content types",[231,232,234],"h2",{"id":233},"defining-a-transformer","Defining a Transformer",[211,236,237,238,242,243,246],{},"You can define a transformer using the ",[239,240,241],"code",{},"defineTransformer"," helper from ",[239,244,245],{},"@nuxt/content",":",[248,249,255],"pre",{"className":250,"code":251,"filename":252,"language":253,"meta":254,"style":254},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineTransformer } from '@nuxt/content'\n\nexport default defineTransformer({\n  name: 'title-suffix',\n  extensions: ['.md'], // File extensions to apply this transformer to\n  transform(file) {\n    // Modify the file object as needed\n    return {\n      ...file,\n      title: file.title + ' (suffix)',\n    }\n  },\n})\n","~~/transformers/title-suffix.ts","ts","",[239,256,257,289,296,314,334,362,380,386,394,404,433,439,445],{"__ignoreMap":254},[258,259,262,266,270,274,277,280,283,286],"span",{"class":260,"line":261},"line",1,[258,263,265],{"class":264},"s7zQu","import",[258,267,269],{"class":268},"sMK4o"," {",[258,271,273],{"class":272},"sTEyZ"," defineTransformer",[258,275,276],{"class":268}," }",[258,278,279],{"class":264}," from",[258,281,282],{"class":268}," '",[258,284,245],{"class":285},"sfazB",[258,287,288],{"class":268},"'\n",[258,290,292],{"class":260,"line":291},2,[258,293,295],{"emptyLinePlaceholder":294},true,"\n",[258,297,299,302,305,308,311],{"class":260,"line":298},3,[258,300,301],{"class":264},"export",[258,303,304],{"class":264}," default",[258,306,273],{"class":307},"s2Zo4",[258,309,310],{"class":272},"(",[258,312,313],{"class":268},"{\n",[258,315,317,321,323,325,328,331],{"class":260,"line":316},4,[258,318,320],{"class":319},"swJcz","  name",[258,322,246],{"class":268},[258,324,282],{"class":268},[258,326,327],{"class":285},"title-suffix",[258,329,330],{"class":268},"'",[258,332,333],{"class":268},",\n",[258,335,337,340,342,345,347,350,352,355,358],{"class":260,"line":336},5,[258,338,339],{"class":319},"  extensions",[258,341,246],{"class":268},[258,343,344],{"class":272}," [",[258,346,330],{"class":268},[258,348,349],{"class":285},".md",[258,351,330],{"class":268},[258,353,354],{"class":272},"]",[258,356,357],{"class":268},",",[258,359,361],{"class":360},"sHwdD"," // File extensions to apply this transformer to\n",[258,363,365,368,370,374,377],{"class":260,"line":364},6,[258,366,367],{"class":319},"  transform",[258,369,310],{"class":268},[258,371,373],{"class":372},"sHdIc","file",[258,375,376],{"class":268},")",[258,378,379],{"class":268}," {\n",[258,381,383],{"class":260,"line":382},7,[258,384,385],{"class":360},"    // Modify the file object as needed\n",[258,387,389,392],{"class":260,"line":388},8,[258,390,391],{"class":264},"    return",[258,393,379],{"class":268},[258,395,397,400,402],{"class":260,"line":396},9,[258,398,399],{"class":268},"      ...",[258,401,373],{"class":272},[258,403,333],{"class":268},[258,405,407,410,412,415,418,421,424,426,429,431],{"class":260,"line":406},10,[258,408,409],{"class":319},"      title",[258,411,246],{"class":268},[258,413,414],{"class":272}," file",[258,416,417],{"class":268},".",[258,419,420],{"class":272},"title",[258,422,423],{"class":268}," +",[258,425,282],{"class":268},[258,427,428],{"class":285}," (suffix)",[258,430,330],{"class":268},[258,432,333],{"class":268},[258,434,436],{"class":260,"line":435},11,[258,437,438],{"class":268},"    }\n",[258,440,442],{"class":260,"line":441},12,[258,443,444],{"class":268},"  },\n",[258,446,448,451],{"class":260,"line":447},13,[258,449,450],{"class":268},"}",[258,452,453],{"class":272},")\n",[455,456,458],"h3",{"id":457},"transformer-options","Transformer Options",[215,460,461,467,480],{},[218,462,463,466],{},[239,464,465],{},"name"," (string): A unique name for your transformer.",[218,468,469,472,473,475,476,479],{},[239,470,471],{},"extensions"," (string",[258,474],{},"): File extensions this transformer should apply to (e.g., ",[239,477,478],{},"['.md']",").",[218,481,482,485],{},[239,483,484],{},"transform"," (function): The function that receives the file object and returns the modified file.",[231,487,489],{"id":488},"registering-transformers","Registering Transformers",[211,491,492,493,246],{},"Transformers are registered in your ",[239,494,495],{},"nuxt.config.ts",[248,497,499],{"className":250,"code":498,"filename":495,"language":253,"meta":254,"style":254},"export default defineNuxtConfig({\n  content: {\n    build: {\n      transformers: [\n        '~~/transformers/title-suffix',\n        '~~/transformers/my-custom-transformer',\n      ],\n    },\n  },\n})\n",[239,500,501,514,523,532,542,554,565,572,577,581],{"__ignoreMap":254},[258,502,503,505,507,510,512],{"class":260,"line":261},[258,504,301],{"class":264},[258,506,304],{"class":264},[258,508,509],{"class":307}," defineNuxtConfig",[258,511,310],{"class":272},[258,513,313],{"class":268},[258,515,516,519,521],{"class":260,"line":291},[258,517,518],{"class":319},"  content",[258,520,246],{"class":268},[258,522,379],{"class":268},[258,524,525,528,530],{"class":260,"line":298},[258,526,527],{"class":319},"    build",[258,529,246],{"class":268},[258,531,379],{"class":268},[258,533,534,537,539],{"class":260,"line":316},[258,535,536],{"class":319},"      transformers",[258,538,246],{"class":268},[258,540,541],{"class":272}," [\n",[258,543,544,547,550,552],{"class":260,"line":336},[258,545,546],{"class":268},"        '",[258,548,549],{"class":285},"~~/transformers/title-suffix",[258,551,330],{"class":268},[258,553,333],{"class":268},[258,555,556,558,561,563],{"class":260,"line":364},[258,557,546],{"class":268},[258,559,560],{"class":285},"~~/transformers/my-custom-transformer",[258,562,330],{"class":268},[258,564,333],{"class":268},[258,566,567,570],{"class":260,"line":382},[258,568,569],{"class":272},"      ]",[258,571,333],{"class":268},[258,573,574],{"class":260,"line":388},[258,575,576],{"class":268},"    },\n",[258,578,579],{"class":260,"line":396},[258,580,444],{"class":268},[258,582,583,585],{"class":260,"line":406},[258,584,450],{"class":268},[258,586,453],{"class":272},[231,588,590],{"id":589},"example-adding-metadata","Example: Adding Metadata",[211,592,593,594,597],{},"Transformers can add a ",[239,595,596],{},"__metadata"," field to the file. This field is not stored in the database but can be used for runtime logic.",[248,599,602],{"className":250,"code":600,"filename":601,"language":253,"meta":254,"style":254},"import { defineTransformer } from '@nuxt/content'\n\nexport default defineTransformer({\n  name: 'component-metadata',\n  extensions: ['.md'],\n  transform(file) {\n    // Example: Detect if a custom component is used\n    const usesMyComponent = file.body?.includes('\u003CMyCustomComponent>')\n    return {\n      ...file,\n      __metadata: {\n        components: usesMyComponent ? ['MyCustomComponent'] : [],\n      },\n    }\n  },\n})\n","~~/transformers/component-metadata.ts",[239,603,604,622,626,638,653,671,683,688,724,730,738,747,778,783,788,793],{"__ignoreMap":254},[258,605,606,608,610,612,614,616,618,620],{"class":260,"line":261},[258,607,265],{"class":264},[258,609,269],{"class":268},[258,611,273],{"class":272},[258,613,276],{"class":268},[258,615,279],{"class":264},[258,617,282],{"class":268},[258,619,245],{"class":285},[258,621,288],{"class":268},[258,623,624],{"class":260,"line":291},[258,625,295],{"emptyLinePlaceholder":294},[258,627,628,630,632,634,636],{"class":260,"line":298},[258,629,301],{"class":264},[258,631,304],{"class":264},[258,633,273],{"class":307},[258,635,310],{"class":272},[258,637,313],{"class":268},[258,639,640,642,644,646,649,651],{"class":260,"line":316},[258,641,320],{"class":319},[258,643,246],{"class":268},[258,645,282],{"class":268},[258,647,648],{"class":285},"component-metadata",[258,650,330],{"class":268},[258,652,333],{"class":268},[258,654,655,657,659,661,663,665,667,669],{"class":260,"line":336},[258,656,339],{"class":319},[258,658,246],{"class":268},[258,660,344],{"class":272},[258,662,330],{"class":268},[258,664,349],{"class":285},[258,666,330],{"class":268},[258,668,354],{"class":272},[258,670,333],{"class":268},[258,672,673,675,677,679,681],{"class":260,"line":364},[258,674,367],{"class":319},[258,676,310],{"class":268},[258,678,373],{"class":372},[258,680,376],{"class":268},[258,682,379],{"class":268},[258,684,685],{"class":260,"line":382},[258,686,687],{"class":360},"    // Example: Detect if a custom component is used\n",[258,689,690,694,697,700,702,704,707,710,713,715,717,720,722],{"class":260,"line":388},[258,691,693],{"class":692},"spNyl","    const",[258,695,696],{"class":272}," usesMyComponent",[258,698,699],{"class":268}," =",[258,701,414],{"class":272},[258,703,417],{"class":268},[258,705,706],{"class":272},"body",[258,708,709],{"class":268},"?.",[258,711,712],{"class":307},"includes",[258,714,310],{"class":319},[258,716,330],{"class":268},[258,718,719],{"class":285},"\u003CMyCustomComponent>",[258,721,330],{"class":268},[258,723,453],{"class":319},[258,725,726,728],{"class":260,"line":396},[258,727,391],{"class":264},[258,729,379],{"class":268},[258,731,732,734,736],{"class":260,"line":406},[258,733,399],{"class":268},[258,735,373],{"class":272},[258,737,333],{"class":268},[258,739,740,743,745],{"class":260,"line":435},[258,741,742],{"class":319},"      __metadata",[258,744,246],{"class":268},[258,746,379],{"class":268},[258,748,749,752,754,756,759,761,763,766,768,771,773,776],{"class":260,"line":441},[258,750,751],{"class":319},"        components",[258,753,246],{"class":268},[258,755,696],{"class":272},[258,757,758],{"class":268}," ?",[258,760,344],{"class":319},[258,762,330],{"class":268},[258,764,765],{"class":285},"MyCustomComponent",[258,767,330],{"class":268},[258,769,770],{"class":319},"] ",[258,772,246],{"class":268},[258,774,775],{"class":319}," []",[258,777,333],{"class":268},[258,779,780],{"class":260,"line":447},[258,781,782],{"class":268},"      },\n",[258,784,786],{"class":260,"line":785},14,[258,787,438],{"class":268},[258,789,791],{"class":260,"line":790},15,[258,792,444],{"class":268},[258,794,796,798],{"class":260,"line":795},16,[258,797,450],{"class":268},[258,799,453],{"class":272},[211,801,802,806,807,809],{},[803,804,805],"strong",{},"Note:"," The ",[239,808,596],{}," field is only available at runtime and is not persisted in the content database.",[231,811,813],{"id":812},"api-reference","API Reference",[248,815,817],{"className":250,"code":816,"language":253,"meta":254,"style":254},"interface Transformer {\n  name: string\n  extensions: string[]\n  transform: (file: ContentFile) => ContentFile\n}\n",[239,818,819,830,839,851,875],{"__ignoreMap":254},[258,820,821,824,828],{"class":260,"line":261},[258,822,823],{"class":692},"interface",[258,825,827],{"class":826},"sBMFI"," Transformer",[258,829,379],{"class":268},[258,831,832,834,836],{"class":260,"line":291},[258,833,320],{"class":319},[258,835,246],{"class":268},[258,837,838],{"class":826}," string\n",[258,840,841,843,845,848],{"class":260,"line":298},[258,842,339],{"class":319},[258,844,246],{"class":268},[258,846,847],{"class":826}," string",[258,849,850],{"class":272},"[]\n",[258,852,853,855,857,860,862,864,867,869,872],{"class":260,"line":316},[258,854,367],{"class":319},[258,856,246],{"class":268},[258,858,859],{"class":268}," (",[258,861,373],{"class":372},[258,863,246],{"class":268},[258,865,866],{"class":826}," ContentFile",[258,868,376],{"class":268},[258,870,871],{"class":692}," =>",[258,873,874],{"class":826}," ContentFile\n",[258,876,877],{"class":260,"line":336},[258,878,879],{"class":268},"}\n",[215,881,882],{},[218,883,884,887],{},[239,885,886],{},"ContentFile"," is the object representing the parsed content file, including frontmatter, body, and other fields.",[231,889,891],{"id":890},"supporting-new-file-formats-with-transformers","Supporting New File Formats with Transformers",[211,893,894,895,898],{},"Transformers are not limited to modifying existing content—they can also be used to add support for new file formats in Nuxt Content. By defining a transformer with a custom ",[239,896,897],{},"parse"," method, you can instruct Nuxt Content how to read and process files with new extensions, such as YAML.",[455,900,902],{"id":901},"example-yaml-file-support","Example: YAML File Support",[211,904,905,906,909,910,913],{},"Suppose you want to support ",[239,907,908],{},".yml"," and ",[239,911,912],{},".yaml"," files in your content directory. You can create a transformer that parses YAML frontmatter and body, and registers it for those extensions:",[248,915,918],{"className":250,"code":916,"filename":917,"language":253,"meta":254,"style":254},"import { defineTransformer } from '@nuxt/content'\n\nexport default defineTransformer({\n  name: 'Yaml',\n  extensions: ['.yml', '.yaml'],\n  parse: (file) => {\n    const { id, body } = file\n    \n    // parse the body with your favorite yaml parser\n    const parsed = parseYaml(body)\n\n    return {\n      ...parsed,\n      id,\n    }\n  },\n})\n","~~/transformers/yaml.ts",[239,919,920,938,942,954,969,995,1012,1033,1038,1043,1061,1065,1071,1080,1087,1091,1095],{"__ignoreMap":254},[258,921,922,924,926,928,930,932,934,936],{"class":260,"line":261},[258,923,265],{"class":264},[258,925,269],{"class":268},[258,927,273],{"class":272},[258,929,276],{"class":268},[258,931,279],{"class":264},[258,933,282],{"class":268},[258,935,245],{"class":285},[258,937,288],{"class":268},[258,939,940],{"class":260,"line":291},[258,941,295],{"emptyLinePlaceholder":294},[258,943,944,946,948,950,952],{"class":260,"line":298},[258,945,301],{"class":264},[258,947,304],{"class":264},[258,949,273],{"class":307},[258,951,310],{"class":272},[258,953,313],{"class":268},[258,955,956,958,960,962,965,967],{"class":260,"line":316},[258,957,320],{"class":319},[258,959,246],{"class":268},[258,961,282],{"class":268},[258,963,964],{"class":285},"Yaml",[258,966,330],{"class":268},[258,968,333],{"class":268},[258,970,971,973,975,977,979,981,983,985,987,989,991,993],{"class":260,"line":336},[258,972,339],{"class":319},[258,974,246],{"class":268},[258,976,344],{"class":272},[258,978,330],{"class":268},[258,980,908],{"class":285},[258,982,330],{"class":268},[258,984,357],{"class":268},[258,986,282],{"class":268},[258,988,912],{"class":285},[258,990,330],{"class":268},[258,992,354],{"class":272},[258,994,333],{"class":268},[258,996,997,1000,1002,1004,1006,1008,1010],{"class":260,"line":364},[258,998,999],{"class":307},"  parse",[258,1001,246],{"class":268},[258,1003,859],{"class":268},[258,1005,373],{"class":372},[258,1007,376],{"class":268},[258,1009,871],{"class":692},[258,1011,379],{"class":268},[258,1013,1014,1016,1018,1021,1023,1026,1028,1030],{"class":260,"line":382},[258,1015,693],{"class":692},[258,1017,269],{"class":268},[258,1019,1020],{"class":272}," id",[258,1022,357],{"class":268},[258,1024,1025],{"class":272}," body",[258,1027,276],{"class":268},[258,1029,699],{"class":268},[258,1031,1032],{"class":272}," file\n",[258,1034,1035],{"class":260,"line":388},[258,1036,1037],{"class":319},"    \n",[258,1039,1040],{"class":260,"line":396},[258,1041,1042],{"class":360},"    // parse the body with your favorite yaml parser\n",[258,1044,1045,1047,1050,1052,1055,1057,1059],{"class":260,"line":406},[258,1046,693],{"class":692},[258,1048,1049],{"class":272}," parsed",[258,1051,699],{"class":268},[258,1053,1054],{"class":307}," parseYaml",[258,1056,310],{"class":319},[258,1058,706],{"class":272},[258,1060,453],{"class":319},[258,1062,1063],{"class":260,"line":435},[258,1064,295],{"emptyLinePlaceholder":294},[258,1066,1067,1069],{"class":260,"line":441},[258,1068,391],{"class":264},[258,1070,379],{"class":268},[258,1072,1073,1075,1078],{"class":260,"line":447},[258,1074,399],{"class":268},[258,1076,1077],{"class":272},"parsed",[258,1079,333],{"class":268},[258,1081,1082,1085],{"class":260,"line":785},[258,1083,1084],{"class":272},"      id",[258,1086,333],{"class":268},[258,1088,1089],{"class":260,"line":790},[258,1090,438],{"class":268},[258,1092,1093],{"class":260,"line":795},[258,1094,444],{"class":268},[258,1096,1098,1100],{"class":260,"line":1097},17,[258,1099,450],{"class":268},[258,1101,453],{"class":272},[211,1103,1104],{},"Register your YAML transformer in your Nuxt config just like any other transformer:",[248,1106,1108],{"className":250,"code":1107,"language":253,"meta":254,"style":254},"export default defineNuxtConfig({\n  content: {\n    build: {\n      transformers: [\n        '~~/transformers/yaml',\n        // ...other transformers\n      ],\n    },\n  },\n})\n",[239,1109,1110,1122,1130,1138,1146,1157,1162,1168,1172,1176],{"__ignoreMap":254},[258,1111,1112,1114,1116,1118,1120],{"class":260,"line":261},[258,1113,301],{"class":264},[258,1115,304],{"class":264},[258,1117,509],{"class":307},[258,1119,310],{"class":272},[258,1121,313],{"class":268},[258,1123,1124,1126,1128],{"class":260,"line":291},[258,1125,518],{"class":319},[258,1127,246],{"class":268},[258,1129,379],{"class":268},[258,1131,1132,1134,1136],{"class":260,"line":298},[258,1133,527],{"class":319},[258,1135,246],{"class":268},[258,1137,379],{"class":268},[258,1139,1140,1142,1144],{"class":260,"line":316},[258,1141,536],{"class":319},[258,1143,246],{"class":268},[258,1145,541],{"class":272},[258,1147,1148,1150,1153,1155],{"class":260,"line":336},[258,1149,546],{"class":268},[258,1151,1152],{"class":285},"~~/transformers/yaml",[258,1154,330],{"class":268},[258,1156,333],{"class":268},[258,1158,1159],{"class":260,"line":364},[258,1160,1161],{"class":360},"        // ...other transformers\n",[258,1163,1164,1166],{"class":260,"line":382},[258,1165,569],{"class":272},[258,1167,333],{"class":268},[258,1169,1170],{"class":260,"line":388},[258,1171,576],{"class":268},[258,1173,1174],{"class":260,"line":396},[258,1175,444],{"class":268},[258,1177,1178,1180],{"class":260,"line":406},[258,1179,450],{"class":268},[258,1181,453],{"class":272},[211,1183,1184],{},"This approach allows you to extend Nuxt Content to handle any custom file format you need.",[1186,1187,1188],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":254,"searchDepth":291,"depth":291,"links":1190},[1191,1194,1195,1196,1197],{"id":233,"depth":291,"text":234,"children":1192},[1193],{"id":457,"depth":298,"text":458},{"id":488,"depth":291,"text":489},{"id":589,"depth":291,"text":590},{"id":812,"depth":291,"text":813},{"id":890,"depth":291,"text":891,"children":1198},[1199],{"id":901,"depth":298,"text":902},"Transformers in Nuxt Content allow you to programmatically parse, modify, or analyze your content files as they are processed.","md",null,{},{"title":202,"description":1200},"O4G7oJhpZwz167xDTA9X0e50-HJVyej49LB_WolEnIY",[1207,1202],{"title":198,"path":199,"stem":200,"description":1208,"children":-1},"Define a custom source to retrive data.",1774543465062]