fix(backlinks): match database-view node type in kebab-case
The shared schema in @docmost/editor-ext registers the node as 'database-view'; the parser was comparing against the camelCase form so database_embed links were never extracted.
This commit is contained in:
parent
60654d5d2f
commit
3c1b7a094d
1 changed files with 3 additions and 2 deletions
|
|
@ -137,8 +137,9 @@ export class BacklinkParserService {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- R3.1.c databaseView node (embed links a page indirectly via pageId attr) ---
|
// --- R3.1.c database-view node (embed links a page indirectly via pageId attr) ---
|
||||||
if (type === 'databaseView' && attrs.pageId) {
|
// The shared schema in @docmost/editor-ext uses kebab-case as the node name.
|
||||||
|
if (type === 'database-view' && attrs.pageId) {
|
||||||
out.push({
|
out.push({
|
||||||
linkType: 'database_embed',
|
linkType: 'database_embed',
|
||||||
pageId: attrs.pageId,
|
pageId: attrs.pageId,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue