1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2791],{97981:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>u,frontMatter:()=>i,metadata:()=>o,toc:()=>a});var r=n(85893),s=n(11151);const i={sidebar_position:12,description:"Reconstruct a styled content with a new body.",toc_max_heading_level:2},c="reconstruct-styled",o={id:"reference/utils/reconstruct-styled",title:"reconstruct-styled",description:"Reconstruct a styled content with a new body.",source:"@site/docs/reference/utils/reconstruct-styled.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/reconstruct-styled",permalink:"/docs/reference/utils/reconstruct-styled",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:12,frontMatter:{sidebar_position:12,description:"Reconstruct a styled content with a new body.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"is-space",permalink:"/docs/reference/utils/is-space"},next:{title:"is-metadata",permalink:"/docs/reference/utils/is-metadata"}},d={},a=[{value:"it : <TypeLink></TypeLink>",id:"it",level:3},{value:"new-child : <TypeLink></TypeLink>",id:"new-child",level:3}];function l(e){const t={a:"a",h1:"h1",h3:"h3",p:"p",strong:"strong",...(0,s.a)(),...e.components},{Param:n,Parameters:i,Signature:c,SignatureName:o,SignatureParam:d,SourceLink:a,TypeLink:l}=t;return n||h("Param",!0),i||h("Parameters",!0),c||h("Signature",!0),o||h("SignatureName",!0),d||h("SignatureParam",!0),a||h("SourceLink",!0),l||h("TypeLink",!0),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"reconstruct-styled",children:"reconstruct-styled"}),"\n",(0,r.jsx)(c,{children:(0,r.jsxs)("code",{children:[(0,r.jsx)(o,{children:"reconstruct-styled"}),"(",(0,r.jsxs)(d,{children:[(0,r.jsx)(t.a,{href:"#it",children:"it"}),", "]}),(0,r.jsx)(d,{children:(0,r.jsx)(t.a,{href:"#new-child",children:"new-child"})}),")",(0,r.jsx)(a,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L287"})]})}),"\n",(0,r.jsx)(t.p,{children:"Reconstruct a styled content with a new body."}),"\n",(0,r.jsxs)(i,{children:[(0,r.jsxs)(t.h3,{id:"it",children:["it : ",(0,r.jsx)(l,{type:"content"})]}),(0,r.jsx)(n,{children:(0,r.jsx)(t.p,{children:"The content to reconstruct."})}),(0,r.jsxs)(t.h3,{id:"new-child",children:["new-child : ",(0,r.jsx)(l,{type:"content"})]}),(0,r.jsx)(n,{children:(0,r.jsx)(t.p,{children:"The new child you want to replace the old body with."})})]}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Returns:"})," ",(0,r.jsx)(l,{type:"content"})]})]})}function u(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}function h(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>c});var r=n(67294);const s={},i=r.createContext(s);function c(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),r.createElement(i.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.