Shun Miyazawa %!s(int64=4) %!d(string=hai) anos
pai
achega
dc5fb6d854
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);