feat(editor): reference, mention and latex inline extension (#11914)

Closes: BS-3215
Closes: BS-3218
Closes: BS-3217
This commit is contained in:
Saul-Mirone
2025-04-23 09:22:15 +00:00
parent cb2c559c6e
commit 16831e8c0e
47 changed files with 489 additions and 458 deletions

View File

@@ -0,0 +1,8 @@
import { StoreExtensionManager } from '@blocksuite/affine/ext-loader';
import { getInternalStoreExtensions } from '@blocksuite/affine/extensions/store';
const manager = new StoreExtensionManager(getInternalStoreExtensions());
export function getStoreManager() {
return manager;
}

View File

@@ -1,4 +1,3 @@
import { getMarkdownAdapterExtensions } from '@blocksuite/affine/adapters';
import { Container } from '@blocksuite/affine/global/di';
import type {
AttachmentBlockModel,
@@ -28,6 +27,7 @@ import {
} from 'yjs';
import { IndexerDocument } from '../../storage';
import { getStoreManager } from './bs-store';
const blocksuiteSchema = new Schema();
blocksuiteSchema.register([...AffineSchemas]);
@@ -119,9 +119,11 @@ function generateMarkdownPreviewBuilder(
};
const container = new Container();
getMarkdownAdapterExtensions().forEach(ext => {
ext.setup(container);
});
getStoreManager()
.get('store')
.forEach(ext => {
ext.setup(container);
});
const provider = container.provider();
const markdownAdapter = new MarkdownAdapter(