Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import type { Components } from "react-markdown";

import { a } from "./mdComponents/Link";
import { code } from "./mdComponents/Code";
import { p } from "./mdComponents/Paragraph";
import { ul, ol, li } from "./mdComponents/List";
import { h1, h2, h3, h4, h5, h6 } from "./mdComponents/Heading";

export const components: Components = {
Expand All @@ -14,9 +12,5 @@ export const components: Components = {
h4,
h5,
h6,
p,
ul,
ol,
li,
code,
};
Copy link
Contributor Author

@jsartisan jsartisan Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i realized these wrappers are not needed anymore as I removed the text wrapper.

This file was deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not using our Text component as the capsizing is causing issues with list item markers. Anyway, we used capsizing for single line use cases ( like text in button ). Having capsizing for everything is causing more harm than good.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -74,26 +74,23 @@
margin-bottom: var(--inner-spacing-1);
}

[data-component="p"] {
margin-bottom: var(--inner-spacing-3);
}

/* Lists */
:is(ul, ol) {
margin-top: var(--inner-spacing-2);
margin-bottom: var(--inner-spacing-4);
margin-bottom: var(--inner-spacing-3);
padding-left: 0;
list-style: initial;
}

li {
margin-bottom: var(--inner-spacing-2);
margin-left: 1em;
position: relative;
list-style-type: auto;
}

[data-component="a"]:before,
[data-component="a"]:after {
content: none;
a {
display: inline-block;
}

[data-component="code"] {
Expand Down