Skip to content

Commit db74e22

Browse files
committed
Render blockquote color
1 parent 354fd1d commit db74e22

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/page.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,11 @@ function replaceExtraTags (html) {
187187
$('blockquote').removeClass('.raw').each(function (_, elem) {
188188
const p = $(elem).find('p')
189189
p[0].innerHTML = replaceExtraTags(p[0].innerHTML);
190+
191+
// color tag in blockquote will change its left border color
192+
const blockquoteColor = $(elem).find('.color')
193+
blockquoteColor.each((key, value) => {
194+
$(value).closest('blockquote').css('border-left-color', $(value).attr('data-color'))
195+
})
190196
})
197+

0 commit comments

Comments
 (0)