@vectojs/markdown 0.20.0 → 0.20.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.
- package/dist/index.js +9 -0
- package/dist/index.mjs +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1554,6 +1554,15 @@ var CodeBlock = class extends import_ui.UIComponent {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
getContentProjection(hint) {
|
|
1556
1556
|
if (!this.source) return null;
|
|
1557
|
+
if (hint?.textOnly) {
|
|
1558
|
+
return {
|
|
1559
|
+
text: this.source,
|
|
1560
|
+
font: this.codeFont,
|
|
1561
|
+
lineHeight: this.lineH,
|
|
1562
|
+
selectable: this.selectable,
|
|
1563
|
+
ligatures: "none"
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1557
1566
|
const grid = this.ensureGrid();
|
|
1558
1567
|
const scrollX = this.scrollX;
|
|
1559
1568
|
const rows = [];
|
package/dist/index.mjs
CHANGED
|
@@ -1500,6 +1500,15 @@ var CodeBlock = class extends UIComponent {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
getContentProjection(hint) {
|
|
1502
1502
|
if (!this.source) return null;
|
|
1503
|
+
if (hint?.textOnly) {
|
|
1504
|
+
return {
|
|
1505
|
+
text: this.source,
|
|
1506
|
+
font: this.codeFont,
|
|
1507
|
+
lineHeight: this.lineH,
|
|
1508
|
+
selectable: this.selectable,
|
|
1509
|
+
ligatures: "none"
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1503
1512
|
const grid = this.ensureGrid();
|
|
1504
1513
|
const scrollX = this.scrollX;
|
|
1505
1514
|
const rows = [];
|