Syntax highlight code blocks

This commit is contained in:
2019-12-28 21:40:38 +01:00
parent 2bfd966d50
commit d4c82cc746
5 changed files with 179 additions and 17 deletions

View File

@ -31,13 +31,13 @@
background-color: #f9f9f9;
box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.05);
padding: 0.5em;
border-radius: 2px;
border-radius: 4px;
overflow-x: auto;
}
.content :global(pre) :global(code) {
background-color: transparent;
padding: 0;
/* padding: 0; */
}
.content :global(ul) {
@ -51,6 +51,10 @@
<svelte:head>
<title>{post.title}</title>
<link rel="stylesheet" href="prism.css" />
<script src="prism.js">
</script>
</svelte:head>
<h1>{post.title}</h1>