chore: cleanup unused files and update gitignore
- Remove MONETIZATION.md and README.md - Add dist/ to gitignore Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ac04d7f346
commit
58fd9c0a55
9 changed files with 35 additions and 194 deletions
|
|
@ -4,7 +4,7 @@ import { useState, useCallback, useRef, useEffect } from 'react'
|
|||
import { getLanguageIconUrl, getLanguageDisplayName, SUPPORTED_LANGUAGES } from './icons'
|
||||
import { Icons } from '../../../shared/Icons'
|
||||
|
||||
export function CodeBlockView({ node, updateAttributes, extension }: NodeViewProps) {
|
||||
export function CodeBlockView({ node, updateAttributes }: NodeViewProps) {
|
||||
const { language, title } = node.attrs
|
||||
const [showLanguageMenu, setShowLanguageMenu] = useState(false)
|
||||
const [copied, setCopied] = useState(false)
|
||||
|
|
@ -161,7 +161,9 @@ export function CodeBlockView({ node, updateAttributes, extension }: NodeViewPro
|
|||
|
||||
{/* Code content */}
|
||||
<pre className="!mt-0 !rounded-t-none">
|
||||
<NodeViewContent as="code" className={language ? `language-${language}` : ''} />
|
||||
<code className={language ? `language-${language}` : ''}>
|
||||
<NodeViewContent />
|
||||
</code>
|
||||
</pre>
|
||||
</NodeViewWrapper>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue