setting up prod release

This commit is contained in:
JK 2026-06-04 20:20:27 +02:00
parent 88cb4e38d5
commit 0f00ee5f90
21 changed files with 66 additions and 160 deletions

View file

@ -5,9 +5,9 @@ body:
attributes:
label: "⚠️ Please check that this feature request hasn't been suggested before."
options:
- label: "I searched previous [Ideas in Discussions](https://github.com/YouFoundJK/obsidian-latex-eq-refer/discussions/categories/ideas) and didn't find any similar feature requests."
- label: "I searched previous [Ideas in Discussions](https://github.com/YouFoundJK/ObsiTeXcore/discussions/categories/ideas) and didn't find any similar feature requests."
required: true
- label: "I searched previous [Issues](https://github.com/YouFoundJK/obsidian-latex-eq-refer/issues) and didn't find any similar feature requests."
- label: "I searched previous [Issues](https://github.com/YouFoundJK/ObsiTeXcore/issues) and didn't find any similar feature requests."
required: true
- type: textarea

View file

@ -1,12 +1,12 @@
name: Bug Report
description: Create a bug report to help us improve LaTeX Equation Referencer
description: Create a bug report to help us improve ObsiTeXcore
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
## Before you start
Please **make sure you are on the latest version of LaTeX Equation Referencer.**
Please **make sure you are on the latest version of ObsiTeXcore.**
If you encountered the issue after you installed, updated, or reloaded the plugin, **please try restarting Obsidian before reporting the bug**.
- type: checkboxes
@ -15,7 +15,7 @@ body:
label: "Please check that this issue hasn't been reported before."
description: "The **Label filters** may help make your search more focused."
options:
- label: "I searched previous [Bug Reports](https://github.com/YouFoundJK/obsidian-latex-eq-refer/issues?q=state%3Aopen%20label%3Abug) and didn't find any similar reports."
- label: "I searched previous [Bug Reports](https://github.com/YouFoundJK/ObsiTeXcore/issues?q=state%3Aopen%20label%3Abug) and didn't find any similar reports."
required: true
- type: textarea
@ -86,7 +86,7 @@ body:
id: plugin-version
attributes:
label: Plugin Version
description: Which LaTeX Equation Referencer version are you using?
description: Which ObsiTeXcore version are you using?
placeholder: "Enter plugin version here."
validations:
required: true

View file

@ -6,11 +6,11 @@ body:
attributes:
value: |
## Feature Requests have moved to Discussions
Please [submit feature requests as Discussions](https://github.com/YouFoundJK/obsidian-latex-eq-refer/discussions/categories/ideas) so that they can be voted on and prioritized.
Please [submit feature requests as Discussions](https://github.com/YouFoundJK/ObsiTeXcore/discussions/categories/ideas) so that they can be voted on and prioritized.
- type: checkboxes
attributes:
label: Submit on Discussions
description: Please submit your feature request as a Discussion.
options:
- label: I will submit my feature request as a [Discussion](https://github.com/YouFoundJK/obsidian-latex-eq-refer/discussions/categories/ideas).
- label: I will submit my feature request as a [Discussion](https://github.com/YouFoundJK/ObsiTeXcore/discussions/categories/ideas).
required: true

View file

@ -1,15 +0,0 @@
---
applyTo: "src/*, /*.ts, **/*.js, **/*.tsx, **/*.jsx, **/*.css"
exclude: "**/*.txt"
---
Scan through my codebase and find the necessary files and intelligently make the suggested changes to it. Do not overwrite the files, but only modify the snippets as required. Only if you cannot find the file required will you create a new file and write into it.
IMPORTANT:
- Follow the instructions exactly and do not deviate from them or main your own interpretation.
- Do not suggest any changes that are not in the context of the instructions.
- Its recommended to update the logs for all the changes done so far in a new file in the obsidian vault folder `VSCODE blueprints`.
Key points:
- Ensure that the changes are made in a way that they do not disrupt existing functionality.
- Prioritze implementation with the least code changes so that its easier to debug.
- Maintain modularity and reuse as much as possible.

View file

@ -41,7 +41,7 @@ Acceptance Criteria:
- [ ] Chore / maintenance <!-- Add `Related Issue / Discussion #__ if applicable-->
## Code Quality Checklist (MANDATORY)
*Please read and verify you have adhered to all guidelines outlined in [CONTRIBUTING.md](https://github.com/YouFoundJK/obsidian-latex-eq-refer/blob/master/CONTRIBUTING.md).*
*Please read and verify you have adhered to all guidelines outlined in [CONTRIBUTING.md](https://github.com/YouFoundJK/ObsiTeXcore/blob/master/CONTRIBUTING.md).*
- **[SOLID](https://en.wikipedia.org/wiki/SOLID), [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)**:
- [ ] Designed polymorphically where appropriate.

View file

@ -1,6 +1,6 @@
# 🎉 Contributing to LaTeX Equation Referencer
# 🎉 Contributing to ObsiTeXcore
LaTeX Equation Referencer is open to contributions, and were excited to have you here! This guide will help you get set up for local development.
ObsiTeXcore is open to contributions, and were excited to have you here! This guide will help you get set up for local development.
> We welcome any and all types of PR, including ones assisted by AI. To ensure the codebase is clean and up to standard, we strictly adhere to the following principles.
@ -51,4 +51,4 @@ All build output will appear in the root directory (`main.js` and `styles.css`)
> 💡 **Recommended:** Use the [Hot Reload plugin](https://github.com/pjeby/hot-reload) to make development smoother — it auto-reloads your plugin changes.
Thanks for helping improve LaTeX Equation Referencer! 🎨📝
Thanks for helping improve ObsiTeXcore! 🎨📝

View file

@ -1,8 +1,8 @@
# LaTeX Equation Referencer for Obsidian
# ObsiTeXcore for Obsidian
> **LaTeX Equation Referencer** is a minimalistic [Obsidian.md](https://obsidian.md/) plugin for automatic equation numbering and referencing. It is a streamlined fork of the original [LaTeX-like Theorem & Equation Referencer](https://ryotaushio.github.io/obsidian-latex-theorem-equation-referencer/) by Ryota Ushio.
> **ObsiTeXcore** is a minimalistic [Obsidian.md](https://obsidian.md/) plugin for automatic equation numbering and referencing. It is a streamlined fork of the original [LaTeX-like Theorem & Equation Referencer](https://ryotaushio.github.io/obsidian-latex-theorem-equation-referencer/) by Ryota Ushio.
📚 **[Full Documentation](https://youfoundjk.github.io/obsidian-latex-eq-refer/)**
📚 **[Full Documentation](https://youfoundjk.github.io/ObsiTeXcore/)**
## Key Differences from Original
@ -75,13 +75,13 @@ Use the "Fix callout equations" command to repair broken indentation.
### From Community Plugins
1. Open Obsidian Settings → **Community plugins**
2. Click **Browse** and search for "LaTeX Equation Referencer"
2. Click **Browse** and search for "ObsiTeXcore"
3. Click **Install**, then **Enable**
### Manual Installation
1. Download `main.js`, `manifest.json`, and `styles.css` from the [latest release](https://github.com/YouFoundJK/obsidian-latex-eq-refer/releases)
2. Create folder: `<vault>/.obsidian/plugins/math-booster/`
1. Download `main.js`, `manifest.json`, and `styles.css` from the [latest release](https://github.com/YouFoundJK/ObsiTeXcore/releases)
2. Create folder: `<vault>/.obsidian/plugins/obsitexcore/`
3. Copy the files into this folder
4. Restart Obsidian and enable the plugin
@ -104,7 +104,7 @@ Use the "Fix callout equations" command to repair broken indentation.
## Configuration
See the [Settings Reference](https://youfoundjk.github.io/obsidian-latex-eq-refer/configuration/settings/) for all configuration options.
See the [Settings Reference](https://youfoundjk.github.io/ObsiTeXcore/configuration/settings/) for all configuration options.
## Credits

View file

@ -2,7 +2,7 @@
window.cleanUmamiUrl = function (type, payload) {
if (payload && payload.url) {
// Strip the repository name from the URL prefix for cleaner dashboard visibility
payload.url = payload.url.replace('/obsidian-latex-eq-refer', '') || '/';
payload.url = payload.url.replace('/ObsiTeXcore', '') || '/';
}
return payload;
};
@ -33,7 +33,7 @@ function investigateUmamiEvent(eventName, eventData) {
// Ensure the repository subdirectory name is stripped from custom events too
if (eventData && eventData.page) {
eventData.page = eventData.page.replace('/obsidian-latex-eq-refer', '') || '/';
eventData.page = eventData.page.replace('/ObsiTeXcore', '') || '/';
}
window.umami.track(eventName, eventData);

View file

@ -1,6 +1,6 @@
# Settings Reference
Complete reference for all LaTeX Equation Referencer settings.
Complete reference for all ObsiTeXcore settings.
## Equation Numbering & Referencing

View file

@ -1,6 +1,6 @@
# Equation Numbering & Referencing
The core feature of LaTeX Equation Referencer is automatic equation numbering using LaTeX `\tag{}` commands and smart referencing via internal links.
The core feature of ObsiTeXcore is automatic equation numbering using LaTeX `\tag{}` commands and smart referencing via internal links.
## How Equation IDs Work

View file

@ -5,13 +5,13 @@
### From Community Plugins
1. Open Obsidian Settings → **Community plugins**
2. Click **Browse** and search for "LaTeX Equation Referencer"
2. Click **Browse** and search for "ObsiTeXcore"
3. Click **Install**, then **Enable**
### Manual Installation
1. Download `main.js`, `manifest.json`, and `styles.css` from the [latest release](https://github.com/YouFoundJK/obsidian-latex-eq-refer/releases)
2. Create folder: `<vault>/.obsidian/plugins/math-booster/`
1. Download `main.js`, `manifest.json`, and `styles.css` from the [latest release](https://github.com/YouFoundJK/ObsiTeXcore/releases)
2. Create folder: `<vault>/.obsidian/plugins/obsitexcore/`
3. Copy the downloaded files into this folder
4. Restart Obsidian and enable the plugin

View file

@ -1,4 +1,4 @@
# LaTeX Equation Referencer
# ObsiTeXcore
A minimalistic Obsidian plugin for automatic equation numbering and referencing.
@ -49,7 +49,7 @@ A minimalistic Obsidian plugin for automatic equation numbering and referencing.
## How It Differs from Original
| Feature | Original Math Booster | LaTeX Equation Referencer |
| Feature | Original Math Booster | ObsiTeXcore |
|---------|----------------------|---------------------------|
| Scope | Vault-wide scanning | Active note only |
| Theorem Support | ✅ Full support | ❌ Removed |

View file

@ -2,7 +2,7 @@
<div class="md-footer-meta custom-footer" role="contentinfo">
<div class="md-footer-meta__inner md-grid">
<section class="custom-footer__brand" aria-label="Project">
<div class="custom-footer__title">LaTeX Equation Referencer</div>
<div class="custom-footer__title">ObsiTeXcore</div>
<p class="custom-footer__tagline">
A powerful indexing & referencing system for theorems & equations in Obsidian.
</p>
@ -23,14 +23,14 @@
<nav class="custom-footer__column" aria-label="Key docs">
<h3>Documentation</h3>
<a href="https://youfoundjk.github.io/obsidian-latex-eq-refer/">Docs Home</a>
<a href="https://youfoundjk.github.io/obsidian-latex-eq-refer/getting-started/">Getting Started</a>
<a href="https://youfoundjk.github.io/obsidian-latex-eq-refer/configuration/settings/">Settings Reference</a>
<a href="https://youfoundjk.github.io/ObsiTeXcore/">Docs Home</a>
<a href="https://youfoundjk.github.io/ObsiTeXcore/getting-started/">Getting Started</a>
<a href="https://youfoundjk.github.io/ObsiTeXcore/configuration/settings/">Settings Reference</a>
</nav>
<nav class="custom-footer__column" aria-label="Project and support links">
<h3>Project</h3>
<a href="https://github.com/YouFoundJK/obsidian-latex-eq-refer" target="_blank" rel="noopener">GitHub Repository</a>
<a href="https://github.com/YouFoundJK/ObsiTeXcore" target="_blank" rel="noopener">GitHub Repository</a>
<a href="https://github.com/YouFoundJK" target="_blank" rel="noopener">YouFoundJK on GitHub</a>
</nav>
</div>

View file

@ -0,0 +1 @@
<!-- Custom Analytics Override -->

View file

@ -65,8 +65,7 @@ export default tseslint.config(
globals: {
...globals.browser,
...globals.node,
React: 'readonly',
Electron: 'readonly'
React: 'readonly'
},
parserOptions: {
ecmaFeatures: {
@ -80,54 +79,43 @@ export default tseslint.config(
obsidianmd: obsidianmd
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/no-deprecated': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/only-throw-error': 'off',
'@typescript-eslint/no-this-alias': 'off',
'no-undef': 'off',
'@typescript-eslint/no-non-null-assertion': 'warn',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-console': 'off',
'no-debugger': 'error',
'prefer-const': 'error',
'no-var': 'error',
'no-restricted-syntax': 'off',
'no-alert': 'off',
'no-unsanitized/property': 'off',
'@microsoft/sdl/no-inner-html': 'off',
'no-restricted-syntax': [
'error',
{
selector: "NewExpression[callee.name='Notice']",
message: 'Use showNotice(...) instead of new Notice(...).'
}
],
// Upgrade the Obsidian trash rule from warn to error.
'obsidianmd/prefer-file-manager-trash-file': 'error',
'obsidianmd/no-static-styles-assignment': 'off',
'obsidianmd/ui/sentence-case': 'off',
'obsidianmd/no-tfile-tfolder-cast': 'off',
'obsidianmd/rule-custom-message': 'off',
'obsidianmd/prefer-active-doc': 'off',
'preserve-caught-error': 'off',
'no-useless-escape': 'off',
// Type assertions
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
'@typescript-eslint/prefer-as-const': 'warn',
// Code style
eqeqeq: 'off',
eqeqeq: ['error', 'always'], // Require === and !== instead of == and !=
'prefer-template': 'warn', // Use template literals instead of string concatenation
'@typescript-eslint/array-type': ['warn', { default: 'array' }], // Prefer T[] over Array<T>
'prefer-object-spread': 'warn', // Use {...obj} instead of Object.assign()
curly: ['warn', 'multi-line'], // Require curly braces for multi-line blocks
'no-else-return': 'warn'
'no-else-return': 'warn', // Remove unnecessary else after return
'obsidianmd/ui/sentence-case': [
'warn',
{
acronyms: ['RRGGBB', 'RRGGBBAA']
}
]
}
},
{
@ -135,12 +123,5 @@ export default tseslint.config(
rules: {
'no-restricted-syntax': 'off'
}
},
{
files: ['src/features/export-pdf/**', 'src/utils/debug.ts', 'src/utils/file-io.ts', 'src/main.ts'],
rules: {
'import/no-nodejs-modules': 'off',
'obsidianmd/no-nodejs-modules': 'off'
}
}
);

View file

@ -16,8 +16,7 @@ export default defineConfig([
// Obsidian CSS variables are defined by the host app/theme and are not local declarations.
'css/no-invalid-properties': 'off',
'css/no-important': 'warn',
'css/use-baseline': 'warn',
'css/font-family-fallbacks': 'off'
'css/use-baseline': 'warn'
}
}
]);

View file

@ -1,12 +1,11 @@
{
"id": "latex-referencer",
"name": "LaTeX Equation Referencer",
"version": "2.3.0",
"id": "obsitexcore",
"name": "ObsiTeXcore",
"version": "0.0.1",
"minAppVersion": "1.3.5",
"description": "A powerful indexing & referencing system for theorems & equations in your vault. Bring LaTeX-like workflow into Obsidian with theorem environments, automatic equation numbering, and more.",
"author": "Jovi Koikkara",
"authorUrl": "https://github.com/YouFoundJK",
"fundingUrl": "https://github.com/YouFoundJK",
"helpUrl": "https://ryotaushio.github.io/obsidian-latex-theorem-equation-referencer/",
"isDesktopOnly": false
}

View file

@ -1,8 +1,8 @@
site_name: LaTeX Equation Referencer
site_name: ObsiTeXcore
site_description: A powerful indexing & referencing system for theorems & equations in your vault.
site_url: https://youfoundjk.github.io/obsidian-latex-eq-refer/
repo_name: YouFoundJK/obsidian-latex-eq-refer
repo_url: https://github.com/YouFoundJK/obsidian-latex-eq-refer
site_url: https://youfoundjk.github.io/ObsiTeXcore/
repo_name: YouFoundJK/ObsiTeXcore
repo_url: https://github.com/YouFoundJK/ObsiTeXcore
theme:
name: material
@ -86,9 +86,9 @@ plugins:
enable_creation_date: true
type: datetime
- git-committers:
repository: YouFoundJK/obsidian-latex-eq-refer
repository: YouFoundJK/ObsiTeXcore
cache_dir: .cache/plugin/git-committers
branch: master
branch: main
extra:
analytics:
@ -106,7 +106,7 @@ extra:
note: Thanks for your feedback!
social:
- icon: fontawesome/brands/github
link: https://github.com/YouFoundJK/obsidian-latex-eq-refer
link: https://github.com/YouFoundJK/ObsiTeXcore
nav:
- Home: index.md

View file

@ -1,6 +1,6 @@
{
"name": "obsidian-math-booster",
"version": "2.2.5",
"name": "obsitexcore",
"version": "0.0.1",
"description": "An Obsidian.md plugin that provides a powerful indexing & referencing system for theorems & equations in your vault. Bring LaTeX-like workflow into Obsidian with theorem environments, automatic equation numbering, and more.",
"main": "main.js",
"packageManager": "pnpm@11.1.2+sha512.415a1cc25974731e75455c1468371be74c5aa5fb7621b50d4056d222451609f11412f23fd602e6169f1e060466641f798597e1be961a10688836a67b16569499",

Binary file not shown.

View file

@ -1,59 +0,0 @@
src/features/export-pdf/modal.ts(68,3): error TS2564: Property 'callback' has no initializer and is not definitely assigned in the constructor.
src/features/export-pdf/modal.ts(72,3): error TS2564: Property 'previewDiv' has no initializer and is not definitely assigned in the constructor.
src/features/export-pdf/modal.ts(75,3): error TS2564: Property 'title' has no initializer and is not definitely assigned in the constructor.
src/features/export-pdf/modal.ts(76,3): error TS2564: Property 'frontMatter' has no initializer and is not definitely assigned in the constructor.
src/features/export-pdf/modal.ts(258,55): error TS2345: Argument of type '(sizeEl: HTMLDivElement) => void' is not assignable to parameter of type '(value: Element, key: number, parent: NodeListOf<Element>) => void'.
Types of parameters 'sizeEl' and 'value' are incompatible.
Type 'Element' is missing the following properties from type 'HTMLDivElement': align, accessKey, accessKeyLabel, autocapitalize, and 147 more.
src/features/export-pdf/render.ts(261,46): error TS2345: Argument of type '(el: HTMLAnchorElement) => void' is not assignable to parameter of type '(value: HTMLElement, index: number, array: HTMLElement[]) => void'.
Types of parameters 'el' and 'value' are incompatible.
Type 'HTMLElement' is missing the following properties from type 'HTMLAnchorElement': charset, coords, download, hreflang, and 21 more.
src/features/export-pdf/render.ts(299,17): error TS2345: Argument of type '(span: HTMLElement) => string' is not assignable to parameter of type '(value: Element, index: number, array: Element[]) => void'.
Types of parameters 'span' and 'value' are incompatible.
Type 'Element' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, autocorrect, and 146 more.
src/features/export-pdf/utils.ts(9,3): error TS2564: Property 'parent' has no initializer and is not definitely assigned in the constructor.
src/features/export-pdf/utils.ts(32,20): error TS2345: Argument of type '(heading: HTMLElement) => void' is not assignable to parameter of type '(value: Element, key: number, parent: NodeListOf<Element>) => void'.
Types of parameters 'heading' and 'value' are incompatible.
Type 'Element' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, autocorrect, and 146 more.
src/features/export-pdf/utils.ts(60,58): error TS2345: Argument of type '(heading: HTMLElement, i: number) => void' is not assignable to parameter of type '(value: Element, key: number, parent: NodeListOf<Element>) => void'.
Types of parameters 'heading' and 'value' are incompatible.
Type 'Element' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, autocorrect, and 146 more.
src/features/export-pdf/utils.ts(79,51): error TS2345: Argument of type '(el: HTMLAnchorElement, i: number) => void' is not assignable to parameter of type '(value: Element, key: number, parent: NodeListOf<Element>) => void'.
Types of parameters 'el' and 'value' are incompatible.
Type 'Element' is missing the following properties from type 'HTMLAnchorElement': charset, coords, download, hreflang, and 171 more.
src/features/linker/live-preview-link-renderer.ts(111,7): error TS2564: Property 'decorations' has no initializer and is not definitely assigned in the constructor.
src/features/tikz/row-layout.ts(177,45): error TS2345: Argument of type '(el: HTMLElement) => void' is not assignable to parameter of type '(value: Element, key: number, parent: NodeListOf<Element>) => void'.
Types of parameters 'el' and 'value' are incompatible.
Type 'Element' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, autocorrect, and 146 more.
src/main.ts(52,3): error TS2564: Property 'editorExtensions' has no initializer and is not definitely assigned in the constructor.
src/main.ts(54,3): error TS2564: Property 'snippetManager' has no initializer and is not definitely assigned in the constructor.
src/main.ts(55,3): error TS2564: Property 'customNoteManager' has no initializer and is not definitely assigned in the constructor.
src/main.ts(56,3): error TS2564: Property 'tikzRenderer' has no initializer and is not definitely assigned in the constructor.
src/main.ts(81,7): error TS2322: Type '(editor: Editor, view: MarkdownView) => void' is not assignable to type '(editor: Editor, ctx: MarkdownView | MarkdownFileInfo) => any'.
Types of parameters 'view' and 'ctx' are incompatible.
Type 'MarkdownView | MarkdownFileInfo' is not assignable to type 'MarkdownView'.
Type 'MarkdownFileInfo' is missing the following properties from type 'MarkdownView': previewMode, currentMode, getViewType, getMode, and 39 more.
src/main.ts(89,7): error TS2322: Type '(editor: Editor, view: MarkdownView) => void' is not assignable to type '(editor: Editor, ctx: MarkdownView | MarkdownFileInfo) => any'.
Types of parameters 'view' and 'ctx' are incompatible.
Type 'MarkdownView | MarkdownFileInfo' is not assignable to type 'MarkdownView'.
Type 'MarkdownFileInfo' is missing the following properties from type 'MarkdownView': previewMode, currentMode, getViewType, getMode, and 39 more.
src/main.ts(135,29): error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type '"file-menu"' is not assignable to parameter of type '"quit"'.
src/main.ts(154,29): error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type '"file-menu"' is not assignable to parameter of type '"quit"'.
src/main.ts(201,42): error TS2345: Argument of type 'typeof LinkAutocomplete' is not assignable to parameter of type 'new (...args: unknown[]) => Suggester<EquationBlock>'.
Types of construct signatures are incompatible.
Type 'new (plugin: LatexReferencer) => LinkAutocomplete' is not assignable to type 'new (...args: unknown[]) => Suggester<EquationBlock>'.
Types of parameters 'plugin' and 'args' are incompatible.
Type 'unknown' is not assignable to type 'LatexReferencer'.
src/main.ts(202,42): error TS2345: Argument of type 'typeof MathSearchModal' is not assignable to parameter of type 'new (...args: unknown[]) => Suggester<EquationBlock>'.
Types of construct signatures are incompatible.
Type 'new (plugin: LatexReferencer) => MathSearchModal' is not assignable to type 'new (...args: unknown[]) => Suggester<EquationBlock>'.
Types of parameters 'plugin' and 'args' are incompatible.
Type 'unknown' is not assignable to type 'LatexReferencer'.
src/main.ts(284,33): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
src/main.ts(294,33): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
src/main.ts(301,27): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
[ELIFECYCLE] Command failed with exit code 2.