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 @@ -147,6 +147,7 @@ export const GovernanceActionCardElement = ({

return (
<Markdown
className="markdown"
components={markdownComponents}
remarkPlugins={[remarkMath, remarkGfm]}
rehypePlugins={[rehypeKatex]}
Expand Down
44 changes: 23 additions & 21 deletions govtool/frontend/src/components/molecules/tableMarkdown.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
table {
display: block;
overflow-x: auto;
margin: 32px 0;
border-spacing: 0;
border-collapse: collapse;
max-width: 100%;
}
.markdown {
& table {
display: block;
overflow-x: auto;
margin: 32px 0;
border-spacing: 0;
border-collapse: collapse;
max-width: 100%;

table thead {
background-color: #d6e2ff80;
}
& thead {
background-color: #d6e2ff80;
}

table th,
table td {
padding: 6px 13px;
border: 1px solid #d6e2ff;
}
& th,
& td {
padding: 6px 13px;
border: 1px solid #d6e2ff;
}

table td > :last-child {
margin-bottom: 0;
}
& td > :last-child {
margin-bottom: 0;
}

table tr:nth-child(2n) {
background-color: #d6e2ff80;
& tr:nth-child(2n) {
background-color: #d6e2ff80;
}
}
}