Skip to content

Commit

Permalink
feat(hiccup-html): add inline elements
Browse files Browse the repository at this point in the history
- add: dfn(), strikethrough(), variable(), wbr()
  • Loading branch information
postspectacular committed Jul 8, 2024
1 parent 08f1728 commit 9127bd6
Showing 1 changed file with 33 additions and 14 deletions.
47 changes: 33 additions & 14 deletions packages/hiccup-html/src/inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,39 @@ export const time = defElement<{ datetime: StringAttrib } & Partial<Attribs>>(
"time"
);

export const [cite, code, em, i, kbd, mark, small, span, strong, sub, sup] =
defElements([
"cite",
"code",
"em",
"i",
"kbd",
"mark",
"small",
"span",
"strong",
"sub",
"sup",
]);
export const [
cite,
code,
dfn,
em,
i,
kbd,
mark,
small,
span,
strikethrough,
strong,
sub,
sup,
variable,
wbr,
] = defElements([
"cite",
"code",
"dfn",
"em",
"i",
"kbd",
"mark",
"small",
"span",
"s",
"strong",
"sub",
"sup",
"var",
"wbr",
]);

export interface EditAttribs extends Attribs {
cite: StringAttrib;
Expand Down

0 comments on commit 9127bd6

Please sign in to comment.