@dxos/react-ui-editor 0.4.7-main.5c1d185 → 0.4.7-main.65e1c1a
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.
|
@@ -2174,7 +2174,7 @@ var buildDecorations = (view, options, focus) => {
|
|
|
2174
2174
|
break;
|
|
2175
2175
|
}
|
|
2176
2176
|
const first = block.from <= node.from;
|
|
2177
|
-
const last = block.to >= node.to;
|
|
2177
|
+
const last = block.to >= node.to && /^(\s>)*```$/.test(state.doc.sliceString(block.from, block.to));
|
|
2178
2178
|
deco.add(block.from, block.from, first ? fencedCodeLineFirst : last ? fencedCodeLineLast : fencedCodeLine);
|
|
2179
2179
|
if (!editing && (first || last)) {
|
|
2180
2180
|
atomicDeco.add(block.from, block.to, hide);
|