publish: fixes codeblock wrapping behavior

fixes https://github.com/urbit/landscape/issues/324
This commit is contained in:
Tyler Brown Cifu Shuster 2021-01-31 20:17:36 -08:00
parent 5020ab48e9
commit 93d5302b16
2 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,7 @@ export function Note(props: NoteProps & RouteComponentProps) {
<Text ml={2}>{adminLinks}</Text>
</Box>
</Col>
<Box color="black" className="md" style={{ overflowWrap: "break-word" }}>
<Box color="black" className="md" style={{ overflowWrap: "break-word", overflow: "hidden" }}>
<ReactMarkdown source={body} linkTarget={"_blank"} />
</Box>
<NoteNavigation

View File

@ -192,6 +192,7 @@
}
.md code, .md pre {
font-family: "Source Code Pro", mono;
white-space: pre-wrap;
}
.md ul>li, .md ol>li {
line-height: 1.5;