[{"data":1,"prerenderedAt":1362},["ShallowReactive",2],{"docs-side-nav":3,"docs-header-nav":197,"/docs/transformers/base-url":270,"docs-bottom-nav":1289},{"id":4,"extension":5,"items":6,"meta":194,"stem":195,"__hash__":196},"navigation/data/navigation.json","json",[7,34,46,70,104,155,170],{"name":8,"items":9},"Getting Started",[10,13,16,19,22,25,28,31],{"title":11,"path":12},"What is Maizzle?","/docs/introduction",{"title":14,"path":15},"Installation","/docs/installation",{"title":17,"path":18},"Editor Setup","/docs/editor-setup",{"title":20,"path":21},"Compatibility","/docs/compatibility",{"title":23,"path":24},"Upgrade Guide","/docs/upgrade-guide",{"title":26,"path":27},"Resources","/resources",{"title":29,"path":30},"Glossary","/glossary",{"title":32,"path":33},"CLI","/docs/cli",{"name":35,"items":36},"Concepts",[37,40,43],{"title":38,"path":39},"Environments","/docs/environments",{"title":41,"path":42},"Tailwind CSS","/docs/tailwindcss",{"title":44,"path":45},"Build Process","/docs/build-process",{"name":47,"items":48},"Configuration",[49,52,55,58,61,64,67],{"title":50,"path":51},"CSS","/docs/configuration/css",{"title":53,"path":54},"Build","/docs/configuration/build",{"title":56,"path":57},"Server","/docs/configuration/server",{"title":59,"path":60},"Components","/docs/configuration/components",{"title":62,"path":63},"Expressions","/docs/configuration/expressions",{"title":65,"path":66},"PostHTML","/docs/configuration/posthtml",{"title":68,"path":69},"PostCSS","/docs/configuration/postcss",{"name":71,"items":72},"Development",[73,76,79,81,83,86,89,92,95,98,101],{"title":74,"path":75},"Layouts","/docs/layouts",{"title":77,"path":78},"Templates","/docs/templates",{"title":59,"path":80},"/docs/components",{"title":62,"path":82},"/docs/expressions",{"title":84,"path":85},"Tags","/docs/tags",{"title":87,"path":88},"Assets","/docs/assets",{"title":90,"path":91},"Events","/docs/events",{"title":93,"path":94},"Functions","/docs/functions",{"title":96,"path":97},"Markdown","/docs/markdown",{"title":99,"path":100},"Plaintext","/docs/plaintext",{"title":102,"path":103},"API","/docs/api",{"name":105,"items":106},"Transformers",[107,110,113,116,119,122,125,128,131,134,137,140,143,146,149,152],{"title":108,"path":109},"What are Transformers?","/docs/transformers",{"title":111,"path":112},"Filters","/docs/transformers/filters",{"title":114,"path":115},"Inline CSS","/docs/transformers/inline-css",{"title":117,"path":118},"Safe Selectors","/docs/transformers/safe-class-names",{"title":120,"path":121},"CSS Purging","/docs/transformers/purge-css",{"title":123,"path":124},"Shorthand CSS","/docs/transformers/shorthand-css",{"title":126,"path":127},"Attribute To Style","/docs/transformers/attribute-to-style",{"title":129,"path":130},"Remove Attributes","/docs/transformers/remove-attributes",{"title":132,"path":133},"Add Attributes","/docs/transformers/add-attributes",{"title":135,"path":136},"Replace Strings","/docs/transformers/replace-strings",{"title":138,"path":139},"Widow Words","/docs/transformers/widows",{"title":141,"path":142},"URL Parameters","/docs/transformers/url-parameters",{"title":144,"path":145},"Base URL","/docs/transformers/base-url",{"title":147,"path":148},"Six HEX","/docs/transformers/six-hex",{"title":150,"path":151},"Prettify","/docs/transformers/prettify",{"title":153,"path":154},"Minify","/docs/transformers/minify",{"name":156,"items":157},"Starter Components",[158,161,164,167],{"title":159,"path":160},"Spacer","/docs/components/spacer",{"title":162,"path":163},"Divider","/docs/components/divider",{"title":165,"path":166},"Button","/docs/components/button",{"title":168,"path":169},"VML","/docs/components/vml",{"name":171,"items":172},"Examples",[173,176,179,182,185,188,191],{"title":174,"path":175},"Spacers","/docs/examples/spacers",{"title":177,"path":178},"Dividers","/docs/examples/dividers",{"title":180,"path":181},"Buttons","/docs/examples/buttons",{"title":183,"path":184},"Cards","/docs/examples/cards",{"title":186,"path":187},"Grids","/docs/examples/grids",{"title":189,"path":190},"Google Fonts","/docs/examples/google-fonts",{"title":192,"path":193},"Reverse Stack","/docs/examples/reverse-stack",{},"data/navigation","lXnN10nQFMOp0U7LPKSlEiRFYPoRC0dC5rgvZn8-pes",{"id":4,"extension":5,"items":198,"meta":269,"stem":195,"__hash__":196},[199,209,214,223,236,254,260],{"name":8,"items":200},[201,202,203,204,205,206,207,208],{"title":11,"path":12},{"title":14,"path":15},{"title":17,"path":18},{"title":20,"path":21},{"title":23,"path":24},{"title":26,"path":27},{"title":29,"path":30},{"title":32,"path":33},{"name":35,"items":210},[211,212,213],{"title":38,"path":39},{"title":41,"path":42},{"title":44,"path":45},{"name":47,"items":215},[216,217,218,219,220,221,222],{"title":50,"path":51},{"title":53,"path":54},{"title":56,"path":57},{"title":59,"path":60},{"title":62,"path":63},{"title":65,"path":66},{"title":68,"path":69},{"name":71,"items":224},[225,226,227,228,229,230,231,232,233,234,235],{"title":74,"path":75},{"title":77,"path":78},{"title":59,"path":80},{"title":62,"path":82},{"title":84,"path":85},{"title":87,"path":88},{"title":90,"path":91},{"title":93,"path":94},{"title":96,"path":97},{"title":99,"path":100},{"title":102,"path":103},{"name":105,"items":237},[238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253],{"title":108,"path":109},{"title":111,"path":112},{"title":114,"path":115},{"title":117,"path":118},{"title":120,"path":121},{"title":123,"path":124},{"title":126,"path":127},{"title":129,"path":130},{"title":132,"path":133},{"title":135,"path":136},{"title":138,"path":139},{"title":141,"path":142},{"title":144,"path":145},{"title":147,"path":148},{"title":150,"path":151},{"title":153,"path":154},{"name":156,"items":255},[256,257,258,259],{"title":159,"path":160},{"title":162,"path":163},{"title":165,"path":166},{"title":168,"path":169},{"name":171,"items":261},[262,263,264,265,266,267,268],{"title":174,"path":175},{"title":177,"path":178},{"title":180,"path":181},{"title":183,"path":184},{"title":186,"path":187},{"title":189,"path":190},{"title":192,"path":193},{},{"id":271,"title":144,"body":272,"description":1282,"extension":1283,"meta":1284,"navigation":933,"path":145,"seo":1285,"sitemap":1286,"stem":1287,"__hash__":1288},"docs/docs/transformers/base-url.md",{"type":273,"value":274,"toc":1269},"minimark",[275,279,283,286,289,308,311,334,350,355,358,402,416,420,423,427,444,451,515,533,536,636,639,649,652,706,710,720,736,801,805,813,823,887,891,894,979,983,993,996,1051,1057,1108,1112,1118,1143,1146,1168,1171,1265],[276,277,144],"h1",{"id":278},"base-url",[280,281,282],"p",{},"Define a string that will be prepended to all sources and hrefs in your HTML and CSS.",[280,284,285],{},"Useful if you already host your images somewhere like a CDN, so you don't have to write the full URL every time when developing.",[280,287,288],{},"Works with the following HTML attributes:",[290,291,292,296,299,302,305],"ul",{},[293,294,295],"li",{},"src",[293,297,298],{},"href",[293,300,301],{},"srcset",[293,303,304],{},"poster",[293,306,307],{},"background",[280,309,310],{},"... and with the following CSS properties:",[290,312,313,322,328],{},[293,314,315],{},[316,317,321],"span",{"className":318},[319,320],"text-sm","font-mono","background: url()",[293,323,324],{},[316,325,327],{"className":326},[319,320],"background-image: url()",[293,329,330],{},[316,331,333],{"className":332},[319,320],"@font-face { src: url() }",[280,335,336,337,341,342,345,346,349],{},"Both ",[338,339,340],"code",{},"\u003Cstyle>"," tags and ",[338,343,344],{},"style=\"\""," attributes are supported. CSS property values with multiple ",[338,347,348],{},"url()"," sources (like @font-face declarations) are supported as well.",[351,352,354],"h2",{"id":353},"usage","Usage",[280,356,357],{},"Make it globally available by setting it in your environment config:",[359,360,366],"pre",{"className":361,"code":362,"filename":363,"language":364,"meta":365,"style":365},"language-js shiki shiki-themes tailwind-css tailwind-css","export default {\n  baseURL: 'https://cdn.example.com/'\n}\n","config.js","js","",[338,367,368,383,396],{"__ignoreMap":365},[316,369,372,376,379],{"class":370,"line":371},"line",1,[316,373,375],{"class":374},"sizJ4","export",[316,377,378],{"class":374}," default",[316,380,382],{"class":381},"sprQ5"," {\n",[316,384,386,390,393],{"class":370,"line":385},2,[316,387,389],{"class":388},"sfCc6","  baseURL",[316,391,392],{"class":381},":",[316,394,395],{"class":388}," 'https://cdn.example.com/'\n",[316,397,399],{"class":370,"line":398},3,[316,400,401],{"class":381},"}\n",[403,404,406,407,411,412,415],"alert",{"type":405},"danger","\nNote that this will apply to \n",[408,409,410],"em",{},"all","\n sources and hrefs, including \n",[338,413,414],{},"\u003Ca>","\n tags, as long as the source's initial value is not an URL.\n",[351,417,419],{"id":418},"customization","Customization",[280,421,422],{},"You'll most likely want to customize the transformer so that it applies only to certain elements, or even only to certain attributes of certain elements.",[424,425,426],"h3",{"id":426},"tags",[280,428,429,430,433,436,437],{},"Type: ",[338,431,432],{},"String[]|\u003CRecord\u003Cstring, boolean|string>>",[434,435],"br",{},"\nDefault: ",[438,439,443],"a",{"href":440,"rel":441},"https://github.com/posthtml/posthtml-base-url/blob/main/lib/index.js",[442],"nofollow","see default tags",[280,445,446,447,450],{},"Apply the base URL only to ",[338,448,449],{},"\u003Cimg>"," tags:",[359,452,454],{"className":361,"code":453,"filename":363,"language":364,"meta":365,"style":365},"export default {\n  baseURL: {\n    url: 'https://cdn.example.com/',\n    tags: ['img'],\n  },\n}\n",[338,455,456,464,472,485,504,510],{"__ignoreMap":365},[316,457,458,460,462],{"class":370,"line":371},[316,459,375],{"class":374},[316,461,378],{"class":374},[316,463,382],{"class":381},[316,465,466,468,470],{"class":370,"line":385},[316,467,389],{"class":388},[316,469,392],{"class":381},[316,471,382],{"class":381},[316,473,474,477,479,482],{"class":370,"line":398},[316,475,476],{"class":388},"    url",[316,478,392],{"class":381},[316,480,481],{"class":388}," 'https://cdn.example.com/'",[316,483,484],{"class":381},",\n",[316,486,488,491,493,496,499,502],{"class":370,"line":487},4,[316,489,490],{"class":388},"    tags",[316,492,392],{"class":381},[316,494,495],{"class":388}," [",[316,497,498],{"class":388},"'img'",[316,500,501],{"class":388},"]",[316,503,484],{"class":381},[316,505,507],{"class":370,"line":506},5,[316,508,509],{"class":381},"  },\n",[316,511,513],{"class":370,"line":512},6,[316,514,401],{"class":381},[280,516,517,518,521,522,524,525,528,529,532],{},"That will apply the ",[338,519,520],{},"url"," to all known source attributes on all ",[338,523,449],{}," elements in your HTML, like ",[338,526,527],{},"src=\"\""," or ",[338,530,531],{},"srcset=\"",".",[280,534,535],{},"If you need greater control, you may specify which attributes of which tags should be prepended what URL, by passing in an object instead:",[359,537,539],{"className":361,"code":538,"filename":363,"language":364,"meta":365,"style":365},"export default {\n  baseURL: {\n    url: 'https://cdn.example.com/',\n    tags: {\n      img: {\n        src: true, // use the value of `url` above\n        srcset: 'https://bar.com/',\n      },\n    },\n  },\n}\n",[338,540,541,549,557,567,575,584,601,614,620,626,631],{"__ignoreMap":365},[316,542,543,545,547],{"class":370,"line":371},[316,544,375],{"class":374},[316,546,378],{"class":374},[316,548,382],{"class":381},[316,550,551,553,555],{"class":370,"line":385},[316,552,389],{"class":388},[316,554,392],{"class":381},[316,556,382],{"class":381},[316,558,559,561,563,565],{"class":370,"line":398},[316,560,476],{"class":388},[316,562,392],{"class":381},[316,564,481],{"class":388},[316,566,484],{"class":381},[316,568,569,571,573],{"class":370,"line":487},[316,570,490],{"class":388},[316,572,392],{"class":381},[316,574,382],{"class":381},[316,576,577,580,582],{"class":370,"line":506},[316,578,579],{"class":388},"      img",[316,581,392],{"class":381},[316,583,382],{"class":381},[316,585,586,589,591,594,597],{"class":370,"line":512},[316,587,588],{"class":388},"        src",[316,590,392],{"class":381},[316,592,593],{"class":374}," true",[316,595,596],{"class":381},",",[316,598,600],{"class":599},"smVoC"," // use the value of `url` above\n",[316,602,604,607,609,612],{"class":370,"line":603},7,[316,605,606],{"class":388},"        srcset",[316,608,392],{"class":381},[316,610,611],{"class":388}," 'https://bar.com/'",[316,613,484],{"class":381},[316,615,617],{"class":370,"line":616},8,[316,618,619],{"class":381},"      },\n",[316,621,623],{"class":370,"line":622},9,[316,624,625],{"class":381},"    },\n",[316,627,629],{"class":370,"line":628},10,[316,630,509],{"class":381},[316,632,634],{"class":370,"line":633},11,[316,635,401],{"class":381},[424,637,638],{"id":638},"attributes",[280,640,429,641,644,436,646],{},[338,642,643],{},"Object",[434,645],{},[338,647,648],{},"{}",[280,650,651],{},"Key-value pairs of attributes and what to prepend to them.",[359,653,655],{"className":361,"code":654,"filename":363,"language":364,"meta":365,"style":365},"export default {\n  baseURL: {\n    attributes: {\n      'data-url': 'https://example.com/',\n    },\n  },\n}\n",[338,656,657,665,673,682,694,698,702],{"__ignoreMap":365},[316,658,659,661,663],{"class":370,"line":371},[316,660,375],{"class":374},[316,662,378],{"class":374},[316,664,382],{"class":381},[316,666,667,669,671],{"class":370,"line":385},[316,668,389],{"class":388},[316,670,392],{"class":381},[316,672,382],{"class":381},[316,674,675,678,680],{"class":370,"line":398},[316,676,677],{"class":388},"    attributes",[316,679,392],{"class":381},[316,681,382],{"class":381},[316,683,684,687,689,692],{"class":370,"line":487},[316,685,686],{"class":388},"      'data-url'",[316,688,392],{"class":381},[316,690,691],{"class":388}," 'https://example.com/'",[316,693,484],{"class":381},[316,695,696],{"class":370,"line":506},[316,697,625],{"class":381},[316,699,700],{"class":370,"line":512},[316,701,509],{"class":381},[316,703,704],{"class":370,"line":603},[316,705,401],{"class":381},[424,707,709],{"id":708},"styletag","styleTag",[280,711,429,712,715,436,717],{},[338,713,714],{},"Boolean",[434,716],{},[338,718,719],{},"true",[280,721,722,723,725,726,728,729,731,732,735],{},"By default, the transformer will prepend your ",[338,724,520],{}," to all ",[338,727,348],{}," sources in ",[338,730,340],{}," tags. Set this option to ",[338,733,734],{},"false"," to prevent it from doing so:",[359,737,739],{"className":361,"code":738,"filename":363,"language":364,"meta":365,"style":365},"export default {\n  baseURL: {\n    url: 'https://cdn.example.com/',\n    tags: ['img'],\n    styleTag: false,\n  },\n}\n",[338,740,741,749,757,767,781,793,797],{"__ignoreMap":365},[316,742,743,745,747],{"class":370,"line":371},[316,744,375],{"class":374},[316,746,378],{"class":374},[316,748,382],{"class":381},[316,750,751,753,755],{"class":370,"line":385},[316,752,389],{"class":388},[316,754,392],{"class":381},[316,756,382],{"class":381},[316,758,759,761,763,765],{"class":370,"line":398},[316,760,476],{"class":388},[316,762,392],{"class":381},[316,764,481],{"class":388},[316,766,484],{"class":381},[316,768,769,771,773,775,777,779],{"class":370,"line":487},[316,770,490],{"class":388},[316,772,392],{"class":381},[316,774,495],{"class":388},[316,776,498],{"class":388},[316,778,501],{"class":388},[316,780,484],{"class":381},[316,782,783,786,788,791],{"class":370,"line":506},[316,784,785],{"class":388},"    styleTag",[316,787,392],{"class":381},[316,789,790],{"class":374}," false",[316,792,484],{"class":381},[316,794,795],{"class":370,"line":512},[316,796,509],{"class":381},[316,798,799],{"class":370,"line":603},[316,800,401],{"class":381},[424,802,804],{"id":803},"inlinecss","inlineCss",[280,806,429,807,809,436,811],{},[338,808,714],{},[434,810],{},[338,812,719],{},[280,814,815,816,725,818,728,820,822],{},"Similarly, the transformer will prepend your ",[338,817,520],{},[338,819,348],{},[338,821,344],{}," attributes. You may disable this if you need to:",[359,824,826],{"className":361,"code":825,"filename":363,"language":364,"meta":365,"style":365},"export default {\n  baseURL: {\n    url: 'https://cdn.example.com/',\n    tags: ['img'],\n    inlineCss: false,\n  },\n}\n",[338,827,828,836,844,854,868,879,883],{"__ignoreMap":365},[316,829,830,832,834],{"class":370,"line":371},[316,831,375],{"class":374},[316,833,378],{"class":374},[316,835,382],{"class":381},[316,837,838,840,842],{"class":370,"line":385},[316,839,389],{"class":388},[316,841,392],{"class":381},[316,843,382],{"class":381},[316,845,846,848,850,852],{"class":370,"line":398},[316,847,476],{"class":388},[316,849,392],{"class":381},[316,851,481],{"class":388},[316,853,484],{"class":381},[316,855,856,858,860,862,864,866],{"class":370,"line":487},[316,857,490],{"class":388},[316,859,392],{"class":381},[316,861,495],{"class":388},[316,863,498],{"class":388},[316,865,501],{"class":388},[316,867,484],{"class":381},[316,869,870,873,875,877],{"class":370,"line":506},[316,871,872],{"class":388},"    inlineCss",[316,874,392],{"class":381},[316,876,790],{"class":374},[316,878,484],{"class":381},[316,880,881],{"class":370,"line":512},[316,882,509],{"class":381},[316,884,885],{"class":370,"line":603},[316,886,401],{"class":381},[351,888,890],{"id":889},"front-matter","Front Matter",[280,892,893],{},"You may override it for a single Template, through Front Matter:",[359,895,900],{"className":896,"code":897,"filename":898,"language":899,"meta":365,"style":365},"language-hbs shiki shiki-themes tailwind-css tailwind-css","---\nbaseURL: 'https://res.cloudinary.com/user/image/upload/'\n---\n\n\u003Cx-main>\n  \u003Cimg src=\"example.jpg\">\n\u003C/x-main>\n","emails/example.html","hbs",[338,901,902,907,925,929,935,946,970],{"__ignoreMap":365},[316,903,904],{"class":370,"line":371},[316,905,906],{"class":388},"---\n",[316,908,909,912,915,919,922],{"class":370,"line":385},[316,910,911],{"class":374},"baseURL",[316,913,392],{"class":914},"soJEP",[316,916,918],{"class":917},"sQMLp"," '",[316,920,921],{"class":388},"https://res.cloudinary.com/user/image/upload/",[316,923,924],{"class":917},"'\n",[316,926,927],{"class":370,"line":398},[316,928,906],{"class":388},[316,930,931],{"class":370,"line":487},[316,932,934],{"emptyLinePlaceholder":933},true,"\n",[316,936,937,940,943],{"class":370,"line":506},[316,938,939],{"class":914},"\u003C",[316,941,942],{"class":374},"x-main",[316,944,945],{"class":914},">\n",[316,947,948,951,954,957,960,963,966,968],{"class":370,"line":512},[316,949,950],{"class":914},"  \u003C",[316,952,953],{"class":374},"img",[316,955,956],{"class":917}," src",[316,958,959],{"class":914},"=",[316,961,962],{"class":917},"\"",[316,964,965],{"class":388},"example.jpg",[316,967,962],{"class":917},[316,969,945],{"class":914},[316,971,972,975,977],{"class":370,"line":603},[316,973,974],{"class":914},"\u003C/",[316,976,942],{"class":374},[316,978,945],{"class":914},[351,980,982],{"id":981},"trailing-slash","Trailing slash",[280,984,985,986,988,989,992],{},"When ",[338,987,911],{}," is not an absolute URL, ",[338,990,991],{},"path.join"," is used to prepend the base URL to the source, so you don't need to worry about trailing slashes.",[280,994,995],{},"However, you need to consider trailing slashes when the base URL is an absolute URL.",[359,997,1002],{"className":998,"code":999,"filename":1000,"language":1001,"meta":365,"style":365},"language-html shiki shiki-themes tailwind-css tailwind-css","\u003Cimg src=\"/folder/product-1.png\">\n\n\u003C!-- Result -->\n\u003Cimg src=\"https://example.com/img/folder/product-1.png\">\n","baseURL: 'https://example.com/img'","html",[338,1003,1004,1023,1027,1032],{"__ignoreMap":365},[316,1005,1006,1008,1010,1012,1014,1016,1019,1021],{"class":370,"line":371},[316,1007,939],{"class":914},[316,1009,953],{"class":374},[316,1011,956],{"class":917},[316,1013,959],{"class":914},[316,1015,962],{"class":917},[316,1017,1018],{"class":388},"/folder/product-1.png",[316,1020,962],{"class":917},[316,1022,945],{"class":914},[316,1024,1025],{"class":370,"line":385},[316,1026,934],{"emptyLinePlaceholder":933},[316,1028,1029],{"class":370,"line":398},[316,1030,1031],{"class":599},"\u003C!-- Result -->\n",[316,1033,1034,1036,1038,1040,1042,1044,1047,1049],{"class":370,"line":487},[316,1035,939],{"class":914},[316,1037,953],{"class":374},[316,1039,956],{"class":917},[316,1041,959],{"class":914},[316,1043,962],{"class":917},[316,1045,1046],{"class":388},"https://example.com/img/folder/product-1.png",[316,1048,962],{"class":917},[316,1050,945],{"class":914},[280,1052,1053,1054,1056],{},"If we add a trailing slash to ",[338,1055,911],{},", we get a double slash in the result:",[359,1058,1061],{"className":998,"code":1059,"filename":1060,"language":1001,"meta":365,"style":365},"\u003Cimg src=\"/folder/product-1.png\">\n\n\u003C!-- Result -->\n\u003Cimg src=\"https://example.com/img//folder/product-1.png\">\n","baseURL: 'https://example.com/img/'",[338,1062,1063,1081,1085,1089],{"__ignoreMap":365},[316,1064,1065,1067,1069,1071,1073,1075,1077,1079],{"class":370,"line":371},[316,1066,939],{"class":914},[316,1068,953],{"class":374},[316,1070,956],{"class":917},[316,1072,959],{"class":914},[316,1074,962],{"class":917},[316,1076,1018],{"class":388},[316,1078,962],{"class":917},[316,1080,945],{"class":914},[316,1082,1083],{"class":370,"line":385},[316,1084,934],{"emptyLinePlaceholder":933},[316,1086,1087],{"class":370,"line":398},[316,1088,1031],{"class":599},[316,1090,1091,1093,1095,1097,1099,1101,1104,1106],{"class":370,"line":487},[316,1092,939],{"class":914},[316,1094,953],{"class":374},[316,1096,956],{"class":917},[316,1098,959],{"class":914},[316,1100,962],{"class":917},[316,1102,1103],{"class":388},"https://example.com/img//folder/product-1.png",[316,1105,962],{"class":917},[316,1107,945],{"class":914},[351,1109,1111],{"id":1110},"disabling","Disabling",[280,1113,1114,1115,1117],{},"If you have ",[338,1116,911],{}," set globally (in your config), you may disable it for a Template by setting its value to an empty string or a falsy value in Front Matter:",[359,1119,1123],{"className":1120,"code":1121,"language":1122,"meta":365,"style":365},"language-yaml shiki shiki-themes tailwind-css tailwind-css","---\nbaseURL: ''\n---\n","yaml",[338,1124,1125,1130,1139],{"__ignoreMap":365},[316,1126,1127],{"class":370,"line":371},[316,1128,906],{"class":1129},"s1Ehh",[316,1131,1132,1134,1136],{"class":370,"line":385},[316,1133,911],{"class":374},[316,1135,392],{"class":381},[316,1137,1138],{"class":388}," ''\n",[316,1140,1141],{"class":370,"line":398},[316,1142,906],{"class":1129},[280,1144,1145],{},"or",[359,1147,1149],{"className":1120,"code":1148,"language":1122,"meta":365,"style":365},"---\nbaseURL: false\n---\n",[338,1150,1151,1155,1164],{"__ignoreMap":365},[316,1152,1153],{"class":370,"line":371},[316,1154,906],{"class":1129},[316,1156,1157,1159,1161],{"class":370,"line":385},[316,1158,911],{"class":374},[316,1160,392],{"class":381},[316,1162,1163],{"class":374}," false\n",[316,1165,1166],{"class":370,"line":398},[316,1167,906],{"class":1129},[351,1169,102],{"id":1170},"api",[359,1172,1175],{"className":361,"code":1173,"filename":1174,"language":364,"meta":365,"style":365},"import { addBaseUrl } from '@maizzle/framework'\n\nconst config = {\n  url: 'https://cdn.example.com/img/',\n}\n\nconst html = await addBaseUrl('\u003Cimg src=\"image.jpg\">', config)\n","app.js",[338,1176,1177,1199,1203,1216,1228,1232,1236],{"__ignoreMap":365},[316,1178,1179,1183,1186,1190,1193,1196],{"class":370,"line":371},[316,1180,1182],{"class":1181},"s8qYB","import",[316,1184,1185],{"class":381}," {",[316,1187,1189],{"class":1188},"sO1gY"," addBaseUrl",[316,1191,1192],{"class":381}," }",[316,1194,1195],{"class":381}," from",[316,1197,1198],{"class":1181}," '@maizzle/framework'\n",[316,1200,1201],{"class":370,"line":385},[316,1202,934],{"emptyLinePlaceholder":933},[316,1204,1205,1208,1211,1214],{"class":370,"line":398},[316,1206,1207],{"class":1181},"const",[316,1209,1210],{"class":388}," config ",[316,1212,959],{"class":1213},"sVevU",[316,1215,382],{"class":381},[316,1217,1218,1221,1223,1226],{"class":370,"line":487},[316,1219,1220],{"class":388},"  url",[316,1222,392],{"class":381},[316,1224,1225],{"class":388}," 'https://cdn.example.com/img/'",[316,1227,484],{"class":381},[316,1229,1230],{"class":370,"line":506},[316,1231,401],{"class":381},[316,1233,1234],{"class":370,"line":512},[316,1235,934],{"emptyLinePlaceholder":933},[316,1237,1238,1240,1243,1245,1248,1251,1254,1257,1259,1262],{"class":370,"line":603},[316,1239,1207],{"class":1181},[316,1241,1242],{"class":388}," html ",[316,1244,959],{"class":1213},[316,1246,1247],{"class":374}," await",[316,1249,1189],{"class":1250},"s2ImL",[316,1252,1253],{"class":388},"(",[316,1255,1256],{"class":388},"'\u003Cimg src=\"image.jpg\">'",[316,1258,596],{"class":381},[316,1260,1261],{"class":1181}," config",[316,1263,1264],{"class":388},")\n",[1266,1267,1268],"style",{},"html pre.shiki code .sizJ4, html code.shiki .sizJ4{--shiki-light:#EC4899;--shiki-dark:#EC4899}html pre.shiki code .sprQ5, html code.shiki .sprQ5{--shiki-light:#44403C;--shiki-dark:#44403C}html pre.shiki code .sfCc6, html code.shiki .sfCc6{--shiki-light:#1D4ED8;--shiki-dark:#1D4ED8}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 .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 .smVoC, html code.shiki .smVoC{--shiki-light:#94A3B8;--shiki-light-font-style:italic;--shiki-dark:#94A3B8;--shiki-dark-font-style:italic}html pre.shiki code .soJEP, html code.shiki .soJEP{--shiki-light:#CBD5E1;--shiki-dark:#CBD5E1}html pre.shiki code .sQMLp, html code.shiki .sQMLp{--shiki-light:#0EA5E9;--shiki-dark:#0EA5E9}html pre.shiki code .s1Ehh, html code.shiki .s1Ehh{--shiki-light:#758CA9;--shiki-dark:#758CA9}html pre.shiki code .s8qYB, html code.shiki .s8qYB{--shiki-light:#3730A3;--shiki-dark:#3730A3}html pre.shiki code .sO1gY, html code.shiki .sO1gY{--shiki-light:#2563EB;--shiki-dark:#2563EB}html pre.shiki code .sVevU, html code.shiki .sVevU{--shiki-light:#35393E;--shiki-dark:#35393E}html pre.shiki code .s2ImL, html code.shiki .s2ImL{--shiki-light:#00BF99;--shiki-dark:#00BF99}",{"title":365,"searchDepth":385,"depth":385,"links":1270},[1271,1272,1278,1279,1280,1281],{"id":353,"depth":385,"text":354},{"id":418,"depth":385,"text":419,"children":1273},[1274,1275,1276,1277],{"id":426,"depth":398,"text":426},{"id":638,"depth":398,"text":638},{"id":708,"depth":398,"text":709},{"id":803,"depth":398,"text":804},{"id":889,"depth":385,"text":890},{"id":981,"depth":385,"text":982},{"id":1110,"depth":385,"text":1111},{"id":1170,"depth":385,"text":102},"Set a base URL and easily prepend absolute URLs to any source in your HTML emails.","md",{},{"title":144,"description":1282},{"loc":145},"docs/transformers/base-url","68i7rnUi_ZUkS1qCqTfyyCpaA69ztvZ_lgzdN4LHRdg",{"id":4,"extension":5,"items":1290,"meta":1361,"stem":195,"__hash__":196},[1291,1301,1306,1315,1328,1346,1352],{"name":8,"items":1292},[1293,1294,1295,1296,1297,1298,1299,1300],{"title":11,"path":12},{"title":14,"path":15},{"title":17,"path":18},{"title":20,"path":21},{"title":23,"path":24},{"title":26,"path":27},{"title":29,"path":30},{"title":32,"path":33},{"name":35,"items":1302},[1303,1304,1305],{"title":38,"path":39},{"title":41,"path":42},{"title":44,"path":45},{"name":47,"items":1307},[1308,1309,1310,1311,1312,1313,1314],{"title":50,"path":51},{"title":53,"path":54},{"title":56,"path":57},{"title":59,"path":60},{"title":62,"path":63},{"title":65,"path":66},{"title":68,"path":69},{"name":71,"items":1316},[1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327],{"title":74,"path":75},{"title":77,"path":78},{"title":59,"path":80},{"title":62,"path":82},{"title":84,"path":85},{"title":87,"path":88},{"title":90,"path":91},{"title":93,"path":94},{"title":96,"path":97},{"title":99,"path":100},{"title":102,"path":103},{"name":105,"items":1329},[1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345],{"title":108,"path":109},{"title":111,"path":112},{"title":114,"path":115},{"title":117,"path":118},{"title":120,"path":121},{"title":123,"path":124},{"title":126,"path":127},{"title":129,"path":130},{"title":132,"path":133},{"title":135,"path":136},{"title":138,"path":139},{"title":141,"path":142},{"title":144,"path":145},{"title":147,"path":148},{"title":150,"path":151},{"title":153,"path":154},{"name":156,"items":1347},[1348,1349,1350,1351],{"title":159,"path":160},{"title":162,"path":163},{"title":165,"path":166},{"title":168,"path":169},{"name":171,"items":1353},[1354,1355,1356,1357,1358,1359,1360],{"title":174,"path":175},{"title":177,"path":178},{"title":180,"path":181},{"title":183,"path":184},{"title":186,"path":187},{"title":189,"path":190},{"title":192,"path":193},{},1780318594918]