Skip to content

Commit 28705b1

Browse files
committed
Open examples link from help in a new tab
1 parent f9c147a commit 28705b1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/components/markdown/Markdown.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import Markdown from 'react-markdown';
2+
import rehypeRaw from 'rehype-raw';
23
import remarkBreaks from 'remark-breaks';
34
import remarkGfm from 'remark-gfm';
45

56
const plugins = [remarkGfm, remarkBreaks];
67

78
export function CustomMarkdown({ children }: { children?: string | null }) {
8-
return <Markdown remarkPlugins={plugins}>{children}</Markdown>;
9+
return (
10+
<Markdown rehypePlugins={[rehypeRaw]} remarkPlugins={plugins}>
11+
{children}
12+
</Markdown>
13+
);
914
}

app/components/ui/Help.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ By combining LLMs with javascript, LitLytics allows you to generate complete dat
1010
With LitLytics, you can transform data, extract insights, and automate routine tasks without having to write any code.
1111
Just describe the task in plain language, and LitLytics will handle the rest – from parsing and cleaning data to generating output in structured formats.
1212
13-
You can find examples in the repository in the [examples folder](https://github.com/yamalight/litlytics/tree/main/examples).`}
13+
You can find examples in the repository in the <a href="https://github.com/yamalight/litlytics/tree/main/examples" target="_blank">examples folder</a>.`}
1414
</CustomMarkdown>
1515
</div>
1616
);

0 commit comments

Comments
 (0)