docstra 1.4.6 → 1.5.0
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/dist/client/index.js +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/server/index.js +7 -2
- package/dist/server/index.mjs +7 -2
- package/package.json +1 -1
package/dist/client/index.js
CHANGED
|
@@ -201,7 +201,7 @@ function Link({ href, children, className, onNavigate, ...props }) {
|
|
|
201
201
|
if (href.startsWith("http")) {
|
|
202
202
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("a", { href, className, ...props, target: "_blank", rel: "noopener noreferrer", children });
|
|
203
203
|
}
|
|
204
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_link.default, { href, className, onNavigate, ...props,
|
|
204
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_link.default, { href, className, onNavigate, ...props, children });
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
// src/client/header.tsx
|
package/dist/client/index.mjs
CHANGED
|
@@ -159,7 +159,7 @@ function Link({ href, children, className, onNavigate, ...props }) {
|
|
|
159
159
|
if (href.startsWith("http")) {
|
|
160
160
|
return /* @__PURE__ */ jsx3("a", { href, className, ...props, target: "_blank", rel: "noopener noreferrer", children });
|
|
161
161
|
}
|
|
162
|
-
return /* @__PURE__ */ jsx3(LinkComponent, { href, className, onNavigate, ...props,
|
|
162
|
+
return /* @__PURE__ */ jsx3(LinkComponent, { href, className, onNavigate, ...props, children });
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
// src/client/header.tsx
|
package/dist/server/index.js
CHANGED
|
@@ -138,7 +138,7 @@ function Link({ href, children, className, onNavigate, ...props }) {
|
|
|
138
138
|
if (href.startsWith("http")) {
|
|
139
139
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("a", { href, className, ...props, target: "_blank", rel: "noopener noreferrer", children });
|
|
140
140
|
}
|
|
141
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_link.default, { href, className, onNavigate, ...props,
|
|
141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_link.default, { href, className, onNavigate, ...props, children });
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
// src/client/mdx-components.tsx
|
|
@@ -152,7 +152,12 @@ var defaultMdxComponents = {
|
|
|
152
152
|
code: (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { className: "px-1 py-0.5 rounded border border-gray-200 text-gray-800 text-sm", children: props.children }),
|
|
153
153
|
p: (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "my-5", children: props.children }),
|
|
154
154
|
hr: () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("hr", { className: "my-10 border-gray-200" }),
|
|
155
|
-
a: (props) =>
|
|
155
|
+
a: (props) => {
|
|
156
|
+
if (props.href.startsWith("http")) {
|
|
157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("a", { href: props.href, className: "underline underline-offset-4", ...props, target: "_blank", rel: "noopener noreferrer", children: props.children });
|
|
158
|
+
}
|
|
159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Link, { href: props.href, className: "underline underline-offset-4", ...props, children: props.children });
|
|
160
|
+
},
|
|
156
161
|
ul: (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { className: "list-['-'] pl-4 space-y-2", children: props.children }),
|
|
157
162
|
li: (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { className: "mb-2 pl-3 text-gray-700", children: props.children }),
|
|
158
163
|
ol: (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ol", { className: "list-decimal pl-4 space-y-2", children: props.children }),
|
package/dist/server/index.mjs
CHANGED
|
@@ -99,7 +99,7 @@ function Link({ href, children, className, onNavigate, ...props }) {
|
|
|
99
99
|
if (href.startsWith("http")) {
|
|
100
100
|
return /* @__PURE__ */ jsx2("a", { href, className, ...props, target: "_blank", rel: "noopener noreferrer", children });
|
|
101
101
|
}
|
|
102
|
-
return /* @__PURE__ */ jsx2(LinkComponent, { href, className, onNavigate, ...props,
|
|
102
|
+
return /* @__PURE__ */ jsx2(LinkComponent, { href, className, onNavigate, ...props, children });
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/client/mdx-components.tsx
|
|
@@ -113,7 +113,12 @@ var defaultMdxComponents = {
|
|
|
113
113
|
code: (props) => /* @__PURE__ */ jsx3("code", { className: "px-1 py-0.5 rounded border border-gray-200 text-gray-800 text-sm", children: props.children }),
|
|
114
114
|
p: (props) => /* @__PURE__ */ jsx3("p", { className: "my-5", children: props.children }),
|
|
115
115
|
hr: () => /* @__PURE__ */ jsx3("hr", { className: "my-10 border-gray-200" }),
|
|
116
|
-
a: (props) =>
|
|
116
|
+
a: (props) => {
|
|
117
|
+
if (props.href.startsWith("http")) {
|
|
118
|
+
return /* @__PURE__ */ jsx3("a", { href: props.href, className: "underline underline-offset-4", ...props, target: "_blank", rel: "noopener noreferrer", children: props.children });
|
|
119
|
+
}
|
|
120
|
+
return /* @__PURE__ */ jsx3(Link, { href: props.href, className: "underline underline-offset-4", ...props, children: props.children });
|
|
121
|
+
},
|
|
117
122
|
ul: (props) => /* @__PURE__ */ jsx3("ul", { className: "list-['-'] pl-4 space-y-2", children: props.children }),
|
|
118
123
|
li: (props) => /* @__PURE__ */ jsx3("li", { className: "mb-2 pl-3 text-gray-700", children: props.children }),
|
|
119
124
|
ol: (props) => /* @__PURE__ */ jsx3("ol", { className: "list-decimal pl-4 space-y-2", children: props.children }),
|