feat: render research Markdown and navigate citations to deck posts
This commit is contained in:
@@ -229,3 +229,62 @@
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.research-markdown {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.research-message .research-markdown p {
|
||||
white-space: normal;
|
||||
}
|
||||
.research-markdown h3,
|
||||
.research-markdown h4,
|
||||
.research-markdown h5,
|
||||
.research-markdown h6 {
|
||||
font-size: 1em;
|
||||
margin: 1em 0 0.4em;
|
||||
}
|
||||
.research-markdown ul,
|
||||
.research-markdown ol {
|
||||
padding-left: 1.4rem;
|
||||
}
|
||||
.research-markdown li + li {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
.research-markdown blockquote {
|
||||
margin: 0.75rem 0;
|
||||
padding-left: 0.75rem;
|
||||
border-left: 2px solid var(--control-border);
|
||||
color: var(--secondary);
|
||||
}
|
||||
.research-markdown pre {
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
padding: 0.75rem;
|
||||
background: var(--canvas);
|
||||
white-space: pre;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.research-markdown code {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.research-markdown-table {
|
||||
overflow-x: auto;
|
||||
max-width: 100%;
|
||||
margin: 0.75rem 0;
|
||||
}
|
||||
.research-markdown table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.research-markdown th,
|
||||
.research-markdown td {
|
||||
border: 1px solid var(--border);
|
||||
padding: 0.4rem;
|
||||
text-align: left;
|
||||
}
|
||||
.research-markdown a {
|
||||
color: var(--accent);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 0.15em;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user