Skip to content

Commit 3c72c75

Browse files
authored
Rename class and update command id (#4)
1 parent 89f5bd5 commit 3c72c75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Editor, MarkdownView, Plugin } from 'obsidian'
22
import { MDXPreviewState, MDX_PREVIEW, mdxPreview } from './mdxPreview'
33

4-
export default class ObsidianKetcher extends Plugin {
4+
export default class ObsidianMDX extends Plugin {
55
async onload() {
66
this.registerView(MDX_PREVIEW, (leaf) => new mdxPreview(leaf))
77

88
this.addCommand({
9-
id: 'mdx-preview',
9+
id: 'preview',
1010
name: 'Preview',
1111
editorCheckCallback: (
1212
checking: boolean,

src/mdxPreview.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ItemView, TextFileView, ViewStateResult } from 'obsidian'
1+
import { ItemView, ViewStateResult } from 'obsidian'
22
import React from 'react'
33
import * as runtime from 'react/jsx-runtime'
44
// @ts-ignore

0 commit comments

Comments
 (0)