mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-22 14:41:04 +01:00
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 StyledWrapper from './StyledWrapper';
|
||||
import * as React from 'react';
|
||||
|
||||
const md = new MarkdownIt();
|
||||
|
||||
const Markdown = ({ onDoubleClick, content }: { onDoubleClick: () => void; content?: string }) => {
|
||||
const handleOnDoubleClick = (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
|
||||
const Markdown = ({ onDoubleClick, content }) => {
|
||||
const handleOnDoubleClick = (event) => {
|
||||
console.log(event);
|
||||
if (event?.detail === 2) {
|
||||
onDoubleClick();
|
||||
}
|
||||
return;
|
||||
};
|
||||
const htmlFromMarkdown = md.render(content || '');
|
||||
|
Loading…
Reference in New Issue
Block a user