nuxt-og-image 3.0.0-rc.53 → 3.0.0-rc.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -9
- package/dist/client/200.html +122 -95
- package/dist/client/404.html +122 -95
- package/dist/client/_nuxt/{3Yx8WcR-.js → B3g-KkBK.js} +1 -1
- package/dist/client/_nuxt/B474tPdy.js +66 -0
- package/dist/client/_nuxt/B6E6ObS_.js +8 -0
- package/dist/client/_nuxt/{B6nY7VDA.js → B6bHXiXE.js} +1 -1
- package/dist/client/_nuxt/B7rNE5kf.js +1 -0
- package/dist/client/_nuxt/BEjL32p1.js +5754 -0
- package/dist/client/_nuxt/BJn7Ek5W.js +1 -0
- package/dist/client/_nuxt/BVGdgKAv.js +1 -0
- package/dist/client/_nuxt/{wORFcijT.js → BXR915QZ.js} +1 -1
- package/dist/client/_nuxt/{DCj4DH6i.js → BYdKNJ10.js} +1 -1
- package/dist/client/_nuxt/BZfs-ost.js +1 -0
- package/dist/client/_nuxt/{DCdPDLy4.js → BacI6-DX.js} +1 -1
- package/dist/client/_nuxt/{DCk2z-Tu.js → BdfWgkoX.js} +1 -1
- package/dist/client/_nuxt/Bfj2ThZ4.js +3 -0
- package/dist/client/_nuxt/{D6NljDpC.js → BigF1UXR.js} +1 -1
- package/dist/client/_nuxt/Bj0fF4lQ.js +1 -0
- package/dist/client/_nuxt/BmSZh3NL.js +1 -0
- package/dist/client/_nuxt/{DaCkt_J7.js → Br6ll-O0.js} +1 -1
- package/dist/client/_nuxt/BscxmKrE.js +8 -0
- package/dist/client/_nuxt/Buoqr_Oi.js +2 -0
- package/dist/client/_nuxt/BvCdDh2R.js +1 -0
- package/dist/client/_nuxt/BwXNTs7T.js +1 -0
- package/dist/client/_nuxt/{CQ1WWl9n.js → Bxkoe-BC.js} +1 -1
- package/dist/client/_nuxt/C2WjX3hy.js +1 -0
- package/dist/client/_nuxt/C3qJFuQy.js +3 -0
- package/dist/client/_nuxt/C3qUB5O8.js +301 -0
- package/dist/client/_nuxt/C6XIsc4F.js +1 -0
- package/dist/client/_nuxt/CA9nliXM.js +1 -0
- package/dist/client/_nuxt/{BsfQk1vf.js → CEfge3mM.js} +1 -1
- package/dist/client/_nuxt/CGmujMTu.js +1 -0
- package/dist/client/_nuxt/{CQTpvb7m.js → CHCTrc3a.js} +1 -1
- package/dist/client/_nuxt/{B9E_xdxs.js → CNkYXcD4.js} +1 -1
- package/dist/client/_nuxt/CO5hpdkB.js +1 -0
- package/dist/client/_nuxt/{DsudziMp.js → COIrKlfF.js} +1 -1
- package/dist/client/_nuxt/CO_xte_X.js +131 -0
- package/dist/client/_nuxt/{DZ3fVoEH.js → CSPeAESR.js} +1 -1
- package/dist/client/_nuxt/C_ZPRiAj.js +26 -0
- package/dist/client/_nuxt/{DCAtC51B.js → CarfVElc.js} +1 -1
- package/dist/client/_nuxt/{BgBwMnrY.js → CcYwH0AH.js} +1 -1
- package/dist/client/_nuxt/Cgl53LJQ.js +1 -0
- package/dist/client/_nuxt/{RgJsN3zu.js → ChMCFiS0.js} +1 -1
- package/dist/client/_nuxt/CiRxTSAc.js +1 -0
- package/dist/client/_nuxt/Cp2HGa90.js +353 -0
- package/dist/client/_nuxt/CpAANOdC.js +1 -0
- package/dist/client/_nuxt/{DfUNg_8t.js → CqYeW6XZ.js} +1 -1
- package/dist/client/_nuxt/{CL7Ixq1B.js → CrgTADc5.js} +1 -1
- package/dist/client/_nuxt/CuJfdYLG.js +1 -0
- package/dist/client/_nuxt/{DZWTOXyg.js → D0R5gFyj.js} +1 -1
- package/dist/client/_nuxt/{CRWwmX0L.js → D4FSFK-1.js} +1 -1
- package/dist/client/_nuxt/D71BffLY.js +1 -0
- package/dist/client/_nuxt/DAP_O-zg.js +1 -0
- package/dist/client/_nuxt/DAfrLhwG.js +1 -0
- package/dist/client/_nuxt/{crZ1QlHm.js → DDTaAggl.js} +1 -1
- package/dist/client/_nuxt/DG8tVHNj.js +6 -0
- package/dist/client/_nuxt/{Bd7iooY8.js → DGDuLtS6.js} +1 -1
- package/dist/client/_nuxt/{DIr-ordK.js → DGEpfOTx.js} +1 -1
- package/dist/client/_nuxt/{j8KhMG0x.js → DGxQkqYo.js} +1 -1
- package/dist/client/_nuxt/DKb4lQY2.js +1 -0
- package/dist/client/_nuxt/DOHBU7tp.js +1 -0
- package/dist/client/_nuxt/{CUVblut_.js → DR5YgmI2.js} +1 -1
- package/dist/client/_nuxt/DS9ZWoKD.js +1 -0
- package/dist/client/_nuxt/DVC_qXWv.js +1 -0
- package/dist/client/_nuxt/{D-pQtGOP.js → DVLwECkk.js} +1 -1
- package/dist/client/_nuxt/DZLoTQm4.js +1 -0
- package/dist/client/_nuxt/{ZQC2c-5V.js → D_T9yQUo.js} +3 -3
- package/dist/client/_nuxt/Dd6f7Z5P.js +1 -0
- package/dist/client/_nuxt/Dit6kIrv.js +11 -0
- package/dist/client/_nuxt/{DXpYegZJ.js → Djqq6n-7.js} +1 -1
- package/dist/client/_nuxt/Dkb1Nx48.js +1 -0
- package/dist/client/_nuxt/{DywwDckn.js → Du6_OKDb.js} +1 -1
- package/dist/client/_nuxt/FJDVp-XM.js +1 -0
- package/dist/client/_nuxt/{IHMnEr_d.js → G-Jz5hiA.js} +1 -1
- package/dist/client/_nuxt/{NL97_oaV.js → GPY1wEXZ.js} +1 -1
- package/dist/client/_nuxt/HrnDn_2Q.js +1 -0
- package/dist/client/_nuxt/IconCSS.ml_PwIMm.css +1 -0
- package/dist/client/_nuxt/{CPHkTjfH.js → JgH_6NEN.js} +1 -1
- package/dist/client/_nuxt/KPqz0Sb3.js +1 -0
- package/dist/client/_nuxt/Ksn5IXup.js +1 -0
- package/dist/client/_nuxt/{wPLeKH6q.js → Lpdzc9s2.js} +1 -1
- package/dist/client/_nuxt/MS3qTAOR.js +1 -0
- package/dist/client/_nuxt/VQMr7AbF.js +1 -0
- package/dist/client/_nuxt/{BILqrcpa.js → YdT6Gj0u.js} +1 -1
- package/dist/client/_nuxt/alpzPJ78.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/9c44c5bc-d169-48e8-9ee0-e1d453302bef.json +1 -0
- package/dist/client/_nuxt/cW9vKj3g.js +1 -0
- package/dist/client/_nuxt/{Bdb36Id5.js → dIHJ9UdL.js} +1 -1
- package/dist/client/_nuxt/entry.B6GrRE4Z.css +1 -0
- package/dist/client/_nuxt/error-404.23TGmWF7.css +1 -0
- package/dist/client/_nuxt/error-500.DAazy6YX.css +1 -0
- package/dist/client/_nuxt/{doGI2cFk.js → wKgfcFVx.js} +1 -1
- package/dist/client/_nuxt/xtV5iK4E.js +1 -0
- package/dist/client/_nuxt/zhgf4ixb.js +40 -0
- package/dist/module.d.mts +2 -106
- package/dist/module.d.ts +2 -106
- package/dist/module.json +3 -3
- package/dist/module.mjs +18 -9
- package/dist/runtime/nitro/og-image/bindings/chromium/{on-demand.mjs → on-demand.js} +1 -2
- package/dist/runtime/nitro/og-image/bindings/css-inline/{wasm-fs.mjs → wasm-fs.js} +1 -1
- package/dist/runtime/nitro/og-image/bindings/resvg/wasm-fs.d.ts +1 -1
- package/dist/runtime/nitro/og-image/bindings/resvg/{wasm-fs.mjs → wasm-fs.js} +1 -1
- package/dist/runtime/nitro/og-image/bindings/resvg/wasm.d.ts +1 -1
- package/dist/runtime/nitro/og-image/bindings/satori/{wasm-fs.mjs → wasm-fs.js} +1 -1
- package/dist/runtime/nitro/og-image/cache.d.ts +1 -1
- package/dist/runtime/nitro/og-image/chromium/renderer.d.ts +1 -1
- package/dist/runtime/nitro/og-image/chromium/{renderer.mjs → renderer.js} +1 -1
- package/dist/runtime/nitro/og-image/chromium/screenshot.d.ts +1 -2
- package/dist/runtime/nitro/og-image/chromium/{screenshot.mjs → screenshot.js} +1 -1
- package/dist/runtime/nitro/og-image/context.d.ts +1 -1
- package/dist/runtime/nitro/og-image/{context.mjs → context.js} +6 -5
- package/dist/runtime/nitro/og-image/satori/font.d.ts +2 -2
- package/dist/runtime/nitro/og-image/satori/{font.mjs → font.js} +2 -2
- package/dist/runtime/nitro/og-image/satori/instances.d.ts +5 -3
- package/dist/runtime/nitro/og-image/satori/plugins/{classes.mjs → classes.js} +1 -1
- package/dist/runtime/nitro/og-image/satori/plugins/{emojis.mjs → emojis.js} +1 -1
- package/dist/runtime/nitro/og-image/satori/plugins/{encoding.mjs → encoding.js} +2 -2
- package/dist/runtime/nitro/og-image/satori/plugins/{flex.mjs → flex.js} +1 -1
- package/dist/runtime/nitro/og-image/satori/plugins/{imageSrc.mjs → imageSrc.js} +8 -8
- package/dist/runtime/nitro/og-image/satori/plugins/{unocss.mjs → unocss.js} +1 -1
- package/dist/runtime/nitro/og-image/satori/renderer.d.ts +1 -1
- package/dist/runtime/nitro/og-image/satori/{renderer.mjs → renderer.js} +4 -4
- package/dist/runtime/nitro/og-image/satori/transforms/emojis.d.ts +2 -2
- package/dist/runtime/nitro/og-image/satori/transforms/inlineCss.d.ts +1 -1
- package/dist/runtime/nitro/og-image/satori/transforms/{inlineCss.mjs → inlineCss.js} +2 -2
- package/dist/runtime/nitro/og-image/satori/utils.d.ts +1 -1
- package/dist/runtime/nitro/og-image/satori/vnodes.d.ts +1 -1
- package/dist/runtime/nitro/og-image/satori/{vnodes.mjs → vnodes.js} +11 -11
- package/dist/runtime/nitro/og-image/templates/html.d.ts +1 -1
- package/dist/runtime/nitro/og-image/templates/{html.mjs → html.js} +3 -3
- package/dist/runtime/nitro/plugins/nuxt-content.d.ts +1 -1
- package/dist/runtime/nitro/plugins/{nuxt-content.mjs → nuxt-content.js} +1 -1
- package/dist/runtime/nitro/plugins/prerender.d.ts +1 -1
- package/dist/runtime/nitro/plugins/{prerender.mjs → prerender.js} +4 -4
- package/dist/runtime/nitro/routes/{debug.json.mjs → debug.json.js} +1 -1
- package/dist/runtime/nitro/routes/{font.mjs → font.js} +1 -1
- package/dist/runtime/nitro/routes/{image.mjs → image.js} +4 -4
- package/dist/runtime/nitro/util/cache.d.ts +2 -2
- package/dist/runtime/nitro/util/{cache.mjs → cache.js} +2 -1
- package/dist/runtime/nitro/util/{encoding.mjs → encoding.js} +1 -1
- package/dist/runtime/nitro/util/wasm.d.ts +0 -1
- package/dist/runtime/nuxt/components/OgImage/OgImage.d.ts +3 -3
- package/dist/runtime/nuxt/components/OgImage/OgImageScreenshot.d.ts +3 -3
- package/dist/runtime/nuxt/components/Templates/Community/Nuxt.vue +1 -1
- package/dist/runtime/nuxt/components/Templates/Community/NuxtSeo.vue +4 -4
- package/dist/runtime/nuxt/components/Templates/Community/Pergel.vue +1 -2
- package/dist/runtime/nuxt/composables/defineOgImage.d.ts +1 -1
- package/dist/runtime/nuxt/composables/{defineOgImage.mjs → defineOgImage.js} +3 -3
- package/dist/runtime/nuxt/composables/defineOgImageComponent.d.ts +1 -1
- package/dist/runtime/nuxt/composables/{defineOgImageComponent.mjs → defineOgImageComponent.js} +1 -1
- package/dist/runtime/nuxt/composables/defineOgImageScreenshot.d.ts +2 -2
- package/dist/runtime/nuxt/composables/mock.d.ts +4 -0
- package/dist/runtime/nuxt/plugins/og-image-canonical-urls.server.d.ts +1 -1
- package/dist/runtime/nuxt/plugins/{og-image-canonical-urls.server.mjs → og-image-canonical-urls.server.js} +1 -1
- package/dist/runtime/nuxt/plugins/route-rule-og-image.server.d.ts +1 -1
- package/dist/runtime/nuxt/plugins/{route-rule-og-image.server.mjs → route-rule-og-image.server.js} +2 -2
- package/dist/runtime/nuxt/utils.d.ts +1 -1
- package/dist/runtime/nuxt/{utils.mjs → utils.js} +1 -1
- package/dist/runtime/pure.d.ts +1 -1
- package/dist/runtime/shared.d.ts +2 -2
- package/dist/runtime/{shared.mjs → shared.js} +1 -1
- package/dist/runtime/types.d.ts +2 -0
- package/dist/types.d.mts +2 -9
- package/dist/types.d.ts +2 -9
- package/package.json +46 -44
- package/dist/client/_nuxt/-hLHpAOl.js +0 -1
- package/dist/client/_nuxt/B561T8eW.js +0 -1
- package/dist/client/_nuxt/BBv1LFm6.js +0 -6
- package/dist/client/_nuxt/BIMuYTWL.js +0 -3
- package/dist/client/_nuxt/BSyl5yf0.js +0 -1
- package/dist/client/_nuxt/Bsp1M94H.js +0 -1
- package/dist/client/_nuxt/BswfO-CF.js +0 -1
- package/dist/client/_nuxt/Bz4xi2rU.js +0 -1
- package/dist/client/_nuxt/CGQbO34C.js +0 -1
- package/dist/client/_nuxt/CoEqzGFw.js +0 -44
- package/dist/client/_nuxt/CudBhkk3.js +0 -1
- package/dist/client/_nuxt/D4LhxNOI.js +0 -1
- package/dist/client/_nuxt/D4k753MY.js +0 -1
- package/dist/client/_nuxt/DFF-wSSt.js +0 -8
- package/dist/client/_nuxt/Dk5M0e7R.js +0 -135
- package/dist/client/_nuxt/DnhXxWz-.js +0 -1
- package/dist/client/_nuxt/Dszwcx0o.js +0 -1
- package/dist/client/_nuxt/Dz2Ca8U2.js +0 -1
- package/dist/client/_nuxt/DzPyIVdT.js +0 -9
- package/dist/client/_nuxt/IconCSS.DI_jUTCX.css +0 -1
- package/dist/client/_nuxt/TQ9oWRfF.js +0 -1
- package/dist/client/_nuxt/WoBtJUue.js +0 -1
- package/dist/client/_nuxt/bmJ2objS.js +0 -1
- package/dist/client/_nuxt/builds/meta/7e516fcf-301f-4df9-8a57-a4bd3951d194.json +0 -1
- package/dist/client/_nuxt/entry.CyZsr2dM.css +0 -1
- package/dist/client/_nuxt/error-404.BRldFSII.css +0 -1
- package/dist/client/_nuxt/error-500.D8yw_IbC.css +0 -1
- package/dist/client/index.html +0 -239
- /package/dist/runtime/nitro/og-image/bindings/chromium/{chrome-launcher.mjs → chrome-launcher.js} +0 -0
- /package/dist/runtime/nitro/og-image/bindings/chromium/{playwright.mjs → playwright.js} +0 -0
- /package/dist/runtime/nitro/og-image/bindings/css-inline/{node.mjs → node.js} +0 -0
- /package/dist/runtime/nitro/og-image/bindings/css-inline/{wasm.mjs → wasm.js} +0 -0
- /package/dist/runtime/nitro/og-image/bindings/resvg/{node.mjs → node.js} +0 -0
- /package/dist/runtime/nitro/og-image/bindings/resvg/{wasm.mjs → wasm.js} +0 -0
- /package/dist/runtime/nitro/og-image/bindings/satori/{node.mjs → node.js} +0 -0
- /package/dist/runtime/nitro/og-image/bindings/satori/{wasm.mjs → wasm.js} +0 -0
- /package/dist/runtime/nitro/og-image/bindings/sharp/{node.mjs → node.js} +0 -0
- /package/dist/runtime/nitro/og-image/{cache.mjs → cache.js} +0 -0
- /package/dist/runtime/nitro/og-image/{instances.mjs → instances.js} +0 -0
- /package/dist/runtime/nitro/og-image/satori/{instances.mjs → instances.js} +0 -0
- /package/dist/runtime/nitro/og-image/satori/transforms/{emojis.mjs → emojis.js} +0 -0
- /package/dist/runtime/nitro/og-image/satori/{utils.mjs → utils.js} +0 -0
- /package/dist/runtime/nitro/util/{kit.mjs → kit.js} +0 -0
- /package/dist/runtime/nitro/util/{wasm.mjs → wasm.js} +0 -0
- /package/dist/runtime/nuxt/components/OgImage/{OgImage.mjs → OgImage.js} +0 -0
- /package/dist/runtime/nuxt/components/OgImage/{OgImageScreenshot.mjs → OgImageScreenshot.js} +0 -0
- /package/dist/runtime/nuxt/composables/{defineOgImageScreenshot.mjs → defineOgImageScreenshot.js} +0 -0
- /package/dist/runtime/nuxt/composables/{mock.mjs → mock.js} +0 -0
- /package/dist/runtime/{pure.mjs → pure.js} +0 -0
- /package/dist/runtime/{types.mjs → types.js} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import t from"./CbViG2Xw.js";import e from"./CbYhyuC0.js";import i from"./DeVv6D4_.js";import n from"./ClXEvkw9.js";import a from"./BVGdgKAv.js";import s from"./B9S9BZZh.js";import m from"./Dwo2i-71.js";import d from"./BXfENWL6.js";import g from"./CarfVElc.js";import u from"./Cthz8VOO.js";import l from"./DbK06e1c.js";import o from"./beD-FUib.js";import c from"./CsYA0RN7.js";import r from"./CJQrLysU.js";import x from"./C5gCGmDW.js";import p from"./BPiaQZfK.js";import h from"./BF6G6X0H.js";import k from"./Bg0wAK5a.js";import b from"./RCJZWN-0.js";import w from"./BOnd8D4O.js";import f from"./DvyTQcux.js";import y from"./DNR26wTC.js";import C from"./BJn7Ek5W.js";import N from"./wChcbJ1V.js";import E from"./DhFF74a2.js";import $ from"./Dch3xQiY.js";import j from"./DYI1rfmx.js";import R from"./Du6_OKDb.js";import T from"./DHmGyzbM.js";import O from"./Dez-Qvcc.js";import G from"./BeX7Iu5M.js";import A from"./D384ylkT.js";import v from"./9ZOzOPqN.js";import I from"./DwuVtWc2.js";import L from"./D_T9yQUo.js";import M from"./DGxQkqYo.js";import S from"./vMsNTMhM.js";import D from"./BZfs-ost.js";import U from"./DC8MraHL.js";import H from"./DISxKEhY.js";import V from"./Djqq6n-7.js";import Y from"./DZLoTQm4.js";import q from"./DUdlC5k_.js";import _ from"./BdfWgkoX.js";import P from"./DS9ZWoKD.js";import B from"./BaNxgKSR.js";import W from"./Bfj2ThZ4.js";import z from"./BaedD2tq.js";import K from"./CupVZNk8.js";import"./DouzTJIq.js";import"./CMDmr8et.js";import"./DSrLtGYv.js";import"./Bj0fF4lQ.js";import"./nclm9rTJ.js";import"./DAGYewaG.js";const Z=Object.freeze({displayName:"Wikitext",name:"wikitext",patterns:[{include:"#wikitext"},{include:"text.html.basic"}],repository:{wikitext:{patterns:[{include:"#signature"},{include:"#redirect"},{include:"#magic-words"},{include:"#argument"},{include:"#template"},{include:"#convert"},{include:"#list"},{include:"#table"},{include:"#font-style"},{include:"#internal-link"},{include:"#external-link"},{include:"#heading"},{include:"#break"},{include:"#wikixml"},{include:"#extension-comments"}],repository:{argument:{begin:"({{{)",end:"(}}})",name:"variable.parameter.wikitext",patterns:[{captures:{1:{name:"variable.other.wikitext"},2:{name:"keyword.operator.wikitext"}},match:"(?:^|\\G)([^#:\\|\\[\\]\\{\\}\\|]*)(\\|)"},{include:"$self"}]},break:{match:"^-{4,}",name:"markup.changed.wikitext"},convert:{begin:"(-\\{(?!\\{))([a-zA-Z](\\|))?",captures:{1:{name:"punctuation.definition.tag.template.wikitext"},2:{name:"entity.name.function.type.wikitext"},3:{name:"keyword.operator.wikitext"}},end:"(\\}-)",patterns:[{include:"$self"},{captures:{1:{name:"entity.name.tag.language.wikitext"},2:{name:"punctuation.separator.key-value.wikitext"},3:{name:"string.unquoted.text.wikitext",patterns:[{include:"$self"}]},4:{name:"punctuation.terminator.rule.wikitext"}},match:"(?:([a-zA-Z\\-]*)(:))?(.*?)(?:(;)|(?=\\}-))"}]},"extension-comments":{begin:"(<%--)\\s*(\\[)([A-Z_]*)(\\])",beginCaptures:{1:{name:"punctuation.definition.comment.extension.wikitext"},2:{name:"punctuation.definition.tag.extension.wikitext"},3:{name:"storage.type.extension.wikitext"},4:{name:"punctuation.definition.tag.extension.wikitext"}},end:"(\\[)([A-Z_]*)(\\])\\s*(--%>)",endCaptures:{1:{name:"punctuation.definition.tag.extension.wikitext"},2:{name:"storage.type.extension.wikitext"},3:{name:"punctuation.definition.tag.extension.wikitext"},4:{name:"punctuation.definition.comment.extension.wikitext"}},name:"comment.block.documentation.special.extension.wikitext",patterns:[{captures:{0:{name:"meta.object.member.extension.wikitext"},1:{name:"meta.object-literal.key.extension.wikitext"},2:{name:"punctuation.separator.dictionary.key-value.extension.wikitext"},3:{name:"punctuation.definition.string.begin.extension.wikitext"},4:{name:"string.quoted.other.extension.wikitext"},5:{name:"punctuation.definition.string.end.extension.wikitext"}},match:"(\\w*)\\s*(=)\\s*(#)(.*?)(#)"}]},"external-link":{patterns:[{captures:{1:{name:"punctuation.definition.tag.link.external.wikitext"},2:{name:"entity.name.tag.url.wikitext"},3:{name:"string.other.link.external.title.wikitext",patterns:[{include:"$self"}]},4:{name:"punctuation.definition.tag.link.external.wikitext"}},match:"(\\[)((?:(?:(?:http(?:s)?)|(?:ftp(?:s)?)):\\/\\/)[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\.~:\\/?#%@!\\$&'\\(\\)\\*\\+,;=.]+)\\s*?([^\\]]*)(\\])",name:"meta.link.external.wikitext"},{captures:{1:{name:"punctuation.definition.tag.link.external.wikitext"},2:{name:"invalid.illegal.bad-url.wikitext"},3:{name:"string.other.link.external.title.wikitext",patterns:[{include:"$self"}]},4:{name:"punctuation.definition.tag.link.external.wikitext"}},match:"(\\[)([\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\.~:\\/?#%@!\\$&'\\(\\)\\*\\+,;=.]+)\\s*?([^\\]]*)(\\])",name:"invalid.illegal.bad-link.wikitext"}]},"font-style":{patterns:[{include:"#bold"},{include:"#italic"}],repository:{bold:{begin:"(''')",end:"(''')|$",name:"markup.bold.wikitext",patterns:[{include:"#italic"},{include:"$self"}]},italic:{begin:"('')",end:"((?=[^'])|(?=''))''((?=[^'])|(?=''))|$",name:"markup.italic.wikitext",patterns:[{include:"#bold"},{include:"$self"}]}}},heading:{captures:{2:{name:"string.quoted.other.heading.wikitext",patterns:[{include:"$self"}]}},match:"^(={1,6})\\s*(.+?)\\s*(\\1)$",name:"markup.heading.wikitext"},"internal-link":{TODO:"SINGLE LINE",begin:"(\\[\\[)(([^#:\\|\\[\\]\\{\\}]*:)*)?([^\\|\\[\\]]*)?",captures:{1:{name:"punctuation.definition.tag.link.internal.wikitext"},2:{name:"entity.name.tag.namespace.wikitext"},4:{name:"entity.other.attribute-name.wikitext"}},end:"(\\]\\])",name:"string.quoted.internal-link.wikitext",patterns:[{include:"$self"},{captures:{1:{name:"keyword.operator.wikitext"},5:{name:"entity.other.attribute-name.localname.wikitext"}},match:"(\\|)|(?:\\s*)(?:([-\\w.]+)((:)))?([-\\w.:]+)\\s*(=)"}]},list:{name:"markup.list.wikitext",patterns:[{captures:{1:{name:"punctuation.definition.list.begin.markdown.wikitext"}},match:"^([#*;:]+)"}]},"magic-words":{patterns:[{include:"#behavior-switches"},{include:"#outdated-behavior-switches"},{include:"#variables"}],repository:{"behavior-switches":{match:`(?x) # turn on extended mode
|
|
2
|
+
(?i) # ignore case
|
|
3
|
+
(__) # start: __
|
|
4
|
+
(
|
|
5
|
+
NOTOC|FORCETOC|TOC|NOEDITSECTION|NEWSECTIONLINK|NOGALLERY|
|
|
6
|
+
HIDDENCAT|EXPECTUNUSEDCATEGORY|NOCONTENTCONVERT|NOCC|
|
|
7
|
+
NOTITLECONVERT|NOTC|INDEX|NOINDEX|STATICREDIRECT|NOGLOBAL|
|
|
8
|
+
DISAMBIG
|
|
9
|
+
)
|
|
10
|
+
(__)`,name:"constant.language.behavior-switcher.wikitext"},"outdated-behavior-switches":{match:`(?x)
|
|
11
|
+
(?i)
|
|
12
|
+
(__)
|
|
13
|
+
(
|
|
14
|
+
START|END
|
|
15
|
+
)
|
|
16
|
+
(__)`,name:"invalid.deprecated.behavior-switcher.wikitext"},variables:{patterns:[{match:`(?x)
|
|
17
|
+
(?i)
|
|
18
|
+
(\\{\\{)
|
|
19
|
+
(
|
|
20
|
+
CURRENTYEAR|CURRENTMONTH|CURRENTMONTH1|CURRENTMONTHNAME|
|
|
21
|
+
CURRENTMONTHNAMEGEN|CURRENTMONTHABBREV|CURRENTDAY|
|
|
22
|
+
CURRENTDAY2|CURRENTDOW|CURRENTDAYNAME|CURRENTTIME|
|
|
23
|
+
CURRENTHOUR|CURRENTWEEK|CURRENTTIMESTAMP|LOCALYEAR|
|
|
24
|
+
LOCALMONTH|LOCALMONTH1|LOCALMONTHNAME|LOCALMONTHNAMEGEN|
|
|
25
|
+
LOCALMONTHABBREV|LOCALDAY|LOCALDAY2|LOCALDOW|
|
|
26
|
+
LOCALDAYNAME|LOCALTIME|LOCALHOUR|LOCALWEEK|
|
|
27
|
+
LOCALTIMESTAMP
|
|
28
|
+
)
|
|
29
|
+
(\\}\\})`,name:"constant.language.variables.time.wikitext"},{match:`(?x)
|
|
30
|
+
(?i)
|
|
31
|
+
(\\{\\{)
|
|
32
|
+
(
|
|
33
|
+
SITENAME|SERVER|SERVERNAME|DIRMARK|DIRECTIONMARK|
|
|
34
|
+
SCRIPTPATH|STYLEPATH|CURRENTVERSION|CONTENTLANGUAGE|
|
|
35
|
+
CONTENTLANG|PAGEID|PAGELANGUAGE|CASCADINGSOURCES|
|
|
36
|
+
REVISIONID|REVISIONDAY|REVISIONDAY2|REVISIONMONTH|
|
|
37
|
+
REVISIONMONTH1|REVISIONYEAR|REVISIONTIMESTAMP|
|
|
38
|
+
REVISIONUSER|REVISIONSIZE
|
|
39
|
+
)
|
|
40
|
+
(\\}\\})`,name:"constant.language.variables.metadata.wikitext"},{match:"ISBN\\s+((9[\\-\\s]?7[\\-\\s]?[89][\\-\\s]?)?([0-9][\\-\\s]?){10})",name:"constant.language.variables.isbn.wikitext"},{match:"RFC\\s+[0-9]+",name:"constant.language.variables.rfc.wikitext"},{match:"PMID\\s+[0-9]+",name:"constant.language.variables.pmid.wikitext"}]}}},redirect:{patterns:[{captures:{1:{name:"keyword.control.redirect.wikitext"},2:{name:"punctuation.definition.tag.link.internal.begin.wikitext"},3:{name:"entity.name.tag.namespace.wikitext"},4:null,5:{name:"entity.other.attribute-name.wikitext"},6:{name:"invalid.deprecated.ineffective.wikitext"},7:{name:"punctuation.definition.tag.link.internal.end.wikitext"}},match:"(?i)(^\\s*?#REDIRECT)\\s*(\\[\\[)(([^#:\\|\\[\\]\\{\\}]*?:)*)?([^\\|\\[\\]]*)?(\\|[^\\[\\]]*?)?(\\]\\])"}]},signature:{patterns:[{match:"~{3,5}",name:"keyword.other.signature.wikitext"}]},table:{patterns:[{begin:"^\\s*(\\{\\|)(.*)$",captures:{1:{name:"punctuation.definition.tag.table.wikitext"},2:{patterns:[{include:"text.html.basic#attribute"}]}},end:"^\\s*(\\|\\})",name:"meta.tag.block.table.wikitext",patterns:[{include:"$self"},{begin:"^\\s*(\\|-)\\s*",beginCaptures:{1:{name:"punctuation.definition.tag.begin.wikitext"}},end:"$",name:"meta.tag.block.table-row.wikitext",patterns:[{include:"$self"},{include:"text.html.basic#attribute"},{match:"\\|.*",name:"invalid.illegal.bad-table-context.wikitext"}]},{begin:"^\\s*(!)(([^\\[]*?)(\\|))?(.*?)(?=(!!)|$)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.wikitext"},2:null,3:{patterns:[{include:"$self"},{include:"text.html.basic#attribute"}]},4:{name:"punctuation.definition.tag.wikitext"},5:{name:"markup.bold.style.wikitext"}},end:"$",name:"meta.tag.block.th.heading",patterns:[{captures:{1:{name:"punctuation.definition.tag.begin.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.wikitext"},5:{name:"markup.bold.style.wikitext"}},match:"(!!)(([^\\[]*?)(\\|))?(.*?)(?=(!!)|$)",name:"meta.tag.block.th.inline.wikitext"},{include:"$self"}]},{captures:{1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"string.unquoted.caption.wikitext"}},end:"$",match:"^\\s*(\\|\\+)(.*?)$",name:"meta.tag.block.caption.wikitext",patterns:[{include:"$self"}]},{begin:"^\\s*(\\|)",beginCaptures:{1:{name:"punctuation.definition.tag.wikitext"}},end:"$",patterns:[{include:"$self"},{match:"\\|\\|",name:"keyword.operator.wikitext"}]}]}]},template:{begin:"(\\{\\{)\\s*(([^#:\\|\\[\\]\\{\\}]*(:))*)\\s*((#[^#:\\|\\[\\]\\{\\}]+(:))*)([^#:\\|\\[\\]\\{\\}]*)",captures:{1:{name:"punctuation.definition.tag.template.wikitext"},2:{name:"entity.name.tag.local-name.wikitext"},4:{name:"punctuation.separator.namespace.wikitext"},5:{name:"entity.name.function.wikitext"},7:{name:"punctuation.separator.namespace.wikitext"},8:{name:"entity.name.tag.local-name.wikitext"}},end:"(\\}\\})",patterns:[{include:"$self"},{match:"(\\|)",name:"keyword.operator.wikitext"},{captures:{1:{name:"entity.other.attribute-name.namespace.wikitext"},2:{name:"punctuation.separator.namespace.wikitext"},3:{name:"entity.other.attribute-name.local-name.wikitext"},4:{name:"keyword.operator.equal.wikitext"}},match:"(?<=\\|)\\s*(?:([-\\w.]+)(:))?([-\\w\\s\\.:]+)\\s*(=)"}]},wikixml:{patterns:[{include:"#wiki-self-closed-tags"},{include:"#normal-wiki-tags"},{include:"#nowiki"},{include:"#ref"},{include:"#jsonin"},{include:"#math"},{include:"#syntax-highlight"}],repository:{jsonin:{begin:"(?i)(<)(graph|templatedata)(\\s+[^>]+)?\\s*(>)",beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},contentName:"meta.embedded.block.json",end:"(?i)(</)(\\2)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{include:"source.json"}]},math:{begin:"(?i)(<)(math|chem|ce)(\\s+[^>]+)?\\s*(>)",beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},contentName:"meta.embedded.block.latex",end:"(?i)(</)(\\2)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{include:"text.html.markdown.math#math"}]},"normal-wiki-tags":{captures:{1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},match:"(?i)(</?)(includeonly|onlyinclude|noinclude)(\\s+[^>]+)?\\s*(>)",name:"meta.tag.metedata.normal.wikitext"},nowiki:{begin:"(?i)(<)(nowiki)(\\s+[^>]+)?\\s*(>)",beginCaptures:{0:{name:"meta.tag.metadata.nowiki.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},contentName:"meta.embedded.block.plaintext",end:"(?i)(</)(nowiki)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.nowiki.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}}},ref:{begin:"(?i)(<)(ref)(\\s+[^>]+)?\\s*(>)",beginCaptures:{0:{name:"meta.tag.metadata.ref.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},contentName:"meta.block.ref.wikitext",end:"(?i)(</)(ref)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.ref.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{include:"$self"}]},"syntax-highlight":{patterns:[{include:"#hl-css"},{include:"#hl-html"},{include:"#hl-ini"},{include:"#hl-java"},{include:"#hl-lua"},{include:"#hl-makefile"},{include:"#hl-perl"},{include:"#hl-r"},{include:"#hl-ruby"},{include:"#hl-php"},{include:"#hl-sql"},{include:"#hl-vb-net"},{include:"#hl-xml"},{include:"#hl-xslt"},{include:"#hl-yaml"},{include:"#hl-bat"},{include:"#hl-clojure"},{include:"#hl-coffee"},{include:"#hl-c"},{include:"#hl-cpp"},{include:"#hl-diff"},{include:"#hl-dockerfile"},{include:"#hl-go"},{include:"#hl-groovy"},{include:"#hl-pug"},{include:"#hl-js"},{include:"#hl-json"},{include:"#hl-less"},{include:"#hl-objc"},{include:"#hl-swift"},{include:"#hl-scss"},{include:"#hl-perl6"},{include:"#hl-powershell"},{include:"#hl-python"},{include:"#hl-julia"},{include:"#hl-rust"},{include:"#hl-scala"},{include:"#hl-shell"},{include:"#hl-ts"},{include:"#hl-csharp"},{include:"#hl-fsharp"},{include:"#hl-dart"},{include:"#hl-handlebars"},{include:"#hl-markdown"},{include:"#hl-erlang"},{include:"#hl-elixir"},{include:"#hl-latex"},{include:"#hl-bibtex"}],repository:{"hl-bat":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(['"]?)(?:batch|bat|dosbatch|winbatch)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.bat",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.batchfile"}]}]},"hl-bibtex":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:bibtex|bib)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.bibtex",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"text.bibtex"}]}]},"hl-c":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)c\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.c",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.c"}]}]},"hl-clojure":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:clojure|clj)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.clojure",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.clojure"}]}]},"hl-coffee":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:coffeescript|coffee-script|coffee)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.coffee",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.coffee"}]}]},"hl-cpp":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:cpp|c\\+\\+)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.cpp",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.cpp"}]}]},"hl-csharp":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:csharp|c#|cs)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.csharp",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.cs"}]}]},"hl-css":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)css\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.css",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.css"}]}]},"hl-dart":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)dart\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.dart",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.dart"}]}]},"hl-diff":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:diff|udiff)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.diff",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.diff"}]}]},"hl-dockerfile":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:docker|dockerfile)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.dockerfile",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.dockerfile"}]}]},"hl-elixir":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:elixir|ex|exs)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.elixir",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.elixir"}]}]},"hl-erlang":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)erlang\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.erlang",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.erlang"}]}]},"hl-fsharp":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:fsharp|f#)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.fsharp",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.fsharp"}]}]},"hl-go":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:go|golang)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.go",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.go"}]}]},"hl-groovy":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)groovy\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.groovy",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.groovy"}]}]},"hl-handlebars":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)handlebars\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.handlebars",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"text.html.handlebars"}]}]},"hl-html":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)html\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.html",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"text.html.basic"}]}]},"hl-ini":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:ini|cfg|dosini)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.ini",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.ini"}]}]},"hl-java":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)java\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.java",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.java"}]}]},"hl-js":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:javascript|js)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.js",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.js"}]}]},"hl-json":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"json"|'json'|"json-object"|'json-object'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.json",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.json.comments"}]}]},"hl-julia":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"julia"|'julia'|"jl"|'jl'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.julia",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.julia"}]}]},"hl-latex":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:tex|latex)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.latex",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"text.tex.latex"}]}]},"hl-less":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"less"|'less'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.less",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.css.less"}]}]},"hl-lua":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)lua\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.lua",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.lua"}]}]},"hl-makefile":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:make|makefile|mf|bsdmake)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.makefile",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.makefile"}]}]},"hl-markdown":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:markdown|md)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.markdown",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"text.html.markdown"}]}]},"hl-objc":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"objective-c"|'objective-c'|"objectivec"|'objectivec'|"obj-c"|'obj-c'|"objc"|'objc'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.objc",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.objc"}]}]},"hl-perl":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:perl|ple)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.perl",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.perl"}]}]},"hl-perl6":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"perl6"|'perl6'|"pl6"|'pl6'|"raku"|'raku'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.perl6",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.perl.6"}]}]},"hl-php":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:php|php3|php4|php5)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.php",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.php"}]}]},"hl-powershell":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"powershell"|'powershell'|"pwsh"|'pwsh'|"posh"|'posh'|"ps1"|'ps1'|"psm1"|'psm1'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.powershell",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.powershell"}]}]},"hl-pug":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:pug|jade)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.pug",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"text.pug"}]}]},"hl-python":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"python"|'python'|"py"|'py'|"sage"|'sage'|"python3"|'python3'|"py3"|'py3'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.python",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.python"}]}]},"hl-r":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:splus|s|r)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.r",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.r"}]}]},"hl-ruby":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:ruby|rb|duby)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.ruby",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.ruby"}]}]},"hl-rust":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"rust"|'rust'|"rs"|'rs'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:null,end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.rust"}]}]},"hl-scala":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"scala"|'scala'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.scala",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.scala"}]}]},"hl-scss":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"scss"|'scss'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.scss",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.css.scss"}]}]},"hl-shell":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"bash"|'bash'|"sh"|'sh'|"ksh"|'ksh'|"zsh"|'zsh'|"shell"|'shell'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.shell",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.shell"}]}]},"hl-sql":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)sql\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.sql",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.sql"}]}]},"hl-swift":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"swift"|'swift'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.swift",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.swift"}]}]},"hl-ts":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:"typescript"|'typescript'|"ts"|'ts'))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.ts",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.ts"}]}]},"hl-vb-net":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)(?:vb\\.net|vbnet|lobas|oobas|sobas)\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.vb-net",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.asp.vb.net"}]}]},"hl-xml":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)xml\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.xml",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"text.xml"}]}]},"hl-xslt":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)xslt\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.xslt",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"text.xml.xsl"}]}]},"hl-yaml":{begin:`(?i)(<)(syntaxhighlight)((?:\\s+[^>]+)?(?:\\s+lang=(?:(['"]?)yaml\\4))(?:\\s+[^>]+)?)\\s*(>)`,beginCaptures:{0:{name:"meta.tag.metadata.start.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},5:{name:"punctuation.definition.tag.end.wikitext"}},end:"(?i)(</)(syntaxhighlight)\\s*(>)",endCaptures:{0:{name:"meta.tag.metadata.end.wikitext"},1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{name:"punctuation.definition.tag.end.wikitext"}},patterns:[{begin:"(^|\\G)",contentName:"meta.embedded.block.yaml",end:"(?i)(?=</syntaxhighlight\\s*>)",patterns:[{include:"source.yaml"}]}]}}},"wiki-self-closed-tags":{captures:{1:{name:"punctuation.definition.tag.begin.wikitext"},2:{name:"entity.name.tag.wikitext"},3:{patterns:[{include:"text.html.basic#attribute"},{include:"$self"}]},4:{name:"punctuation.definition.tag.end.wikitext"}},match:"(?i)(<)(templatestyles|ref|nowiki|onlyinclude|includeonly)(\\s+[^>]+)?\\s*(/>)",name:"meta.tag.metedata.void.wikitext"}}}}}},scopeName:"source.wikitext",embeddedLangs:["html","css","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","go","groovy","pug","javascript","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","csharp","fsharp","dart","handlebars","markdown","erlang","elixir","latex","bibtex","json"],aliases:["mediawiki","wiki"]});var Ft=[...t,...e,...i,...n,...a,...s,...m,...d,...g,...u,...l,...o,...c,...r,...x,...p,...h,...k,...b,...w,...f,...y,...C,...N,...E,...$,...j,...R,...T,...O,...G,...A,...v,...I,...L,...M,...S,...D,...U,...H,...V,...Y,...q,..._,...P,...B,...W,...z,...K,Z];export{Ft as default};
|
package/dist/module.d.mts
CHANGED
|
@@ -3,111 +3,7 @@ import { AddComponentOptions } from '@nuxt/kit';
|
|
|
3
3
|
import { SatoriOptions } from 'satori';
|
|
4
4
|
import { ResvgRenderOptions } from '@resvg/resvg-js';
|
|
5
5
|
import { SharpOptions } from 'sharp';
|
|
6
|
-
import {
|
|
7
|
-
import { OgImageComponents } from '#nuxt-og-image/components';
|
|
8
|
-
|
|
9
|
-
type IconifyEmojiIconSets = 'twemoji' | 'noto' | 'fluent-emoji' | 'fluent-emoji-flat' | 'fluent-emoji-high-contrast' | 'noto-v1' | 'emojione' | 'emojione-monotone' | 'emojione-v1' | 'streamline-emojis' | 'openmoji';
|
|
10
|
-
interface OgImageComponent {
|
|
11
|
-
path?: string;
|
|
12
|
-
pascalName: string;
|
|
13
|
-
kebabName: string;
|
|
14
|
-
hash: string;
|
|
15
|
-
category: 'app' | 'community' | 'pro';
|
|
16
|
-
credits?: string;
|
|
17
|
-
}
|
|
18
|
-
interface ScreenshotOptions {
|
|
19
|
-
colorScheme?: 'dark' | 'light';
|
|
20
|
-
selector?: string;
|
|
21
|
-
mask?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The width of the screenshot.
|
|
24
|
-
*
|
|
25
|
-
* @default 1200
|
|
26
|
-
*/
|
|
27
|
-
width: number;
|
|
28
|
-
/**
|
|
29
|
-
* The height of the screenshot.
|
|
30
|
-
*
|
|
31
|
-
* @default 630
|
|
32
|
-
*/
|
|
33
|
-
height: number;
|
|
34
|
-
/**
|
|
35
|
-
* How long to wait before taking the screenshot. Useful for waiting for animations.
|
|
36
|
-
*/
|
|
37
|
-
delay?: number;
|
|
38
|
-
}
|
|
39
|
-
interface OgImageOptions<T extends keyof OgImageComponents = 'NuxtSeo'> {
|
|
40
|
-
/**
|
|
41
|
-
* The width of the screenshot.
|
|
42
|
-
*
|
|
43
|
-
* @default 1200
|
|
44
|
-
*/
|
|
45
|
-
width?: number;
|
|
46
|
-
/**
|
|
47
|
-
* The height of the screenshot.
|
|
48
|
-
*
|
|
49
|
-
* @default 630
|
|
50
|
-
*/
|
|
51
|
-
height?: number;
|
|
52
|
-
/**
|
|
53
|
-
* The alt text for the image.
|
|
54
|
-
*/
|
|
55
|
-
alt?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Use a prebuilt image instead of generating one.
|
|
58
|
-
*
|
|
59
|
-
* Should be an absolute URL.
|
|
60
|
-
*/
|
|
61
|
-
url?: string;
|
|
62
|
-
/**
|
|
63
|
-
* The name of the component to render.
|
|
64
|
-
*/
|
|
65
|
-
component?: T | string;
|
|
66
|
-
/**
|
|
67
|
-
* Props to pass to the component.
|
|
68
|
-
*/
|
|
69
|
-
props?: OgImageComponents[T] | Record<string, any>;
|
|
70
|
-
renderer?: 'chromium' | 'satori';
|
|
71
|
-
extension?: 'png' | 'jpeg' | 'jpg';
|
|
72
|
-
emojis?: IconifyEmojiIconSets;
|
|
73
|
-
/**
|
|
74
|
-
* Provide a static HTML template to render the OG Image instead of a component.
|
|
75
|
-
*/
|
|
76
|
-
html?: string;
|
|
77
|
-
resvg?: ResvgRenderOptions;
|
|
78
|
-
satori?: SatoriOptions;
|
|
79
|
-
screenshot?: Partial<ScreenshotOptions>;
|
|
80
|
-
sharp?: SharpOptions;
|
|
81
|
-
fonts?: InputFontConfig[];
|
|
82
|
-
cacheMaxAgeSeconds?: number;
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
|
-
_query?: Record<string, any>;
|
|
87
|
-
}
|
|
88
|
-
interface FontConfig {
|
|
89
|
-
name: string;
|
|
90
|
-
style?: string;
|
|
91
|
-
weight?: string | number;
|
|
92
|
-
path?: string;
|
|
93
|
-
key?: string;
|
|
94
|
-
absolutePath?: boolean;
|
|
95
|
-
}
|
|
96
|
-
type InputFontConfig = (`${string}:${number}` | string | FontConfig);
|
|
97
|
-
interface RuntimeCompatibilitySchema {
|
|
98
|
-
chromium: 'chrome-launcher' | 'on-demand' | 'playwright' | false;
|
|
99
|
-
['css-inline']: 'node' | 'wasm' | 'wasm-fs' | false;
|
|
100
|
-
resvg: 'node' | 'wasm' | 'wasm-fs' | false;
|
|
101
|
-
satori: 'node' | 'wasm' | 'wasm-fs' | false;
|
|
102
|
-
sharp: 'node' | false;
|
|
103
|
-
wasm?: NitroOptions['wasm'];
|
|
104
|
-
}
|
|
105
|
-
type CompatibilityFlags = Partial<Omit<RuntimeCompatibilitySchema, 'wasm'>>;
|
|
106
|
-
interface CompatibilityFlagEnvOverrides {
|
|
107
|
-
dev?: CompatibilityFlags;
|
|
108
|
-
runtime?: CompatibilityFlags;
|
|
109
|
-
prerender?: CompatibilityFlags;
|
|
110
|
-
}
|
|
6
|
+
import { OgImageOptions, InputFontConfig, CompatibilityFlagEnvOverrides, OgImageComponent } from '../dist/runtime/types.js';
|
|
111
7
|
|
|
112
8
|
interface ModuleOptions {
|
|
113
9
|
/**
|
|
@@ -147,7 +43,7 @@ interface ModuleOptions {
|
|
|
147
43
|
*
|
|
148
44
|
* @see https://sharp.pixelplumbing.com/api-constructor
|
|
149
45
|
*/
|
|
150
|
-
sharpOptions?: Partial<SharpOptions>;
|
|
46
|
+
sharpOptions?: true | Partial<SharpOptions>;
|
|
151
47
|
/**
|
|
152
48
|
* Enables debug logs and a debug endpoint.
|
|
153
49
|
*
|
package/dist/module.d.ts
CHANGED
|
@@ -3,111 +3,7 @@ import { AddComponentOptions } from '@nuxt/kit';
|
|
|
3
3
|
import { SatoriOptions } from 'satori';
|
|
4
4
|
import { ResvgRenderOptions } from '@resvg/resvg-js';
|
|
5
5
|
import { SharpOptions } from 'sharp';
|
|
6
|
-
import {
|
|
7
|
-
import { OgImageComponents } from '#nuxt-og-image/components';
|
|
8
|
-
|
|
9
|
-
type IconifyEmojiIconSets = 'twemoji' | 'noto' | 'fluent-emoji' | 'fluent-emoji-flat' | 'fluent-emoji-high-contrast' | 'noto-v1' | 'emojione' | 'emojione-monotone' | 'emojione-v1' | 'streamline-emojis' | 'openmoji';
|
|
10
|
-
interface OgImageComponent {
|
|
11
|
-
path?: string;
|
|
12
|
-
pascalName: string;
|
|
13
|
-
kebabName: string;
|
|
14
|
-
hash: string;
|
|
15
|
-
category: 'app' | 'community' | 'pro';
|
|
16
|
-
credits?: string;
|
|
17
|
-
}
|
|
18
|
-
interface ScreenshotOptions {
|
|
19
|
-
colorScheme?: 'dark' | 'light';
|
|
20
|
-
selector?: string;
|
|
21
|
-
mask?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The width of the screenshot.
|
|
24
|
-
*
|
|
25
|
-
* @default 1200
|
|
26
|
-
*/
|
|
27
|
-
width: number;
|
|
28
|
-
/**
|
|
29
|
-
* The height of the screenshot.
|
|
30
|
-
*
|
|
31
|
-
* @default 630
|
|
32
|
-
*/
|
|
33
|
-
height: number;
|
|
34
|
-
/**
|
|
35
|
-
* How long to wait before taking the screenshot. Useful for waiting for animations.
|
|
36
|
-
*/
|
|
37
|
-
delay?: number;
|
|
38
|
-
}
|
|
39
|
-
interface OgImageOptions<T extends keyof OgImageComponents = 'NuxtSeo'> {
|
|
40
|
-
/**
|
|
41
|
-
* The width of the screenshot.
|
|
42
|
-
*
|
|
43
|
-
* @default 1200
|
|
44
|
-
*/
|
|
45
|
-
width?: number;
|
|
46
|
-
/**
|
|
47
|
-
* The height of the screenshot.
|
|
48
|
-
*
|
|
49
|
-
* @default 630
|
|
50
|
-
*/
|
|
51
|
-
height?: number;
|
|
52
|
-
/**
|
|
53
|
-
* The alt text for the image.
|
|
54
|
-
*/
|
|
55
|
-
alt?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Use a prebuilt image instead of generating one.
|
|
58
|
-
*
|
|
59
|
-
* Should be an absolute URL.
|
|
60
|
-
*/
|
|
61
|
-
url?: string;
|
|
62
|
-
/**
|
|
63
|
-
* The name of the component to render.
|
|
64
|
-
*/
|
|
65
|
-
component?: T | string;
|
|
66
|
-
/**
|
|
67
|
-
* Props to pass to the component.
|
|
68
|
-
*/
|
|
69
|
-
props?: OgImageComponents[T] | Record<string, any>;
|
|
70
|
-
renderer?: 'chromium' | 'satori';
|
|
71
|
-
extension?: 'png' | 'jpeg' | 'jpg';
|
|
72
|
-
emojis?: IconifyEmojiIconSets;
|
|
73
|
-
/**
|
|
74
|
-
* Provide a static HTML template to render the OG Image instead of a component.
|
|
75
|
-
*/
|
|
76
|
-
html?: string;
|
|
77
|
-
resvg?: ResvgRenderOptions;
|
|
78
|
-
satori?: SatoriOptions;
|
|
79
|
-
screenshot?: Partial<ScreenshotOptions>;
|
|
80
|
-
sharp?: SharpOptions;
|
|
81
|
-
fonts?: InputFontConfig[];
|
|
82
|
-
cacheMaxAgeSeconds?: number;
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
|
-
_query?: Record<string, any>;
|
|
87
|
-
}
|
|
88
|
-
interface FontConfig {
|
|
89
|
-
name: string;
|
|
90
|
-
style?: string;
|
|
91
|
-
weight?: string | number;
|
|
92
|
-
path?: string;
|
|
93
|
-
key?: string;
|
|
94
|
-
absolutePath?: boolean;
|
|
95
|
-
}
|
|
96
|
-
type InputFontConfig = (`${string}:${number}` | string | FontConfig);
|
|
97
|
-
interface RuntimeCompatibilitySchema {
|
|
98
|
-
chromium: 'chrome-launcher' | 'on-demand' | 'playwright' | false;
|
|
99
|
-
['css-inline']: 'node' | 'wasm' | 'wasm-fs' | false;
|
|
100
|
-
resvg: 'node' | 'wasm' | 'wasm-fs' | false;
|
|
101
|
-
satori: 'node' | 'wasm' | 'wasm-fs' | false;
|
|
102
|
-
sharp: 'node' | false;
|
|
103
|
-
wasm?: NitroOptions['wasm'];
|
|
104
|
-
}
|
|
105
|
-
type CompatibilityFlags = Partial<Omit<RuntimeCompatibilitySchema, 'wasm'>>;
|
|
106
|
-
interface CompatibilityFlagEnvOverrides {
|
|
107
|
-
dev?: CompatibilityFlags;
|
|
108
|
-
runtime?: CompatibilityFlags;
|
|
109
|
-
prerender?: CompatibilityFlags;
|
|
110
|
-
}
|
|
6
|
+
import { OgImageOptions, InputFontConfig, CompatibilityFlagEnvOverrides, OgImageComponent } from '../dist/runtime/types.js';
|
|
111
7
|
|
|
112
8
|
interface ModuleOptions {
|
|
113
9
|
/**
|
|
@@ -147,7 +43,7 @@ interface ModuleOptions {
|
|
|
147
43
|
*
|
|
148
44
|
* @see https://sharp.pixelplumbing.com/api-constructor
|
|
149
45
|
*/
|
|
150
|
-
sharpOptions?: Partial<SharpOptions>;
|
|
46
|
+
sharpOptions?: true | Partial<SharpOptions>;
|
|
151
47
|
/**
|
|
152
48
|
* Enables debug logs and a debug endpoint.
|
|
153
49
|
*
|
package/dist/module.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-og-image",
|
|
3
3
|
"compatibility": {
|
|
4
|
-
"nuxt": "
|
|
4
|
+
"nuxt": ">=3.10.3",
|
|
5
5
|
"bridge": false
|
|
6
6
|
},
|
|
7
7
|
"configKey": "ogImage",
|
|
8
|
-
"version": "3.0.0-rc.
|
|
8
|
+
"version": "3.0.0-rc.54",
|
|
9
9
|
"builder": {
|
|
10
|
-
"@nuxt/module-builder": "0.
|
|
10
|
+
"@nuxt/module-builder": "0.8.1",
|
|
11
11
|
"unbuild": "2.0.0"
|
|
12
12
|
}
|
|
13
13
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useNuxt, addTemplate, loadNuxtModuleInstance, createResolver, resolvePa
|
|
|
5
5
|
import { assertSiteConfig, installNuxtSiteConfig } from 'nuxt-site-config-kit';
|
|
6
6
|
import { provider, env, isCI, isDevelopment } from 'std-env';
|
|
7
7
|
import { hash } from 'ohash';
|
|
8
|
-
import { relative, dirname,
|
|
8
|
+
import { relative, dirname, isAbsolute, basename } from 'pathe';
|
|
9
9
|
import { defu } from 'defu';
|
|
10
10
|
import { readPackageJSON } from 'pkg-types';
|
|
11
11
|
import { createStorage } from 'unstorage';
|
|
@@ -441,7 +441,7 @@ const module = defineNuxtModule({
|
|
|
441
441
|
meta: {
|
|
442
442
|
name: "nuxt-og-image",
|
|
443
443
|
compatibility: {
|
|
444
|
-
nuxt: "
|
|
444
|
+
nuxt: ">=3.10.3",
|
|
445
445
|
bridge: false
|
|
446
446
|
},
|
|
447
447
|
configKey: "ogImage"
|
|
@@ -484,10 +484,12 @@ const module = defineNuxtModule({
|
|
|
484
484
|
nuxt.options.build.transpile.push(resolve("./runtime"));
|
|
485
485
|
const preset = resolveNitroPreset(nuxt.options.nitro);
|
|
486
486
|
const targetCompatibility = getPresetNitroPresetCompatibility(preset);
|
|
487
|
-
|
|
487
|
+
let isUsingSharp = false;
|
|
488
488
|
const userConfiguredExtension = config.defaults.extension;
|
|
489
489
|
const hasConfiguredJpegs = userConfiguredExtension && ["jpeg", "jpg"].includes(userConfiguredExtension);
|
|
490
|
-
if (hasConfiguredJpegs && config.defaults.renderer !== "chromium") {
|
|
490
|
+
if (!!config.sharpOptions || hasConfiguredJpegs && config.defaults.renderer !== "chromium") {
|
|
491
|
+
isUsingSharp = true;
|
|
492
|
+
const hasSharpDependency = !!await tryResolveModule("sharp");
|
|
491
493
|
if (hasSharpDependency && !targetCompatibility.sharp) {
|
|
492
494
|
logger.warn(`Rendering JPEGs requires sharp which does not work with ${preset}. Images will be rendered as PNG at runtime.`);
|
|
493
495
|
config.compatibility = defu(config.compatibility, {
|
|
@@ -498,7 +500,8 @@ const module = defineNuxtModule({
|
|
|
498
500
|
await ensureDependencies(["sharp"]);
|
|
499
501
|
logger.warn("Support for `sharp` is limited so check the compatibility guide.");
|
|
500
502
|
}
|
|
501
|
-
}
|
|
503
|
+
}
|
|
504
|
+
if (!isUsingSharp) {
|
|
502
505
|
config.compatibility = defu(config.compatibility, {
|
|
503
506
|
runtime: { sharp: false },
|
|
504
507
|
dev: { sharp: false },
|
|
@@ -552,6 +555,10 @@ const module = defineNuxtModule({
|
|
|
552
555
|
{ name: "Inter", weight: 700, path: resolve("./runtime/assets/Inter-700.ttf.base64"), absolutePath: true }
|
|
553
556
|
];
|
|
554
557
|
}
|
|
558
|
+
let publicDirAbs = nuxt.options.dir.public;
|
|
559
|
+
if (!isAbsolute(publicDirAbs)) {
|
|
560
|
+
publicDirAbs = publicDirAbs in nuxt.options.alias ? nuxt.options.alias[publicDirAbs] : resolve(nuxt.options.rootDir, publicDirAbs);
|
|
561
|
+
}
|
|
555
562
|
const serverFontsDir = resolve(nuxt.options.buildDir, "cache", `nuxt-og-image@${version}`, "_fonts");
|
|
556
563
|
const fontStorage = createStorage({
|
|
557
564
|
driver: fsDriver({
|
|
@@ -577,7 +584,7 @@ const module = defineNuxtModule({
|
|
|
577
584
|
return false;
|
|
578
585
|
}
|
|
579
586
|
if (!f.absolutePath)
|
|
580
|
-
f.path =
|
|
587
|
+
f.path = resolve(publicDirAbs, withoutLeadingSlash(f.path));
|
|
581
588
|
if (!existsSync(f.path)) {
|
|
582
589
|
logger.warn(`The ${f.name}:${f.weight} font was skipped because the file does not exist at path ${f.path}.`);
|
|
583
590
|
return false;
|
|
@@ -642,8 +649,9 @@ const module = defineNuxtModule({
|
|
|
642
649
|
components.forEach((component) => {
|
|
643
650
|
let valid = false;
|
|
644
651
|
config.componentDirs.forEach((dir) => {
|
|
645
|
-
if (component.pascalName.startsWith(dir) || component.kebabName.startsWith(dir) || component.shortPath.includes(`/${dir}/`))
|
|
652
|
+
if (component.pascalName.startsWith(dir) || component.kebabName.startsWith(dir) || component.shortPath.includes(`/${dir}/`)) {
|
|
646
653
|
valid = true;
|
|
654
|
+
}
|
|
647
655
|
});
|
|
648
656
|
if (component.filePath.includes(resolve("./runtime/nuxt/components/Templates")))
|
|
649
657
|
valid = true;
|
|
@@ -749,14 +757,15 @@ declare module '#nuxt-og-image/unocss-config' {
|
|
|
749
757
|
// binding options
|
|
750
758
|
satoriOptions: config.satoriOptions || {},
|
|
751
759
|
resvgOptions: config.resvgOptions || {},
|
|
752
|
-
sharpOptions: config.sharpOptions || {},
|
|
760
|
+
sharpOptions: config.sharpOptions === true ? {} : config.sharpOptions || {},
|
|
761
|
+
publicStoragePath: `root${publicDirAbs.replace(nuxt.options.rootDir, "").replaceAll("/", ":")}`,
|
|
753
762
|
defaults: config.defaults,
|
|
754
763
|
debug: config.debug,
|
|
755
764
|
// avoid adding credentials
|
|
756
765
|
baseCacheKey,
|
|
757
766
|
// convert the fonts to uniform type to fix ts issue
|
|
758
767
|
fonts: normalisedFonts,
|
|
759
|
-
hasNuxtIcon: hasNuxtModule("nuxt-icon"),
|
|
768
|
+
hasNuxtIcon: hasNuxtModule("nuxt-icon") || hasNuxtModule("@nuxt/icon"),
|
|
760
769
|
colorPreference,
|
|
761
770
|
// @ts-expect-error runtime type
|
|
762
771
|
isNuxtContentDocumentDriven: !!nuxt.options.content?.documentDriven
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { execa } from "execa";
|
|
2
|
-
import terminate from "terminate";
|
|
3
2
|
import { createConsola } from "consola";
|
|
4
3
|
import playwrightCore from "playwright-core";
|
|
5
4
|
let installedChromium = false;
|
|
@@ -22,7 +21,7 @@ export async function createBrowser() {
|
|
|
22
21
|
resolve(true);
|
|
23
22
|
});
|
|
24
23
|
}).then(() => {
|
|
25
|
-
installChromeProcess.
|
|
24
|
+
installChromeProcess.kill();
|
|
26
25
|
logger.info("Installed Chromium install for og:image generation.");
|
|
27
26
|
_resolve();
|
|
28
27
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initWasm, inline } from "@css-inline/css-inline-wasm";
|
|
2
|
-
import { readWasmFile } from "../../../util/wasm.
|
|
2
|
+
import { readWasmFile } from "../../../util/wasm.js";
|
|
3
3
|
export default {
|
|
4
4
|
initWasmPromise: initWasm(readWasmFile("@css-inline/css-inline-wasm/index_bg.wasm")),
|
|
5
5
|
cssInline: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
initWasmPromise: Promise<void>;
|
|
3
|
-
Resvg: new (svg:
|
|
3
|
+
Resvg: new (svg: Uint8Array | string, options?: import("@resvg/resvg-wasm").ResvgRenderOptions) => {
|
|
4
4
|
free(): void;
|
|
5
5
|
render(): {
|
|
6
6
|
free(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resvg as _Resvg, initWasm } from "@resvg/resvg-wasm";
|
|
2
|
-
import { readWasmFile } from "../../../util/wasm.
|
|
2
|
+
import { readWasmFile } from "../../../util/wasm.js";
|
|
3
3
|
export default {
|
|
4
4
|
initWasmPromise: initWasm(readWasmFile("@resvg/resvg-wasm/index_bg.wasm")),
|
|
5
5
|
Resvg: _Resvg
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
initWasmPromise: Promise<void>;
|
|
3
|
-
Resvg: new (svg:
|
|
3
|
+
Resvg: new (svg: Uint8Array | string, options?: import("@resvg/resvg-wasm").ResvgRenderOptions) => {
|
|
4
4
|
free(): void;
|
|
5
5
|
render(): {
|
|
6
6
|
free(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _satori, { init } from "satori/wasm";
|
|
2
2
|
import initYoga from "yoga-wasm-web";
|
|
3
|
-
import { readWasmFile } from "../../../util/wasm.
|
|
3
|
+
import { readWasmFile } from "../../../util/wasm.js";
|
|
4
4
|
const wasm = readWasmFile("yoga-wasm-web/dist/yoga.wasm").then(async (yoga) => await initYoga(yoga));
|
|
5
5
|
export default {
|
|
6
6
|
initWasmPromise: new Promise((resolve) => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { Buffer } from 'node:buffer';
|
|
3
2
|
import type { Browser } from 'playwright-core';
|
|
4
|
-
import type { OgImageRenderEventContext } from '../../../types';
|
|
3
|
+
import type { OgImageRenderEventContext } from '../../../types.js';
|
|
5
4
|
export declare function createScreenshot({ basePath, e, options, extension }: OgImageRenderEventContext, browser: Browser): Promise<Buffer>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { joinURL, withQuery } from "ufo";
|
|
2
|
-
import { useOgImageRuntimeConfig } from "../../../shared.
|
|
2
|
+
import { useOgImageRuntimeConfig } from "../../../shared.js";
|
|
3
3
|
import { useNitroOrigin } from "#imports";
|
|
4
4
|
export async function createScreenshot({ basePath, e, options, extension }, browser) {
|
|
5
5
|
const { colorPreference } = useOgImageRuntimeConfig();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { H3Error, H3Event } from 'h3';
|
|
2
|
-
import type { OgImageOptions, OgImageRenderEventContext } from '../../types';
|
|
2
|
+
import type { OgImageOptions, OgImageRenderEventContext } from '../../types.js';
|
|
3
3
|
export declare function resolvePathCacheKey(e: H3Event, path?: string): string;
|
|
4
4
|
export declare function resolveContext(e: H3Event): Promise<H3Error | OgImageRenderEventContext>;
|
|
5
5
|
export declare function extractAndNormaliseOgImageOptions(html: string): OgImageOptions | false;
|