Skip to content

Commit

Permalink
pt2: Some clean up from old attempts of bringing youtube timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Nov 15, 2021
1 parent 1d7e345 commit c0445cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/annotations/components/editor/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import Link from '@tiptap/extension-link'
import CodeBlock from '@tiptap/extension-code-block'
import Heading from '@tiptap/extension-heading'
import Image from '@tiptap/extension-image'
import { nodeInputRule } from '@tiptap/core'
import { GetYoutubeTimeStamp } from './YoutubeInsert'

import './styles.css'
Expand Down Expand Up @@ -42,14 +41,12 @@ const MemexEditor = (props: Props) => {
const renderer = {
image(url) {
return `
<img id={'Test'} src="${url}" alt={'test'}/>
<img href="${url}" target="_blank" src="${url}" alt={'test'}/>
`
},
}
marked.use({ renderer })

const inputRegex = '/YT'

const InsertYoutubeLink = Link.extend({
addKeyboardShortcuts() {
return {
Expand Down

0 comments on commit c0445cf

Please sign in to comment.