Clean up styling for markdown rendered HTML (#34)
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

master
Garrett Mills 4 years ago
parent 8190f1704b
commit 9258bf4d71
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -7,5 +7,5 @@
#editor
></ngx-monaco-editor>
</div>
<div class="display" markdown katex [data]="contents"></div>
<div class="display markdown-display" markdown katex [data]="contents"></div>
</div>

@ -86,3 +86,40 @@ hr {
font-size: 1.2em;
font-weight: bold;
}
.markdown-display {
h1, h2, h3, h4, h5 {
margin-top: 35px;
}
blockquote {
padding: 1px 20px;
color: #444;
background: #eee;
border-left: 2px solid darkgrey;
margin-left: 10px;
}
table {
width: 100%;
margin: 30px 0;
}
table, th, td {
border: 1px solid darkgrey;
border-collapse: collapse;
}
th, td {
padding: 5px;
}
code {
color: #ea4894;
}
pre {
background: #fff9ff;
padding: 10px;
}
}

Loading…
Cancel
Save