Added code blocks.
This commit is contained in:
parent
4851d82250
commit
9e40ef518d
|
@ -116,4 +116,18 @@ th {
|
|||
th, td {
|
||||
text-align: left;
|
||||
padding: .25rem 1rem;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: var(--grey3);
|
||||
font-family: 'monospace';
|
||||
}
|
||||
|
||||
code.code-block {
|
||||
margin: 1rem 0;
|
||||
padding: 1rem;
|
||||
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
}
|
|
@ -113,5 +113,21 @@
|
|||
<td>4 months</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<code class="code-block">
|
||||
{{ '
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
' | escape | replace("\n", "", 1) | replace("\n", "<br>") | replace(" ", " ") }}
|
||||
</code>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user