Skip to content

Commit

Permalink
better latex
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushKun committed May 20, 2024
1 parent 9339fad commit df706d3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 23 deletions.
2 changes: 1 addition & 1 deletion next_app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"nextjs-google-analytics": "^2.3.3",
"react": "^18",
"react-dom": "^18",
"react-latex": "^2.0.0",
"react-latex-next": "^3.0.0",
"react-markdown": "^9.0.1",
"react-resizable-panels": "^2.0.18",
"remark-gfm": "^4.0.0",
Expand Down
33 changes: 20 additions & 13 deletions next_app/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion next_app/src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ import WarpLanding from "./warp/landing";
import { luaCompletionProvider } from "@/lib/monaco-completions";
import Markdown from "react-markdown"
import remarkGfm from "remark-gfm"
import Latex from "react-latex"
import Latex from 'react-latex-next';


const monacoConfig: {
[key: string]: editor.IStandaloneEditorConstructionOptions
Expand Down
16 changes: 8 additions & 8 deletions next_app/src/components/settings-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export default function SettingsTab() {
return (
<ScrollArea className="w-full h-full">
<div className="h-full w-full p-8 max-w-4xl mx-auto">
<div className="my-5 mb-12 max-w-xl mx-auto">
{/* <div className="my-5 mb-12 max-w-xl mx-auto">
<Input type="text" placeholder="Search in settings"></Input>
</div>
</div> */}

<Title title="CURRENT PROJECT" />
<div className="my-8 grid grid-cols-3">
Expand All @@ -41,7 +41,7 @@ export default function SettingsTab() {
</div>


<div className="mb-8">
{/* <div className="mb-8">
<Title title="NOTIFICATIONS" />
<div className="items-top flex space-x-2.5">
Expand All @@ -51,9 +51,9 @@ export default function SettingsTab() {
Toast notifications
</Label>
</div>
</div>
</div> */}

<div className="mb-8">
{/* <div className="mb-8">
<Title title="EDITOR STYLE" />
<div className="flex flex-col gap-3">
Expand All @@ -74,9 +74,9 @@ export default function SettingsTab() {
</Label>
</div>
</div>
</div>
</div> */}

<div className="mb-8">
{/* <div className="mb-8">
<Title title="DISABLE" />
<div className="items-top flex space-x-2.5">
Expand All @@ -87,7 +87,7 @@ export default function SettingsTab() {
<span className="text-sm ml-2 text-muted">(some features might not work correctly if you enable this)</span>
</Label>
</div>
</div>
</div> */}
</div>
</ScrollArea>
);
Expand Down
2 changes: 2 additions & 0 deletions next_app/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@/styles/globals.css";
import 'katex/dist/katex.min.css';
import type { AppProps } from "next/app";
import { Toaster } from "@/components/ui/toaster";
import { Toaster as Sonner } from "@/components/ui/sonner";
Expand All @@ -7,6 +8,7 @@ import { GoogleAnalytics } from "@next/third-parties/google";
// import { GoogleAnalytics } from "nextjs-google-analytics";



declare global {
interface Window {
arweaveWallet: {
Expand Down

0 comments on commit df706d3

Please sign in to comment.