You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

lexical-markdown-vue

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lexical-markdown-vue - npm Package Compare versions

Comparing version

to
0.1.32

2

package.json
{
"name": "lexical-markdown-vue",
"private": false,
"version": "0.1.31",
"version": "0.1.32",
"types": "dist/index.d.ts",

@@ -6,0 +6,0 @@ "main": "dist/lexical-markdown-vue.js",

@@ -23,2 +23,3 @@ import {

import {$createHeadingNode} from "@lexical/rich-text";
import {compileToFunction} from "vue";

@@ -511,2 +512,21 @@ type SerializedHtmlNode = Spread<

}
for (let i = 0; i < rows; i++) {
for (let j = 0; j < columns; j++) {
const tableCellNode = $getCellInTable(table, i, j)
if (!(tableCellNode && tableCellNode.getHeaderStyles() === TableCellHeaderStates.BOTH)) {
continue;
}
// 邻近的行节点,注意不能越界
const nextRow = $getCellInTable(table, i, j + 1 < columns ? j + 1 : j - 1)
// 邻近的列节点,注意不能越界
const nextColumn = $getCellInTable(table, i + 1 < rows ? i + 1 : i - 1, j)
// 如果tableCellNode真的是BOTH,那么行节点一定是ROW,列节点一定是COLUMN
if (nextRow && nextRow.getHeaderStyles() === TableCellHeaderStates.ROW
&& nextColumn && nextColumn.getHeaderStyles() === TableCellHeaderStates.COLUMN) {
continue
}
// 否则则要把tableCellNode设置成NO_STATUS
tableCellNode.setHeaderStyles(TableCellHeaderStates.NO_STATUS)
}
}

@@ -513,0 +533,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet