Просмотр исходного кода

Merge pull request #5448 from weseek/fix/89534

fix: 89534
Yuki Takei 4 лет назад
Родитель
Сommit
27c30bfb2e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/components/Page/RevisionRenderer.jsx

+ 1 - 1
packages/app/src/components/Page/RevisionRenderer.jsx

@@ -144,7 +144,7 @@ class LegacyRevisionRenderer extends React.PureComponent {
     context.parsedHTML = growiRenderer.postProcess(context.parsedHTML);
     context.parsedHTML = growiRenderer.postProcess(context.parsedHTML);
 
 
     const isMarkdownEmpty = context.markdown.trim().length === 0;
     const isMarkdownEmpty = context.markdown.trim().length === 0;
-    if (highlightKeywords != null && highlightKeywords === '' && !isMarkdownEmpty) {
+    if (highlightKeywords != null && highlightKeywords.length > 0 && !isMarkdownEmpty) {
       context.parsedHTML = this.getHighlightedBody(context.parsedHTML, highlightKeywords);
       context.parsedHTML = this.getHighlightedBody(context.parsedHTML, highlightKeywords);
     }
     }
     await interceptorManager.process('postPostProcess', context);
     await interceptorManager.process('postPostProcess', context);