Skip to content

Commit

Permalink
Rename class and update command id (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleicul authored Aug 16, 2023
1 parent 89f5bd5 commit 3c72c75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Editor, MarkdownView, Plugin } from 'obsidian'
import { MDXPreviewState, MDX_PREVIEW, mdxPreview } from './mdxPreview'

export default class ObsidianKetcher extends Plugin {
export default class ObsidianMDX extends Plugin {
async onload() {
this.registerView(MDX_PREVIEW, (leaf) => new mdxPreview(leaf))

this.addCommand({
id: 'mdx-preview',
id: 'preview',
name: 'Preview',
editorCheckCallback: (
checking: boolean,
Expand Down
2 changes: 1 addition & 1 deletion src/mdxPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ItemView, TextFileView, ViewStateResult } from 'obsidian'
import { ItemView, ViewStateResult } from 'obsidian'
import React from 'react'
import * as runtime from 'react/jsx-runtime'
// @ts-ignore
Expand Down

0 comments on commit 3c72c75

Please sign in to comment.