forked from extern/bruno
bugfix(docs_links): reverse tsx to jsx
This commit is contained in:
parent
56a456a9b6
commit
8e1d04f5c1
@ -1,17 +1,15 @@
|
|||||||
// @ts-ignore
|
|
||||||
import MarkdownIt from 'markdown-it';
|
import MarkdownIt from 'markdown-it';
|
||||||
import StyledWrapper from './StyledWrapper';
|
import StyledWrapper from './StyledWrapper';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
const md = new MarkdownIt();
|
const md = new MarkdownIt();
|
||||||
|
|
||||||
const Markdown = ({ onDoubleClick, content }: { onDoubleClick: () => void; content?: string }) => {
|
const Markdown = ({ onDoubleClick, content }) => {
|
||||||
const handleOnDoubleClick = (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
|
const handleOnDoubleClick = (event) => {
|
||||||
console.log(event);
|
console.log(event);
|
||||||
if (event?.detail === 2) {
|
if (event?.detail === 2) {
|
||||||
onDoubleClick();
|
onDoubleClick();
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
};
|
};
|
||||||
const htmlFromMarkdown = md.render(content || '');
|
const htmlFromMarkdown = md.render(content || '');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user