UNPKG

@wordpress/block-library

Version:
21 lines (20 loc) • 723 B
// packages/block-library/src/math/save.jsx import { useBlockProps } from "@wordpress/block-editor"; import { jsx } from "react/jsx-runtime"; function save({ attributes }) { const { latex, mathML } = attributes; if (!latex) { return null; } return /* @__PURE__ */ jsx("div", { ...useBlockProps.save(), children: mathML ? /* @__PURE__ */ jsx( "math", { display: "block", dangerouslySetInnerHTML: { __html: mathML } } ) : /* @__PURE__ */ jsx("math", { display: "block", children: /* @__PURE__ */ jsx("semantics", { children: /* @__PURE__ */ jsx("annotation", { encoding: "application/x-tex", children: latex }) }) }) }); } export { save as default }; //# sourceMappingURL=save.mjs.map