소스 검색

fix: blockquote styling regression bug

NGPixel 8 년 전
부모
커밋
f978db4728
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      server/libs/markdown.js

+ 1 - 1
server/libs/markdown.js

@@ -208,7 +208,7 @@ const parseContent = (content) => {
 
   // -> Re-attach blockquote styling classes to their parents
 
-  cr.root().children('blockquote').each((i, elm) => {
+  cr('blockquote').each((i, elm) => {
     if (cr(elm).children().length > 0) {
       let bqLastChild = cr(elm).children().last()[0]
       let bqLastChildClasses = cr(bqLastChild).attr('class')