fix: fix after migrating to newer package version

This commit is contained in:
Kacper Kula 2025-05-06 14:41:30 +01:00
parent a95a1bd6f9
commit 5b734ff3eb
3 changed files with 10 additions and 2 deletions

View file

@ -113,7 +113,7 @@ export class CodeblockProcessor extends MarkdownRenderChild {
if (file) {
const fileCache = this.app.metadataCache.getFileCache(file)
variables = {
...fileCache?.frontmatter ?? {},
...(fileCache?.frontmatter ?? {}),
path: file.path,
fileName: file.name,
basename: file.basename,

View file

@ -58,7 +58,7 @@ export class InlineProcessor extends MarkdownRenderChild {
// TODO: unify this between codeblock and inline handlers
const variables = {
...fileCache?.frontmatter ?? {},
...(fileCache?.frontmatter ?? {}),
path: file.path,
fileName: file.name,
basename: file.basename,

View file

@ -21,6 +21,14 @@ import { ModernCellParser } from './cellParser/ModernCellParser';
import { getCellParser } from './cellParser/factory';
import { CellFunction } from './cellParser/CellFunction';
import { AllCommunityModule, ModuleRegistry, provideGlobalGridOptions } from 'ag-grid-community';
// Register all community features
ModuleRegistry.registerModules([AllCommunityModule]);
// Mark all grids as using legacy themes
provideGlobalGridOptions({ theme: "legacy"});
export default class SqlSealPlugin extends Plugin {
settings: SQLSealSettings;
fileSync: SealFileSync;