Skip to content

Improve Markdown spacing #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
55d649d
Merge pull request #164 from ctfguide-tech/dev
Laphatize Aug 1, 2024
8601be1
Merge pull request #166 from ctfguide-tech/dev
Laphatize Aug 3, 2024
e31ac92
Merge pull request #168 from ctfguide-tech/dev
Laphatize Aug 3, 2024
1904e2c
Merge pull request #170 from ctfguide-tech/dev
Laphatize Aug 4, 2024
c524f49
Merge pull request #172 from ctfguide-tech/dev
Laphatize Aug 5, 2024
608345b
Merge pull request #174 from ctfguide-tech/dev
Laphatize Aug 5, 2024
857c4f0
Merge pull request #176 from ctfguide-tech/dev
Laphatize Aug 5, 2024
ea3a3b9
Merge pull request #178 from ctfguide-tech/dev
Laphatize Aug 5, 2024
f973ab0
Merge pull request #180 from ctfguide-tech/dev
Laphatize Aug 5, 2024
ae19414
Merge pull request #182 from ctfguide-tech/dev
Laphatize Aug 6, 2024
2d44bd4
Merge pull request #184 from ctfguide-tech/dev
Laphatize Aug 6, 2024
2d53a2c
Merge pull request #186 from ctfguide-tech/dev
Laphatize Aug 6, 2024
6437e5b
Merge pull request #187 from ctfguide-tech/dev
Laphatize Aug 6, 2024
adffe05
Merge pull request #188 from ctfguide-tech/dev
Laphatize Aug 7, 2024
ba1ff52
Merge pull request #189 from ctfguide-tech/dev
Laphatize Aug 7, 2024
811d6fa
Merge pull request #190 from ctfguide-tech/dev
Laphatize Aug 7, 2024
e4ca62c
Merge pull request #191 from ctfguide-tech/dev
Laphatize Aug 7, 2024
a2dd105
Merge pull request #192 from ctfguide-tech/dev
Laphatize Aug 7, 2024
68ae190
Merge pull request #194 from ctfguide-tech/dev
Laphatize Aug 9, 2024
50a7594
Merge pull request #195 from ctfguide-tech/dev
Laphatize Aug 12, 2024
84550bd
Merge pull request #198 from ctfguide-tech/dev
Laphatize Aug 16, 2024
e5d156a
Change markdown viewer in settings bio preview
Eiim Aug 17, 2024
f212966
Update Markdown spacing
Eiim Aug 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/settingComponents/generalPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Skeleton from 'react-loading-skeleton';
import 'react-loading-skeleton/dist/skeleton.css';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import Markdown from 'react-markdown';
import { MarkdownViewer } from '@/components/MarkdownViewer';
import { Context } from '@/context';
import { useContext } from 'react';
import { CheckIcon } from '@heroicons/react/20/solid';
Expand Down Expand Up @@ -691,7 +691,7 @@ export default function General() {
Bio Preview
</label>
<div className="mt-2 rounded-lg bg-neutral-800 p-4 text-white">
<Markdown>{tempBio}</Markdown>
<MarkdownViewer content={tempBio}></MarkdownViewer>
</div>
</div>
)}
Expand Down
10 changes: 3 additions & 7 deletions src/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@

@layer utilities {
.markdown {
@apply break-words;
}

.markdown p {
@apply leading-10;
@apply break-words space-y-2;
}

.markdown h1 {
Expand Down Expand Up @@ -70,7 +66,7 @@
}

.markdown p {
@apply leading-8;
@apply leading-7;
}

.markdown underline {
Expand All @@ -94,7 +90,7 @@
}

.markdown li {
@apply leading-10 pl-2 marker:font-bold;
@apply leading-7 pl-2 marker:font-bold;
}

.markdown blockquote {
Expand Down