@blocknote/core 0.51.0 → 0.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { $t as e, At as t, Dn as n, Dt as r, Et as i, H as a, Qt as o, Rn as s, Tt as c, Ut as l, Yn as u, Zt as d, _n as f, _t as p, an as m, f as h, fn as g, gn as _, hn as v, in as ee, jn as te, jt as ne, kt as y, ln as re, m as b, mn as x, mt as ie, nn as ae, on as S, rn as oe, sn as se, t as ce, wt as le, yn as C, yt as ue, zn as w } from "./blocks-D0lMxErU.js";
2
- import { C as de, D as fe, E as pe, O as me, S as he, T as ge, _ as _e, b as ve, d as ye, f as be, l as xe, m as Se, n as Ce, o as we, p as Te, t as Ee, u as De, v as Oe, w as ke, x as Ae } from "./extensions-CQFfm5f5.js";
2
+ import { C as de, D as fe, E as pe, O as me, S as he, T as ge, _ as _e, b as ve, d as ye, f as be, l as xe, m as Se, n as Ce, o as we, p as Te, t as Ee, u as De, v as Oe, w as ke, x as Ae } from "./extensions-D2mx2C9y.js";
3
3
  import { r as je, t as Me } from "./BlockNoteExtension-B6RhuQ3V.js";
4
4
  import { t as Ne } from "./ShowSelection-BsHFfdMi.js";
5
5
  import { t as Pe } from "./en-B9hMApn4.js";
@@ -1731,11 +1731,11 @@ function Wr(e, t, n) {
1731
1731
  }
1732
1732
  function Gr(e, t) {
1733
1733
  "node" in e.state.selection && e.state.selection.node.type.spec.group === "blockContent" && t.transact((t) => t.setSelection(new M(t.doc.resolve(e.state.selection.from - 1))));
1734
- let n = e.serializeForClipboard(e.state.selection.content()).dom.innerHTML, r = e.state.selection.content().content, i = Wr(e, r, t);
1734
+ let n = e.serializeForClipboard(e.state.selection.content()).dom.innerHTML, r = e.state.selection.content().content, i = Wr(e, r, t), { $from: a, $to: o } = e.state.selection, s = a.parent.type.name, c = t.blockImplementations[s];
1735
1735
  return {
1736
1736
  clipboardHTML: n,
1737
1737
  externalHTML: i,
1738
- markdown: ye(i)
1738
+ markdown: a.sameParent(o) && c?.implementation.meta?.code === !0 ? e.state.doc.textBetween(a.pos, o.pos) : ye(i)
1739
1739
  };
1740
1740
  }
1741
1741
  var Kr = (e) => {
@@ -3277,4 +3277,4 @@ function Fi(e, ...t) {
3277
3277
  //#endregion
3278
3278
  export { L as _, gi as a, mt as b, zn as c, Gt as d, Kt as f, R as g, z as h, Mi as i, H as l, Dt as m, Pi as n, Gr as o, Wt as p, Ni as r, Bn as s, Fi as t, Ut as u, gt as v, pt as x, ht as y };
3279
3279
 
3280
- //# sourceMappingURL=src-DK_8q1j5.js.map
3280
+ //# sourceMappingURL=src-Dvmif2FY.js.map