Skip to content

Commit 9894078

Browse files
committed
fix missing quote on attribute escaping
1 parent 22ccb61 commit 9894078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export function renderTags(tags: Array<TagDescription>) {
216216
.map(tag => {
217217
const keys = Object.keys(tag.props);
218218
// @ts-expect-error
219-
const props = keys.map(k => (k === "children" ? "" : ` ${k}="${escape(tag.props[k], true)}`)).join("");
219+
const props = keys.map(k => (k === "children" ? "" : ` ${k}="${escape(tag.props[k], true)}"`)).join("");
220220
if (tag.props.children) {
221221
// Tags might contain multiple text children:
222222
// <Title>example - {myCompany}</Title>

0 commit comments

Comments
 (0)