UNPKG

@wordpress/block-library

Version:
23 lines (22 loc) • 712 B
import { useBlockProps } from "@wordpress/block-editor"; import { jsx } from "react/jsx-runtime"; // packages/block-library/src/math/save.jsx 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