feat: blockquote rendering and styling

This commit is contained in:
Aravinth Manivannan 2022-01-05 11:41:30 +05:30
parent 6aa6b0c097
commit 3aabaeb52d
Signed by untrusted user: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 9 additions and 0 deletions

View file

@ -138,3 +138,10 @@ iframe {
background-color: rgb(255, 165, 0);
padding: 5px;
}
blockquote {
margin-left: -5px;
padding-left: 19px;
border-left: 4px solid #333;
font-style: italic;
}

View file

@ -27,6 +27,8 @@
<. include!("./img.html"); .>
<.} else if p.type_ == "P" {.>
<p><. include!("./_markup.html"); .></p>
<.} else if p.type_ == "BQ" {.>
<blockquote><. include!("./_markup.html"); .></blockquote>
<.} else if p.type_ == "H2" {.>
<h2><.= p.text .></h2>
<.} else if p.type_ == "H3" {.>