+ emph: {
+ enter: (_) => {},
+ exit: (e) => {
+ const attributes = e.attributes ?? NIL;
+ const { as } = attributes;
+ if (as) {
+ delete attributes.as;
+ if (
+ as == "b" || as == "cite" || as == "i" || as == "u"
+ ) {
+ return [
+ rawInline`<${as}>`,
+ ...e.children,
+ rawInline`</${as}>`,
+ ];
+ } else {
+ /* do nothing */
+ }
+ } else {
+ /* do nothing */
+ }
+ },
+ },